You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Zaccret (JIRA)" <ji...@codehaus.org> on 2008/11/14 17:25:17 UTC
[jira] Issue Comment Edited: (SUREFIRE-508) cannot run GWTTestCases
with surefire
[ http://jira.codehaus.org/browse/SUREFIRE-508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=154209#action_154209 ]
zaccret edited comment on SUREFIRE-508 at 11/14/08 10:24 AM:
-------------------------------------------------------------
I have the same problem. Wow... I gave a lot of effort to workaround the issue. I was able to give up... but finally... I got it!
I'm using 2.4.3 version. In the plugin configuration, try :
<useSystemClassLoader>true</useSystemClassLoader>
<useManifestOnlyJar>false</useManifestOnlyJar>
<forkMode>always</forkMode>
It seems to be the only configuration working, and it requires that you don't have a command line length problem (I guess it will be OK on Windows XP/Mac OS X/Linux).
Tell me if it works for you.
was (Author: zaccret):
I have the same problem. Wow... I have given a lot of effort to workaround the issue. I was able to give up... but finally... I got it!
I'm using 2.4.3 version. In the plugin configuration, try :
<useSystemClassLoader>true</useSystemClassLoader>
<useManifestOnlyJar>false</useManifestOnlyJar>
<forkMode>always</forkMode>
It seems to be the only configuration working, and it requires that you don't have a command line length problem (I guess it will be OK on Windows XP/Mac OS X/Linux).
Tell me if it works for you.
> cannot run GWTTestCases with surefire
> -------------------------------------
>
> Key: SUREFIRE-508
> URL: http://jira.codehaus.org/browse/SUREFIRE-508
> Project: Maven Surefire
> Issue Type: Bug
> Components: classloading
> Affects Versions: 2.4.3
> Reporter: nicolas de loof
>
> GWTTestCase require some complex setup, as tje GWT compiler requires acces to the java sources, and classpath scanning for available jars at runtime :
> <plugin>
> <artifactId>maven-surefire-plugin</artifactId>
> <configuration>
> <additionalClasspathElements>
> <additionalClasspathElement>src/main/java</additionalClasspathElement>
> <additionalClasspathElement>src/test/java</additionalClasspathElement>
> <additionalClasspathElement>target/generated-sources/gwt</additionalClasspathElement>
> </additionalClasspathElements>
> <useManifestOnlyJar>false</useManifestOnlyJar>
> <systemProperties>
> <property>
> <name>gwt.args</name>
> <value>-out target/www-test</value>
> </property>
> </systemProperties>
> <argLine>-Xmx256M</argLine>
> </configuration>
> </plugin>
> Even with this configuration, the test fails with a tomcat ClassCastException "GWTShellServlet is not a Servlet"
> I may be wrong, but it seems the useManifestOnlyJar=false mode still uses the tmp file classpath elements to build it's classpath, and not the system classpath.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira