To resolve the GWT errors regarding ConstraintValidation, be sure to add
validation-api as a dependency in your POM. This was an oversight in the GWT
2.3 maven push and will be addressed in 2.4.
/dmc
On Wed, Jul 6, 2011 at 5:15 AM, Eborix13 ebori...@gmail.com wrote:
Hi,
I've installed GWT 2.3.0 and I've implemented the StockWatcher sample
program. All went fine until I got to the testing part. I have a
simple test, one method that does assertTrue(true). When I run it I
get a bunch of errors:
1) if I run the tests using maven I get:
java.lang.NoClassDefFoundError: com/google/gwt/dev/cfg/Condition
at
com.google.gwt.junit.client.GWTTestCase.createStrategy(GWTTestCase.java:
340)
at
com.google.gwt.junit.client.GWTTestCase.getStrategy(GWTTestCase.java:
257)
I see that this class is in the gwt-dev dependency so I add it to the
dependency list
2) if I run the tests with the gwt-dev dependency I get
---
T E S T S
---
Running de.codebox.mywebapp.client.WebAppTest
[ERROR] Unable to find type 'java.lang.Object'
[ERROR] Hint: Check that your module inherits
'com.google.gwt.core.Core' either directly or indirectly (most often
by inheriting module 'com.google.gwt.user.User')
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.765
sec FAILURE!
Results :
Tests in error:
testStockWatcher(de.codebox.mywebapp.client.WebAppTest)
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
And the error is
com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries)
at
com.google.gwt.dev.cfg.ModuleDef.checkForSeedTypes(ModuleDef.java:
518)
at
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
327)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1342)
3) if i run the tests from my developing environment (Intellij Idea) I
get:
Validating newly compiled units
[ERROR] Errors in 'jar:file:/C:/Documents%20and%20Settings/
florin.haizea/.m2/repository/com/google/gwt/gwt-user/2.3.0/gwt-
user-2.3.0.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
which ends up in java.lang.OutOfMemoryError: Java heap space
I've seen other posts with similar errors but no clear solution to the
problem. Can anyone help?
Many thanks...
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.
--
David Chandler
Developer Programs Engineer, GWT+GAE
w: http://code.google.com/
b: http://turbomanage.wordpress.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.