Andrew,

I got the exact same error message when trying to build 3.2.1 on openSUSE 10.3 (Linux) after checking it out using the SVN tag 'servicemix-3.2.1'. The error persisted regardless what Java SDK I used - I tried it with SDK6u5, JDK1.5, and even IBM SDK6.

After a day I gave up and checked out the HEAD from trunk and got it build without a hitch. I suspect that there are some dependencies mixed up in some versions, be it from SVN or from the SNAPSHOT tars.

Good luck,
-Uli

Andrew Skiba wrote:
I'm trying to compile http://svn.apache.org/repos/asf/servicemix/smx3/branches/servicemix-3.2/deployables/serviceengines/servicemix-wsn2005, and get the following error. I suppose the problem is missing com/sun/codemodel/JCodeModel class, may be it does not exist in OSX JVM. Is there anyone using OSX?

Thank you,

Andrew.

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building ServiceMix :: WS-Notification Service Engine
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------ [INFO] snapshot org.apache.servicemix:sharedlibraries:3.2.2-SNAPSHOT: checking for updates from servicemix-m2-repo [INFO] snapshot org.apache.servicemix:sharedlibraries:3.2.2-SNAPSHOT: checking for updates from apache-snapshots [INFO] snapshot org.apache.servicemix:sharedlibraries:3.2.2-SNAPSHOT: checking for updates from codehaus [INFO] snapshot org.apache.servicemix:sharedlibraries:3.2.2-SNAPSHOT: checking for updates from java.net [INFO] snapshot org.apache.servicemix:sharedlibraries:3.2.2-SNAPSHOT: checking for updates from apache.snapshots [INFO] snapshot org.apache.servicemix:deployables:3.2.2-SNAPSHOT: checking for updates from servicemix-m2-repo [INFO] snapshot org.apache.servicemix:deployables:3.2.2-SNAPSHOT: checking for updates from apache-snapshots [INFO] snapshot org.apache.servicemix:deployables:3.2.2-SNAPSHOT: checking for updates from codehaus [INFO] snapshot org.apache.servicemix:deployables:3.2.2-SNAPSHOT: checking for updates from java.net [INFO] snapshot org.apache.servicemix:deployables:3.2.2-SNAPSHOT: checking for updates from apache.snapshots Downloading: http://svn.apache.org/repos/asf/servicemix/m2-repo/org/apache/ws/security/wss4j/1.5.2/wss4j-1.5.2.pom Downloading: http://people.apache.org/repo/m2-incubating-repository/org/apache/ws/security/wss4j/1.5.2/wss4j-1.5.2.pom Downloading: http://repository.codehaus.org/org/apache/ws/security/wss4j/1.5.2/wss4j-1.5.2.pom Downloading: http://download.java.net/maven/1/org.apache.ws.security/poms/wss4j-1.5.2.pom Downloading: http://repo1.maven.org/maven2/org/apache/ws/security/wss4j/1.5.2/wss4j-1.5.2.pom Downloading: http://svn.apache.org/repos/asf/servicemix/m2-repo/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom Downloading: http://people.apache.org/repo/m2-incubating-repository/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom Downloading: http://repository.codehaus.org/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom Downloading: http://download.java.net/maven/1/xml-security/poms/xmlsec-1.3.0.pom Downloading: http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
[INFO] [xbean:mapping {execution: default}]
[INFO] Generating META-INF properties file: /Users/andrew/Work/servicemix-3.2/deployables/serviceengines/servicemix-wsn2005/target/xbean/META-INF/services/org/apache/xbean/spring/http/servicemix.apache.org/wsn/1.0 for namespace: http://servicemix.apache.org/wsn/1.0 [INFO] Generating Spring 2.0 handler mapping: /Users/andrew/Work/servicemix-3.2/deployables/serviceengines/servicemix-wsn2005/target/xbean/META-INF/spring.handlers for namespace: http://servicemix.apache.org/wsn/1.0 [INFO] Generating Spring 2.0 schema mapping: /Users/andrew/Work/servicemix-3.2/deployables/serviceengines/servicemix-wsn2005/target/xbean/META-INF/spring.schemas for namespace: http://servicemix.apache.org/wsn/1.0 [INFO] Generating HTML documentation file: /Users/andrew/Work/servicemix-3.2/deployables/serviceengines/servicemix-wsn2005/target/xbean/servicemix-wsn2005.xsd.html for namespace: http://servicemix.apache.org/wsn/1.0 [INFO] Generating XSD file: /Users/andrew/Work/servicemix-3.2/deployables/serviceengines/servicemix-wsn2005/target/xbean/servicemix-wsn2005.xsd for namespace: http://servicemix.apache.org/wsn/1.0 [INFO] Generating WIKI documentation file: /Users/andrew/Work/servicemix-3.2/deployables/serviceengines/servicemix-wsn2005/target/xbean/servicemix-wsn2005.xsd.wiki for namespace: http://servicemix.apache.org/wsn/1.0 Warning, could not load class: org.springframework.core.io.Resource: java.lang.ExceptionInInitializerError
[INFO] ...done.
Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/xfire/saaj-impl/1.3/saaj-impl-1.3.pom Downloading: http://svn.apache.org/repos/asf/servicemix/m2-repo/xfire/saaj-impl/1.3/saaj-impl-1.3.pom Downloading: http://people.apache.org/repo/m2-incubating-repository/xfire/saaj-impl/1.3/saaj-impl-1.3.pom Downloading: http://repository.codehaus.org/xfire/saaj-impl/1.3/saaj-impl-1.3.pom Downloading: http://download.java.net/maven/1/xfire/poms/saaj-impl-1.3.pom Downloading: http://repo1.maven.org/maven2/xfire/saaj-impl/1.3/saaj-impl-1.3.pom Downloading: http://svn.apache.org/repos/asf/servicemix/m2-repo/xfire/saaj-impl/1.3/saaj-impl-1.3.pom Downloading: http://people.apache.org/repo/m2-incubating-repository/xfire/saaj-impl/1.3/saaj-impl-1.3.pom Downloading: http://repository.codehaus.org/xfire/saaj-impl/1.3/saaj-impl-1.3.pom Downloading: http://download.java.net/maven/1/xfire/poms/saaj-impl-1.3.pom Downloading: http://repo1.maven.org/maven2/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
[INFO] [xfire:wsgen {execution: default}]
[INFO] Executing XFire WsGen task with url: file:/Users/andrew/Work/servicemix-3.2/deployables/serviceengines/servicemix-wsn2005/src/main/resources/org/apache/servicemix/wsn/wsn.wsdl [FATAL ERROR] org.apache.servicemix.maven.plugin.xfire.WsgenMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms: [FATAL ERROR] Plugin realm = app0.child-container[org.apache.servicemix.tooling:xfire-maven-plugin] urls[0] = file:/Users/andrew/.m2/repository/org/apache/servicemix/tooling/xfire-maven-plugin/3.2.2-SNAPSHOT/xfire-maven-plugin-3.2.2-SNAPSHOT.jar urls[1] = file:/Users/andrew/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.5/plexus-utils-1.0.5.jar urls[2] = file:/Users/andrew/.m2/repository/org/apache/maven/maven-archiver/2.0.1/maven-archiver-2.0.1.jar urls[3] = file:/Users/andrew/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-4/plexus-archiver-1.0-alpha-4.jar urls[4] = file:/Users/andrew/.m2/repository/org/apache/maven/maven-script-ant/2.0.1/maven-script-ant-2.0.1.jar urls[5] = file:/Users/andrew/.m2/repository/org/codehaus/plexus/plexus-ant-factory/1.0-alpha-1/plexus-ant-factory-1.0-alpha-1.jar urls[6] = file:/Users/andrew/.m2/repository/ant/ant-launcher/1.6.5/ant-launcher-1.6.5.jar
urls[7] = file:/Users/andrew/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar
urls[8] = file:/Users/andrew/.m2/repository/org/codehaus/xfire/xfire-generator/1.2.5/xfire-generator-1.2.5.jar urls[9] = file:/Users/andrew/.m2/repository/org/codehaus/xfire/xfire-jaxb2/1.2.5/xfire-jaxb2-1.2.5.jar urls[10] = file:/Users/andrew/.m2/repository/org/codehaus/xfire/xfire-aegis/1.2.5/xfire-aegis-1.2.5.jar urls[11] = file:/Users/andrew/.m2/repository/org/codehaus/xfire/xfire-core/1.2.5/xfire-core-1.2.5.jar urls[12] = file:/Users/andrew/.m2/repository/wsdl4j/wsdl4j/1.6.1/wsdl4j-1.6.1.jar urls[13] = file:/Users/andrew/.m2/repository/jaxen/jaxen/1.1-beta-9/jaxen-1.1-beta-9.jar urls[14] = file:/Users/andrew/.m2/repository/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar urls[15] = file:/Users/andrew/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar urls[16] = file:/Users/andrew/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar urls[17] = file:/Users/andrew/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar urls[18] = file:/Users/andrew/.m2/repository/org/apache/ws/commons/XmlSchema/1.1/XmlSchema-1.1.jar urls[19] = file:/Users/andrew/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.2/wstx-asl-3.2.2.jar
urls[20] = file:/Users/andrew/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar
urls[21] = file:/Users/andrew/.m2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar urls[22] = file:/Users/andrew/.m2/repository/log4j/log4j/1.2.13/log4j-1.2.13.jar urls[23] = file:/Users/andrew/.m2/repository/net/java/dev/stax-utils/stax-utils/20040917/stax-utils-20040917.jar urls[24] = file:/Users/andrew/.m2/repository/org/codehaus/xfire/xfire-java5/1.2.5/xfire-java5-1.2.5.jar urls[25] = file:/Users/andrew/.m2/repository/org/codehaus/xfire/xfire-annotations/1.2.5/xfire-annotations-1.2.5.jar urls[26] = file:/Users/andrew/.m2/repository/commons-attributes/commons-attributes-api/2.1/commons-attributes-api-2.1.jar urls[27] = file:/Users/andrew/.m2/repository/xfire/xfire-jsr181-api/1.0-M1/xfire-jsr181-api-1.0-M1.jar urls[28] = file:/Users/andrew/.m2/repository/javax/xml/ws/jaxws-api/2.0/jaxws-api-2.0.jar urls[29] = file:/Users/andrew/.m2/repository/javax/xml/bind/jaxb-api/2.0/jaxb-api-2.0.jar urls[30] = file:/Users/andrew/.m2/repository/javax/xml/bind/jsr173_api/1.0/jsr173_api-1.0.jar urls[31] = file:/Users/andrew/.m2/repository/org/codehaus/xfire/xfire-xmlbeans/1.2.5/xfire-xmlbeans-1.2.5.jar urls[32] = file:/Users/andrew/.m2/repository/xmlbeans/xbean/2.1.0/xbean-2.1.0.jar urls[33] = file:/Users/andrew/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
urls[34] = file:/Users/andrew/.m2/repository/qdox/qdox/1.5/qdox-1.5.jar
urls[35] = file:/Users/andrew/.m2/repository/org/codehaus/xfire/xfire-spring/1.2.5/xfire-spring-1.2.5.jar urls[36] = file:/Users/andrew/.m2/repository/org/apache/xbean/xbean-spring/3.2/xbean-spring-3.2.jar urls[37] = file:/Users/andrew/.m2/repository/org/springframework/spring/2.0.6/spring-2.0.6.jar urls[38] = file:/Users/andrew/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar urls[39] = file:/Users/andrew/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar urls[40] = file:/Users/andrew/.m2/repository/commons-httpclient/commons-httpclient/3.0/commons-httpclient-3.0.jar urls[41] = file:/Users/andrew/.m2/repository/org/codehaus/xfire/xfire-jaxws/1.2.5/xfire-jaxws-1.2.5.jar urls[42] = file:/Users/andrew/.m2/repository/xfire/saaj-impl/1.3/saaj-impl-1.3.jar urls[43] = file:/Users/andrew/.m2/repository/javax/xml/soap/saaj-api/1.3/saaj-api-1.3.jar urls[44] = file:/Users/andrew/.m2/repository/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar urls[45] = file:/Users/andrew/.m2/repository/com/sun/xml/bind/jaxb-impl/2.0.1/jaxb-impl-2.0.1.jar urls[46] = file:/Users/andrew/.m2/repository/javax/xml/jaxb-api/2.0/jaxb-api-2.0.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/opt/local/share/java/maven2/lib/maven-2.0.9-uber.jar
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] com/sun/codemodel/JCodeModel
com.sun.codemodel.JCodeModel
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NoClassDefFoundError: com/sun/codemodel/JCodeModel
at org.codehaus.xfire.gen.Wsdl11Generator.<init>(Wsdl11Generator.java:51)
    at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:50)
at org.apache.servicemix.maven.plugin.xfire.WsgenMojo.exec(WsgenMojo.java:190) at org.apache.servicemix.maven.plugin.xfire.WsgenMojo.execute(WsgenMojo.java:105) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
    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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.ClassNotFoundException: com.sun.codemodel.JCodeModel
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    ... 22 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 15 seconds
[INFO] Finished at: Fri May 09 15:41:09 IDT 2008
[INFO] Final Memory: 28M/66M
[INFO] ------------------------------------------------------------------------



--
===========================================
*Optaros, Inc.*

333 Bryant Street - Suite 110
San Francisco, CA 94107

Corporate Headquarter:
10 Milk Street - 11th Floor
Boston, MA 02108

cell:  +1 (650) 430-4499
voice: +1 (617) 227-1855 x8129
===========================================

Reply via email to