[ 
http://jira.codehaus.org/browse/MGWT-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=203744#action_203744
 ] 

Piotr Berłowski commented on MGWT-142:
-------------------------------------------

I have similar problem on Linux (Gentoo Linux, x86, 32bit Sun JDK 1.6.0_17).

In my case a problem was caused by space in project directory name: 
"/home/user/workspace/Project Name"
The classpath and later the -war got double quoted with '" resulting in 
ClassNotFound.

As a workaround I have moved the code to /home/user/workspace/ProjectName 
directory, which resulted in the classpath being only single quoted and working 
properly.

Below I attach the generated shell commands for both cases:

/bin/sh -c /opt/sun-jdk-1.6.0.17/jre/bin/java -Xmx512m -classpath 
'"/home/user/workspace/C M/src/main/java":"/home/user/workspace/C 
M/src/main/resources":"/home/user/workspace/C 
M/war/WEB-INF/classes":"/home/user/.m2/repository/net/sf/gilead/adapter-core/1.2.3/adapter-core-1.2.3.jar":"/home/user/.m2/repository/org/springframework/spring/2.5.6.SEC01/spring-2.5.6.SEC01.jar":"/home/user/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar":"/home/user/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar":"/home/user/.m2/repository/net/sf/beanlib/beanlib/5.0.2beta/beanlib-5.0.2beta.jar":"/home/user/.m2/repository/cglib/cglib/2.1_3/cglib-2.1_3.jar":"/home/user/.m2/repository/asm/asm/1.5.3/asm-1.5.3.jar":"/home/user/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar":"/home/user/.m2/repository/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.jar":"/home/user/.m2/repository/net/sf/beanlib/beanlib-hibernate/5.0.2beta/beanlib-hibernate-5.0.2beta.jar":"/home/user/.m2/repository/org/hibernate/hibernate/3.2.7.ga/hibernate-3.2.7.ga.jar":"/home/user/.m2/repository/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar":"/home/user/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar":"/home/user/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar":"/home/user/.m2/repository/javax/transaction/jta/1.1/jta-1.1.jar":"/home/user/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar":"/home/user/.m2/repository/jboss/javassist/3.4.ga/javassist-3.4.ga.jar":"/home/user/.m2/repository/jboss/jboss-serialization/1.0.3.GA/jboss-serialization-1.0.3.GA.jar":"/home/user/.m2/repository/com/thoughtworks/xstream/xstream/1.3/xstream-1.3.jar":"/home/user/.m2/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar":"/home/user/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar":"/home/user/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar":"/home/user/.m2/repository/net/sf/gilead/adapter4gwt/1.2.3/adapter4gwt-1.2.3.jar":"/home/user/.m2/repository/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar":"/home/user/.m2/repository/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar":"/home/user/.m2/repository/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar":"/home/user/.m2/repository/org/slf4j/slf4j-api/1.4.2/slf4j-api-1.4.2.jar":"/home/user/.m2/repository/org/hibernate/hibernate-core/3.3.2.GA/hibernate-core-3.3.2.GA.jar":"/home/user/.m2/repository/org/hibernate/hibernate-c3p0/3.3.2.GA/hibernate-c3p0-3.3.2.GA.jar":"/home/user/.m2/repository/c3p0/c3p0/0.9.1/c3p0-0.9.1.jar":"/home/user/.m2/repository/org/springframework/spring-aspects/2.5.6.SEC01/spring-aspects-2.5.6.SEC01.jar":"/home/user/.m2/repository/org/aspectj/aspectjrt/1.6.1/aspectjrt-1.6.1.jar":"/home/user/.m2/repository/org/aspectj/aspectjweaver/1.6.1/aspectjweaver-1.6.1.jar":"/home/user/.m2/repository/org/springframework/spring-beans/2.5.6.SEC01/spring-beans-2.5.6.SEC01.jar":"/home/user/.m2/repository/org/springframework/spring-core/2.5.6.SEC01/spring-core-2.5.6.SEC01.jar":"/home/user/.m2/repository/org/springframework/spring-webmvc/2.5.6.SEC01/spring-webmvc-2.5.6.SEC01.jar":"/home/user/.m2/repository/org/springframework/spring-context/2.5.6.SEC01/spring-context-2.5.6.SEC01.jar":"/home/user/.m2/repository/org/springframework/spring-context-support/2.5.6.SEC01/spring-context-support-2.5.6.SEC01.jar":"/home/user/.m2/repository/org/springframework/spring-web/2.5.6.SEC01/spring-web-2.5.6.SEC01.jar":"/home/user/.m2/repository/org/springframework/security/spring-security-core/2.0.5.RELEASE/spring-security-core-2.0.5.RELEASE.jar":"/home/user/.m2/repository/org/springframework/spring-aop/2.0.8/spring-aop-2.0.8.jar":"/home/user/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar":"/home/user/.m2/repository/com/google/gwt/gwt-user/1.7.1/gwt-user-1.7.1.jar":"/home/user/.m2/repository/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar":"/home/user/workspace/C
 
M/lib/gwt-sl-1.0.jar":"/home/user/.m2/repository/com/google/gwt/gwt-dev/1.7.1/gwt-dev-1.7.1-linux.jar"'
 com.google.gwt.dev.Compiler -gen '"/home/user/workspace/C 
M/target/.generated"' -logLevel INFO -style OBF -war '"/home/user/workspace/C 
M/target/ConvMan-0.2"' -localWorkers 2 pl.pyrkon.pyrgate.PyrGate

