[ 
http://jira.codehaus.org/browse/MGWT-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Lamy closed MGWT-232.
-----------------------------

    Resolution: Fixed

fixed rev 13076

> GwtTestSuite fails (Failed to invoke suite():java.lang.NoClassDefFoundError: 
> com/google/gwt/dev/cfg/Condition)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MGWT-232
>                 URL: http://jira.codehaus.org/browse/MGWT-232
>             Project: Maven 2.x GWT Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Ubuntu 10.10 64-bit
> Maven 3.0
> GWT 2.1.0
>            Reporter: Salvador Diaz
>            Assignee: Olivier Lamy
>            Priority: Blocker
>             Fix For: 2.1.1
>
>         Attachments: gwt-test-fail.tar.bz2
>
>
> I'm running my GWTTestCases in a GwtTestSuite as instructed 
> [here|http://mojo.codehaus.org/gwt-maven-plugin/testing.html] (section "About 
> GwtTestSuite").
> Before migrating to GWT 2.1.0 and maven-gwt-plugin 2.1.0 it was working, but 
> after the migration it's not working anymore: it's failing with the following 
> error:
> {noformat}
> [DEBUG] Execute command :
> /bin/sh -c /usr/lib/jvm/java-6-sun-1.6.0.22/jre/bin/java -Xmx512m -classpath 
> [SNIP...] '-Dgwt.args=-out target/www-test -runStyle Manual:1 ' 
> -Dsurefire.reports=/home/salvador/workspace/ihm-campaign/target/surefire-reports
>  org.codehaus.mojo.gwt.test.MavenTestRunner 
> fr.project.ihm.campaign.client.GwtCampaignMakerTestSuite
> [ERROR] Failed to invoke suite():java.lang.NoClassDefFoundError: 
> com/google/gwt/dev/cfg/Condition
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 7.619s
> [INFO] Finished at: Mon Nov 08 16:33:00 CET 2010
> [INFO] Final Memory: 9M/160M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.1.0:test 
> (default-cli) on project ihm-campaign: There was test failures. -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.codehaus.mojo:gwt-maven-plugin:2.1.0:test (default-cli) on project 
> ihm-campaign: There was test failures.
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:203)
> [SNIP...]
> {noformat}
> The classpath in the command executed doesn't contain gwt-dev-2.1.0.jar so 
> that appears to be the cause of the failure.
> Relevant section of my pom:
> {code:xml}
> <plugins>
>                       <plugin>
>                               <groupId>org.codehaus.mojo</groupId>
>                               <artifactId>gwt-maven-plugin</artifactId>
>                               <configuration>
>                                       <logLevel>INFO</logLevel>
>                                       <style>OBF</style>
>                                       <copyWebapp>true</copyWebapp>
>                                       
> <hostedWebapp>${project.build.directory}/${project.build.finalName}</hostedWebapp>
>                               </configuration>
>                               <executions>
>                                       <execution>
>                                               <id>gwtcompile</id>
>                                               <phase>prepare-package</phase>
>                                               <goals>
>                                                       <goal>compile</goal>
>                                               </goals>
>                                       </execution>
>                                       <execution>
>                                               <id>gwttest</id>
>                                               <phase>integration-test</phase>
>                                               <goals>
>                                                       <goal>test</goal>
>                                               </goals>
>                                       </execution>
>                               </executions>
>                       </plugin>
> ...
> {code}

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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to