Including gwt-servlet-deps.jar has no effect (for me) other than still
receiving the mentioned exception java.lang.NoClassDefFoundError:
org/json/JSONException). However, including the latest json classes, like
Joshua does, works fine.


2011/5/16 Thomas Broyer <[email protected]>

> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to