Blog do projektu Open Source JavaHotel

niedziela, 15 maja 2011

GWT 2.3 and NetBeans 7.0

I downloaded the latest (2.3) version of GWT but could not compile my GWT application. The error message is something like that:
[java] [ERROR] Errors in 'jar:file:/../gwt-user-2.3.0.jar!/com/google/
gwt/editor/client/EditorDriver.java'
[java] [ERROR] Line 97: No source code is available for type
javax.validation.ConstraintViolation; did you forget to inherit a
required module? 
It looks that some dependencies which had been attached to gwt-user.jar so far  have been "outsourced" to the external library.
What is more important - Gwt4nb plugin (used by me) seems not be enabled not only for GWT 2.3 but also for the NetBeans 7.0 at all.
Manual workaround is as follows:
  1. File (accessible from Files tab) {project name}/nbproject/private/private.properties. Replace auxiliary.org-netbeans-modules-gwt4nb.GWTDir property with directory name of the GWT 2.3 SDK
  2. Manually add the following jars to compile-time libraries (not deployable): validation-api-1.0.0.GA-sources.jar and gwt-servlet-deps.jar.
 After that it is working for me as expected.

1 komentarz: