Yes, I ran into something similar. I fixed the complaint about not
finding JSONException by adding
http://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar
to my POM. I find it very strange this should be necessary. We're
supposed to be on the client, in a JavaScript environment after all.
:-) I have not researched this any further so I don't know whether you
need that JSON JAR in the WAR as well or if it's just for dev mode.
The error reporting in RF is not very helpful, unfortunately. The root
cause for me just said something like "Server error: null". It turned
out that the hashCode() methods on two of my DTOs referenced each
other. That obviously led to an infinite loop and apparently to
"Server error: null". :-) (I guess that's how the programming gods
punish people who do not write unit tests. ;-) )
Oh, and don't waste any time on getting GWT/RF's logging to run. It's
completely useless. I had it set to FINEST but it basically only
reported "sent something" and "received something". No mention of what
that something was. Not helpful at all.
I suggest you start adding helpful GWT.log (client side) and
System.out.println (server side) statements and start debugging. It
took me several hours.
I don't see this JAR on Maven Central.
No, with Maven you have to add the javax.validation:validation-api and org.json:json dependencies. gwt-servlet-deps.jar is for people not using Maven: they just have to add this JAR to their classpath (i.e. distribute it in their WAR) without worrying about "third party dependencies".com.google.gwt:gwt-user and com.google.gwt:gwt-servlet Maven artifacts should have had dependencies on javax.validation:validation-api and org.json:json but they were forgotten before the push to Maven Central; but (apart from validation-api) you'd still have to include the dependencies explicitly as they're optional, only needed if you use RequestFactory, so it's not much of an issue that they were forgotten (validation-api should have been set as <scope>provided</scope> for gwt-user though, as it's now required to compile any GWT project using the Editor framework –other GWT projects should compile but with loads of warnings–).Note that it's been like this since GWT 2.1 (except validation-api being now required in 2.3 for the Editor framework, on client-side code)
--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Ale