I recently upgraded my Vaadin version in my pom file to 6.6.0. However, now that I try and recompile the widgets, I get errors similar to:
Compiling module com.repository.vaadin.widgetset.RepositoryWebApplicationWidgetset
Validating newly compiled units
[ERROR]
Errors in ‘jar:file:/Users/pclark/springsource/sts-2.6.0.RELEASE/configuration/com.vaadin.integration.eclipse/download/gwt-user/2.3.0/gwt-user.jar!/com/google/gwt/editor/client/EditorDriver.java’
[ERROR]
Line 20: The import javax.validation.ConstraintViolation cannot be resolved
[ERROR]
Line 97: ConstraintViolation cannot be resolved to a type
…
Computing all possible rebind results for ‘com.google.gwt.user.client.UserAgentAsserter’
Rebinding com.google.gwt.user.client.UserAgentAsserter
Checking rule
[WARN]
Detected warnings related to ‘com.google.gwt.editor.client.SimpleBeanEditorDriver’. Are validation-api-.jar and validation-api--sources.jar on the classpath?
In reading several posts about the problem, I need to put those two jars in the classpath. However, where can I do that? I have tried the system CLASSPATH, but that doesn’t seem to help. I have also attempted to manually add them to the project (so both through maven and through the eclipse project), but that doesn’t seem to work either.
For compilation with Eclipse, you need to upgrade to the very latest Vaadin Plug-in for Eclipse which can automatically download those JARs and put them on the classpath.
Thanks, that did the trick. And for those maven users, once you upgrade your vaadin plugin it still wasn’t working. So in a similar process where a normal vaadin project you would downgrade and upgrade the version through the project preferences. Similarly I following this process.:
downgrade your vaadin dependency in your pom file (to say 6.5.4)
right click on your project, Maven | Update Dependencies
right click on your project, Maven | Update Project Configuration
clean and rebuild
repeat after upgrading your vaadin dependency in your pom file to 6.6.0
And then the button on the eclipse toolbar worked.
With the latest Eclipse plug-in (make sure you upgrade it first), just change the Vaadin version from an earlier one to 6.6.0 and all the dependencies should be loaded automatically. If you have switched your project to 6.6 before upgrading the plug-in, change Vaadin version to an older one after plug-in upgrade and then again to 6.6.0.
If not using Eclipse, make sure the validation JARs (including the source code) and the correct (2.3.0) GWT JARs are on the classpath of widgetset compilation.
Hi,
I have already don what you say but it doesn’t seem to works.
I have downgraded to 6.5.6 and compiled to check it.
Then I have upgraded but it hasn’t changed.
I have also manually added the missing jar in the WEB-INF/lib but I still get error.
Please help me.
If you really are using the Vaadin Integration Plug-In for Eclipse version 2.0.0 (released Tuesday this week if I remember correctly), here is what you should see:
For a Vaadin 6.5 project:
WebContent/WEB-INF/lib should only contain vaadin-6.5.x.jar and your own JARs, no GWT JARs etc.
project build path should (automatically) contain 1) VAADIN_DOWNLOAD/gwt-dev/2.1.1/gwt-dev.jar 2) VAADIN_DOWNLOAD/gwt-user/2.1.1/gwt-user.jar - but no other GWT or Vaadin related JARs directly
When switching the Vaadin version in the project to 6.6.0 via “Project Properties → Vaadin”, these should automatically change to:
WebContent/WEB-INF/lib should only contain vaadin-6.6.x.jar and your own JARs, no GWT JARs etc.
Hi Henri,
thank you for your suggestion.
I believe that something is gone wrong because I first upgrade the project to vaadin 6.6.0 and later I upgrade the plugin.
I fix the problem following this step :