gwt:run places quotes around the %CLASSPATH% variable in run.cmd on windows 
platform.
-------------------------------------------------------------------------------------

                 Key: MGWT-23
                 URL: http://jira.codehaus.org/browse/MGWT-23
             Project: Maven 2.x GWT Plugin
          Issue Type: Bug
    Affects Versions: 1.1
         Environment: Windows XP SP3
            Reporter: Michael Pugliese


\\
gwt:run places quotes around the %CLASSPATH% variable in run.cmd. This seems to 
cause a NoClassDefFoundError and the action to fail. 
\\
\\
{noformat} 
[DEBUG] SCRIPT INJECTION CLASSPATH LIST
[DEBUG]    C:\workspace\newtest\src\main\java
[DEBUG]    C:\workspace\newtest\src\main\resources
[DEBUG]    C:\workspace\newtest\target\classes
[DEBUG]    C:\Documents and 
Settings\Progammar\.m2\repository\com\google\gwt\gwt-user\1.5.3\gwt-user-1.5.3.jar
[DEBUG]    C:\Documents and 
Settings\Progammar\.m2\repository\com\google\gwt\gwt-dev\1.5.3\gwt-dev-1.5.3-windows-libs.zip
[DEBUG]    C:\Documents and 
Settings\Progammar\.m2\repository\com\google\gwt\gwt-dev\1.5.3\gwt-dev-1.5.3-windows.jar
[ERROR] java.lang.NoClassDefFoundError: and
[ERROR] Caused by: java.lang.ClassNotFoundException: and
[ERROR]         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[ERROR]         at java.security.AccessController.doPrivileged(Native Method)
[ERROR]         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[ERROR]         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
[ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[ERROR]         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[ERROR] Exception in thread "main" 
[DEBUG] disposing managed ClassRealm with id: 
/plugins/org.apache.maven.plugins:maven-resources-plugin:2...@48/thread:main
[DEBUG] dissociating all components from managed ClassRealm with id: 
/plugins/org.apache.maven.plugins:maven-resources-plugin:2...@48/thread:main
[DEBUG] disposing managed ClassRealm with id: 
/plugins/org.codehaus.mojo:gwt-maven-plugin:1.1-snaps...@48/thread:main
[DEBUG] dissociating all components from managed ClassRealm with id: 
/plugins/org.codehaus.mojo:gwt-maven-plugin:1.1-snaps...@48/thread:main
[DEBUG] disposing managed ClassRealm with id: 
/plugins/org.apache.maven.plugins:maven-dependency-plugin:2...@48/thread:main
[DEBUG] dissociating all components from managed ClassRealm with id: 
/plugins/org.apache.maven.plugins:maven-dependency-plugin:2...@48/thread:main
[DEBUG] disposing managed ClassRealm with id: 
/plugins/org.apache.maven.plugins:maven-compiler-plugin:2....@48/thread:main
[DEBUG] dissociating all components from managed ClassRealm with id: 
/plugins/org.apache.maven.plugins:maven-compiler-plugin:2....@48/thread:main
[ERROR] 

The following mojo encountered an error while executing:
Group-Id: org.codehaus.mojo
Artifact-Id: gwt-maven-plugin
Version: 1.1-SNAPSHOT
Mojo: run
brought in via: Direct invocation

While building project:
Group-Id: com.totsp.gwt
Artifact-Id: maven-gwt-sample-withouthome
Version: 1.0-SNAPSHOT
>From file: C:\workspace\newtest\pom.xml
Reason: run.cmd script exited abnormally with code - 1




Error stacktrace:
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the 
plugin manager executing goal 
'org.codehaus.mojo:gwt-maven-plugin:1.1-SNAPSHOT:run': Mojo execution failed.
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:505)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
        at 
org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
        at 
org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
        at 
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
        at 
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
        at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
Caused by: org.apache.maven.plugin.PluginExecutionException: Mojo execution 
failed.
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:601)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
        ... 20 more
Caused by: org.apache.maven.plugin.MojoExecutionException: run.cmd script 
exited abnormally with code - 1
        at 
org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo.runScript(AbstractGwtShellMojo.java:203)
        at org.codehaus.mojo.gwt.shell.RunMojo.doExecute(RunMojo.java:175)
        at 
org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo.execute(AbstractGwtShellMojo.java:187)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
        ... 21 more
{noformat} 


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