On Wed, Mar 11, 2009 at 10:26 AM, nicolas de loof
<[email protected]>wrote:

> I just was warned by my dev team about an issue with gwt-dev.jar :
> This jar contains som apache libs, and our application (for gwt-rpc
> services) also uses commons-collection, but with a distinct version.
> When we run the server side unit tests we get NoSuchMethodError as the
> gwt-dev jar comes prior in classpath than the commons-collections one, but
> as maven user we have no way to order dependencies :'(
>

Why do you need gwt-dev on your servlet classpath?  You should only need
gwt-servlet.jar.

Did you consider to repackage the gwt-dev dependencies using jarjar (
> http://code.google.com/p/jarjar/) to avoid such very disapointing issue
> for newbees ? apache commons are very common in webapps !
>

Yes, and we found that jarjar broke many things since it can't see
dynamically generated classnames (such as jetty loading classnames from an
XML file), native methods no longer work, etc.

-- 
John A. Tamplin
Software Engineer (GWT), Google

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to