atom feed2 messages in org.codehaus.enunciate.user[enunciate-user] OpenJDK 7 on OS X: N...
FromSent OnAttachments
Matt RaibleJul 11, 2011 10:27 am 
Ryan HeatonJul 18, 2011 4:02 pm 
Subject:[enunciate-user] OpenJDK 7 on OS X: NoClassDefFoundError: com/sun/mirror/apt/AnnotationProcessorFactory
From:Matt Raible (ma@raibledesigns.com)
Date:Jul 11, 2011 10:27:53 am
List:org.codehaus.enunciate.user

I'm trying to use OpenJDK 7 to build AppFuse (specifically, its appfuse-ws
archetype) and Maven 2.2.1. I'm getting the error below, even though I've added
the following profile to include tools.jar on the classpath. Any ideas?

<!-- ======= JDK 7 needs tools.jar for Enunciate ======= --> <profile> <activation> <jdk>1.7</jdk> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>native2ascii-maven-plugin</artifactId> <dependencies> <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>1.7.0</version> <scope>system</scope> <systemPath>${java.home}/../lib/tools.jar</systemPath> </dependency> </dependencies> </plugin> </plugins> </build> </profile>

Thanks,

Matt

[exec] [INFO]
------------------------------------------------------------------------ [exec] [INFO] Building AppFuse Web Services Application [exec] [INFO] task-segment: [integration-test] [exec] [INFO]
------------------------------------------------------------------------ [exec] [INFO] [enunciate-cxf:assemble {execution: default}] [exec] [FATAL ERROR] org.codehaus.enunciate.AssembleCXFMojo#execute()
caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date.
Check the realms: [exec] [FATAL ERROR] Plugin realm =
app0.child-container[org.codehaus.enunciate:maven-enunciate-cxf-plugin:1.22] [exec] urls[0] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/maven-enunciate-cxf-plugin/1.22/maven-enunciate-cxf-plugin-1.22.jar [exec] urls[1] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/maven-enunciate-plugin/1.22/maven-enunciate-plugin-1.22.jar [exec] urls[2] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/maven-enunciate-slim-plugin/1.22/maven-enunciate-slim-plugin-1.22.jar [exec] urls[3] =
file:/Users/mraible/.m2/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.jar [exec] urls[4] =
file:/Users/mraible/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar [exec] urls[5] =
file:/Users/mraible/.m2/repository/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.jar [exec] urls[6] =
file:/Users/mraible/.m2/repository/org/apache/maven/plugins/maven-deploy-plugin/2.3/maven-deploy-plugin-2.3.jar [exec] urls[7] =
file:/Users/mraible/.m2/repository/org/apache/maven/shared/maven-filtering/1.0-beta-2/maven-filtering-1.0-beta-2.jar [exec] urls[8] =
file:/Users/mraible/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.6/plexus-interpolation-1.6.jar [exec] urls[9] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-core/1.22/enunciate-core-1.22.jar [exec] urls[10] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-core-rt/1.22/enunciate-core-rt-1.22.jar [exec] urls[11] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-core-annotations/1.22/enunciate-core-annotations-1.22.jar [exec] urls[12] =
file:/Users/mraible/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar [exec] urls[13] =
file:/Users/mraible/.m2/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar [exec] urls[14] =
file:/Users/mraible/.m2/repository/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar [exec] urls[15] =
file:/Users/mraible/.m2/repository/net/sf/apt-jelly/apt-jelly-freemarker/2.13/apt-jelly-freemarker-2.13.jar [exec] urls[16] =
file:/Users/mraible/.m2/repository/net/sf/apt-jelly/apt-jelly-core/2.13/apt-jelly-core-2.13.jar [exec] urls[17] =
file:/Users/mraible/.m2/repository/org/freemarker/freemarker/2.3.14/freemarker-2.3.14.jar [exec] urls[18] =
file:/Users/mraible/.m2/repository/commons-digester/commons-digester/1.7/commons-digester-1.7.jar [exec] urls[19] =
file:/Users/mraible/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar [exec] urls[20] =
file:/Users/mraible/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar [exec] urls[21] =
file:/Users/mraible/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.7.4/jackson-mapper-asl-1.7.4.jar [exec] urls[22] =
file:/Users/mraible/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.7.4/jackson-core-asl-1.7.4.jar [exec] urls[23] =
file:/Users/mraible/.m2/repository/org/jdom/jdom/1.1/jdom-1.1.jar [exec] urls[24] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-top/1.22/enunciate-top-1.22.jar [exec] urls[25] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-jaxws-support/1.22/enunciate-jaxws-support-1.22.jar [exec] urls[26] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-jaxws-ri/1.22/enunciate-jaxws-ri-1.22.jar [exec] urls[27] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-docs/1.22/enunciate-docs-1.22.jar [exec] urls[28] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-jersey/1.22/enunciate-jersey-1.22.jar [exec] urls[29] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-jersey-rt/1.22/enunciate-jersey-rt-1.22.jar [exec] urls[30] =
file:/Users/mraible/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.7.4/jackson-jaxrs-1.7.4.jar [exec] urls[31] =
file:/Users/mraible/.m2/repository/org/codehaus/jackson/jackson-xc/1.7.4/jackson-xc-1.7.4.jar [exec] urls[32] =
file:/Users/mraible/.m2/repository/com/sun/jersey/jersey-server/1.5/jersey-server-1.5.jar [exec] urls[33] =
file:/Users/mraible/.m2/repository/com/sun/jersey/jersey-core/1.5/jersey-core-1.5.jar [exec] urls[34] =
file:/Users/mraible/.m2/repository/asm/asm/3.1/asm-3.1.jar [exec] urls[35] =
file:/Users/mraible/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar [exec] urls[36] =
file:/Users/mraible/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.13/jaxb-impl-2.1.13.jar [exec] urls[37] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-xml/1.22/enunciate-xml-1.22.jar [exec] urls[38] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-java-client/1.22/enunciate-java-client-1.22.jar [exec] urls[39] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-c/1.22/enunciate-c-1.22.jar [exec] urls[40] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-obj-c/1.22/enunciate-obj-c-1.22.jar [exec] urls[41] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-csharp/1.22/enunciate-csharp-1.22.jar [exec] urls[42] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-ruby/1.22/enunciate-ruby-1.22.jar [exec] urls[43] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-cxf/1.22/enunciate-cxf-1.22.jar [exec] urls[44] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-cxf-rt/1.22/enunciate-cxf-rt-1.22.jar [exec] urls[45] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-spring-app-rt/1.22/enunciate-spring-app-rt-1.22.jar [exec] urls[46] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-rt/1.22/enunciate-rt-1.22.jar [exec] urls[47] =
file:/Users/mraible/.m2/repository/org/springframework/spring-aop/2.5.4/spring-aop-2.5.4.jar [exec] urls[48] =
file:/Users/mraible/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar [exec] urls[49] =
file:/Users/mraible/.m2/repository/org/springframework/spring-beans/2.5.4/spring-beans-2.5.4.jar [exec] urls[50] =
file:/Users/mraible/.m2/repository/org/springframework/spring-core/2.5.4/spring-core-2.5.4.jar [exec] urls[51] =
file:/Users/mraible/.m2/repository/org/springframework/spring-context/2.5.4/spring-context-2.5.4.jar [exec] urls[52] =
file:/Users/mraible/.m2/repository/org/springframework/spring-web/2.5.4/spring-web-2.5.4.jar [exec] urls[53] =
file:/Users/mraible/.m2/repository/org/springframework/spring-webmvc/2.5.4/spring-webmvc-2.5.4.jar [exec] urls[54] =
file:/Users/mraible/.m2/repository/org/springframework/spring-context-support/2.5.4/spring-context-support-2.5.4.jar [exec] urls[55] =
file:/Users/mraible/.m2/repository/org/codehaus/woodstox/woodstox-core-asl/4.0.8/woodstox-core-asl-4.0.8.jar [exec] urls[56] =
file:/Users/mraible/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar [exec] urls[57] =
file:/Users/mraible/.m2/repository/org/codehaus/woodstox/stax2-api/3.0.2/stax2-api-3.0.2.jar [exec] urls[58] =
file:/Users/mraible/.m2/repository/wsdl4j/wsdl4j/1.6.2/wsdl4j-1.6.2.jar [exec] urls[59] =
file:/Users/mraible/.m2/repository/org/apache/cxf/cxf-rt-core/2.3.3/cxf-rt-core-2.3.3.jar [exec] urls[60] =
file:/Users/mraible/.m2/repository/org/apache/cxf/cxf-api/2.3.3/cxf-api-2.3.3.jar [exec] urls[61] =
file:/Users/mraible/.m2/repository/org/apache/cxf/cxf-common-utilities/2.3.3/cxf-common-utilities-2.3.3.jar [exec] urls[62] =
file:/Users/mraible/.m2/repository/org/apache/ws/commons/schema/XmlSchema/1.4.7/XmlSchema-1.4.7.jar [exec] urls[63] =
file:/Users/mraible/.m2/repository/org/apache/neethi/neethi/2.0.4/neethi-2.0.4.jar [exec] urls[64] =
file:/Users/mraible/.m2/repository/org/apache/cxf/cxf-common-schemas/2.3.3/cxf-common-schemas-2.3.3.jar [exec] urls[65] =
file:/Users/mraible/.m2/repository/org/apache/cxf/cxf-rt-frontend-jaxws/2.3.3/cxf-rt-frontend-jaxws-2.3.3.jar [exec] urls[66] =
file:/Users/mraible/.m2/repository/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar [exec] urls[67] =
file:/Users/mraible/.m2/repository/org/apache/cxf/cxf-rt-bindings-soap/2.3.3/cxf-rt-bindings-soap-2.3.3.jar [exec] urls[68] =
file:/Users/mraible/.m2/repository/org/apache/cxf/cxf-tools-common/2.3.3/cxf-tools-common-2.3.3.jar [exec] urls[69] =
file:/Users/mraible/.m2/repository/org/apache/cxf/cxf-rt-databinding-jaxb/2.3.3/cxf-rt-databinding-jaxb-2.3.3.jar [exec] urls[70] =
file:/Users/mraible/.m2/repository/org/apache/cxf/cxf-rt-bindings-xml/2.3.3/cxf-rt-bindings-xml-2.3.3.jar [exec] urls[71] =
file:/Users/mraible/.m2/repository/org/apache/cxf/cxf-rt-frontend-simple/2.3.3/cxf-rt-frontend-simple-2.3.3.jar [exec] urls[72] =
file:/Users/mraible/.m2/repository/org/apache/cxf/cxf-rt-ws-addr/2.3.3/cxf-rt-ws-addr-2.3.3.jar [exec] urls[73] =
file:/Users/mraible/.m2/repository/org/apache/cxf/cxf-rt-frontend-jaxrs/2.3.3/cxf-rt-frontend-jaxrs-2.3.3.jar [exec] urls[74] =
file:/Users/mraible/.m2/repository/org/apache/cxf/cxf-rt-transports-http/2.3.3/cxf-rt-transports-http-2.3.3.jar [exec] urls[75] =
file:/Users/mraible/.m2/repository/org/apache/cxf/cxf-rt-transports-common/2.3.3/cxf-rt-transports-common-2.3.3.jar [exec] urls[76] =
file:/Users/mraible/.m2/repository/org/codehaus/jettison/jettison/1.0.1/jettison-1.0.1.jar [exec] urls[77] =
file:/Users/mraible/.m2/repository/org/codehaus/enunciate/enunciate-spring-app/1.22/enunciate-spring-app-1.22.jar [exec] [FATAL ERROR] Container realm = plexus.core [exec] urls[0] = file:/opt/tools/maven/lib/maven-2.2.1-uber.jar [exec] [INFO]
------------------------------------------------------------------------ [exec] [ERROR] FATAL ERROR [exec] [INFO]
------------------------------------------------------------------------ [exec] [INFO] com/sun/mirror/apt/AnnotationProcessorFactory [exec] com.sun.mirror.apt.AnnotationProcessorFactory [exec] [INFO]
------------------------------------------------------------------------ [exec] [INFO] Trace [exec] java.lang.NoClassDefFoundError:
com/sun/mirror/apt/AnnotationProcessorFactory [exec] at
org.codehaus.enunciate.ConfigMojo.loadMavenSpecificEnunciate(ConfigMojo.java:501) [exec] at
org.codehaus.enunciate.ConfigMojo.execute(ConfigMojo.java:305) [exec] at
org.codehaus.enunciate.AssembleMojo.execute(AssembleMojo.java:56) [exec] at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) [exec] at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) [exec] at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) [exec] at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) [exec] at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) [exec] at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) [exec] at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) [exec] at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) [exec] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) [exec] at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) [exec] at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [exec] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [exec] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [exec] at java.lang.reflect.Method.invoke(Method.java:601) [exec] at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) [exec] at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) [exec] at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) [exec] at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [exec] Caused by: java.lang.ClassNotFoundException:
com.sun.mirror.apt.AnnotationProcessorFactory [exec] at java.net.URLClassLoader$1.run(URLClassLoader.java:366) [exec] at java.net.URLClassLoader$1.run(URLClassLoader.java:355) [exec] at java.security.AccessController.doPrivileged(Native Method) [exec] at java.net.URLClassLoader.findClass(URLClassLoader.java:354) [exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:423) [exec] at
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) [exec] at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255) [exec] at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274) [exec] at
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214) [exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:356) [exec] ... 22 more