Using <useManifestOnlyJar>false</useManifestOnlyJar> may lead to classpath too long for your environment and leading to ClassNotFoundException or ClassNotFoundError. May be this is what you have ?
Jeff MAURY On 7/25/08, nicolas de loof <[EMAIL PROTECTED]> wrote: > > Using <useManifestOnlyJar>false</useManifestOnlyJar> makes things work > better, as the full classpath is scanned for java source files by the GWT > compiler, but now I get > > "javax.servlet.ServletException: Class > com.google.gwt.dev.shell.GWTShellServlet is not a Servlet" > (looks like a classloader conflict) > > > 2008/7/25 nicolas de loof <[EMAIL PROTECTED]>: > > > Hello, > > > > I'm trying to setup surefire plugin to run GWTTestCase. This requires > some > > custom setup as the "hosted mode browser" requires GWT to read the java > > source code : > > > > <artifactId>maven-surefire-plugin</artifactId> > > <configuration> > > <additionalClasspathElements> > > > > <additionalClasspathElement>src/it/java</additionalClasspathElement> > > > > <additionalClasspathElement>src/main/java</additionalClasspathElement> > > </additionalClasspathElements> > > <systemProperties> > > <property> > > <name>gwt.args</name> > > <value>-out target/www-test -logLevel ALL</value> > > </property> > > </systemProperties> > > <argLine>-Xmx256M</argLine> > > </configuration> > > > > > > Myissue is that - according to GWT log -- GWT does only lookup the > > surefire.class.path (JRE rt.jar + surefirebooter.jar), and not all other > > dependencies or additionalClassPathElements. It seems the classloader > > hierarchy used by surefire that is not supported by GWTTestCase. > > > > Any suggestion to get this working ? > > > > > > > -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.lastfm.fr/listen/user/jeffmaury/personal