Hello,

After migrating from gwt 1.5.3 to 1.7.0 I encountered severe problems:

I'm starting my gwt shell as follows:
javaw.exe -classpath slf4j-api-1.5.2.jar;slf4j-log4j12-1.5.2.jar;...
com.google.gwt.dev.HostedMode -startupUrl ...

After startup I get a NoClassDefFoundError when my application tries
to load a slf4j class.

As far as I know there are two solutions to this issue:

1. Copy the relevant jar file to war/WEB-INF/lib
2. Use a custom JettyLauncher (via -server arg) and change
JettyLauncher$WebAppContextWithReload
$WebAppClassLoaderExtension#isSystemPath like so:

              public boolean isSystemPath(String name) {
                name = name.replace('/', '.');
                return super.isSystemPath(name)
                    || name.startsWith("org.apache.jasper.")
                    || name.startsWith("org.slf4j.")
                    || name.startsWith("org.apache.xerces.");
              }

Both solutions mean a great deal of additional work everytime my
dependencies change and are therefore merely a workaround but no
solution.

Wouldn't it be nice to be able to use all the classes defined by the
classpath at runtime?

This wasn't a problem in gwt 1.5 using tomcat.
What can I do?


Best regards
Robert

--~--~---------~--~----~------------~-------~--~----~
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