/bin/sh -c /opt/sun-jdk-1.6.0.17/jre/bin/java -Xmx512m -classpath 
"/home/user/workspace/Private/CM/src/main/java":"/home/user/workspace/Private/CM/src/main/resources":"/home/user/workspace/Private/CM/war/WEB-INF/classes":"/home/user/.m2/repository/net/sf/gilead/adapter-core/1.2.3/adapter-core-1.2.3.jar":"/home/user/.m2/repository/org/springframework/spring/2.5.6.SEC01/spring-2.5.6.SEC01.jar":"/home/user/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar":"/home/user/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar":"/home/user/.m2/repository/net/sf/beanlib/beanlib/5.0.2beta/beanlib-5.0.2beta.jar":"/home/user/.m2/repository/cglib/cglib/2.1_3/cglib-2.1_3.jar":"/home/user/.m2/repository/asm/asm/1.5.3/asm-1.5.3.jar":"/home/user/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar":"/home/user/.m2/repository/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.jar":"/home/user/.m2/repository/net/sf/beanlib/beanlib-hibernate/5.0.2beta/beanlib-hibernate-5.0.2beta.jar":"/home/user/.m2/repository/org/hibernate/hibernate/3.2.7.ga/hibernate-3.2.7.ga.jar":"/home/user/.m2/repository/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar":"/home/user/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar":"/home/user/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar":"/home/user/.m2/repository/javax/transaction/jta/1.1/jta-1.1.jar":"/home/user/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar":"/home/user/.m2/repository/jboss/javassist/3.4.ga/javassist-3.4.ga.jar":"/home/user/.m2/repository/jboss/jboss-serialization/1.0.3.GA/jboss-serialization-1.0.3.GA.jar":"/home/user/.m2/repository/com/thoughtworks/xstream/xstream/1.3/xstream-1.3.jar":"/home/user/.m2/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar":"/home/user/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar":"/home/user/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar":"/home/user/.m2/repository/net/sf/gilead/adapter4gwt/1.2.3/adapter4gwt-1.2.3.jar":"/home/user/.m2/repository/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar":"/home/user/.m2/repository/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar":"/home/user/.m2/repository/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar":"/home/user/.m2/repository/org/slf4j/slf4j-api/1.4.2/slf4j-api-1.4.2.jar":"/home/user/.m2/repository/org/hibernate/hibernate-core/3.3.2.GA/hibernate-core-3.3.2.GA.jar":"/home/user/.m2/repository/org/hibernate/hibernate-c3p0/3.3.2.GA/hibernate-c3p0-3.3.2.GA.jar":"/home/user/.m2/repository/c3p0/c3p0/0.9.1/c3p0-0.9.1.jar":"/home/user/.m2/repository/org/springframework/spring-aspects/2.5.6.SEC01/spring-aspects-2.5.6.SEC01.jar":"/home/user/.m2/repository/org/aspectj/aspectjrt/1.6.1/aspectjrt-1.6.1.jar":"/home/user/.m2/repository/org/aspectj/aspectjweaver/1.6.1/aspectjweaver-1.6.1.jar":"/home/user/.m2/repository/org/springframework/spring-beans/2.5.6.SEC01/spring-beans-2.5.6.SEC01.jar":"/home/user/.m2/repository/org/springframework/spring-core/2.5.6.SEC01/spring-core-2.5.6.SEC01.jar":"/home/user/.m2/repository/org/springframework/spring-webmvc/2.5.6.SEC01/spring-webmvc-2.5.6.SEC01.jar":"/home/user/.m2/repository/org/springframework/spring-context/2.5.6.SEC01/spring-context-2.5.6.SEC01.jar":"/home/user/.m2/repository/org/springframework/spring-context-support/2.5.6.SEC01/spring-context-support-2.5.6.SEC01.jar":"/home/user/.m2/repository/org/springframework/spring-web/2.5.6.SEC01/spring-web-2.5.6.SEC01.jar":"/home/user/.m2/repository/org/springframework/security/spring-security-core/2.0.5.RELEASE/spring-security-core-2.0.5.RELEASE.jar":"/home/user/.m2/repository/org/springframework/spring-aop/2.0.8/spring-aop-2.0.8.jar":"/home/user/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar":"/home/user/.m2/repository/com/google/gwt/gwt-user/1.7.1/gwt-user-1.7.1.jar":"/home/user/.m2/repository/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar":"/home/user/workspace/Private/CM/lib/gwt-sl-1.0.jar":"/home/user/.m2/repository/com/google/gwt/gwt-dev/1.7.1/gwt-dev-1.7.1-linux.jar"
 com.google.gwt.dev.Compiler -gen 
"/home/user/workspace/Private/CM/target/.generated" -logLevel INFO -style OBF 
-war "/home/user/workspace/Private/CM/target/ConvMan-0.2" -localWorkers 2 
pl.pyrkon.pyrgate.PyrGate


> java.lang.NoClassDefFoundError: com/google/gwt/dev/Compiler when running 
> plugin on Mac
> --------------------------------------------------------------------------------------
>
>                 Key: MGWT-142
>                 URL: http://jira.codehaus.org/browse/MGWT-142
>             Project: Maven 2.x GWT Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: Mac OS 10.6.2 (Snow Leopard)
>            Reporter: Tom van Zummeren
>         Attachments: Disabled_quoted_arguments_on_Mac.patch
>
>
> In the attached patch, I disabled quoted arguments when running the GWT 
> plugin on Mac. This avoids screwing up the classpath, and therefore avoids 
> getting a NoClassDefFoundError for the GWT Compiler class.
> To clarify, the java command the plugin should be executing should have the 
> classpath like this:
> -classpath "library1.jar":"library2.jar":"library3.jar"
> but instead it executes the java command with this classpath argument:
> -classpath '"library1.jar":"library2.jar":"library3.jar"'
> (notice the single quotes at the start and the end) On Mac this results in 
> none of the jars being added to the 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



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

    http://xircles.codehaus.org/manage_email


Reply via email to