camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CAMEL-6579) Cannot build Camel source code with with OpenJDK Java 8
Date Tue, 08 Apr 2014 20:14:17 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-6579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13963381#comment-13963381
] 

Christian Müller commented on CAMEL-6579:
-----------------------------------------

depends on https://jira.codehaus.org/browse/MNG-5551

> Cannot build Camel source code with with OpenJDK Java 8
> -------------------------------------------------------
>
>                 Key: CAMEL-6579
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6579
>             Project: Camel
>          Issue Type: Task
>          Components: build system
>    Affects Versions: 2.12.0
>            Reporter: Greg Bakos
>            Priority: Minor
>             Fix For: Future
>
>
> I've tried to make a build with Java 8. It's just an early test depend on this: https://java.net/projects/adoptopenjdk/pages/TestingJava8
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (generate-sources)
on project camel-spring: An Ant BuildException has occured: taskdef A class needed by class
com.sun.tools.jxc.SchemaGenTask cannot be found: com/sun/mirror/apt/AnnotationProcessorFactory
> [ERROR] using the classloader AntClassLoader[/home/jenkins/.m2/repository/org/apache/maven/plugins/maven-antrun-plugin/1.6/maven-antrun-plugin-1.6.jar:/home/jenkins/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.13/jaxb-impl-2.1.13.jar:/home/jenkins/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar:/home/jenkins/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar:/home/jenkins/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/home/jenkins/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.1.13/jaxb-xjc-2.1.13.jar:/home/jenkins/.m2/repository/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar:/home/jenkins/.m2/repository/org/apache/ant/ant-trax/1.8.0/ant-trax-1.8.0.jar:/home/jenkins/.m2/repository/org/apache/ant/ant-apache-xalan2/1.8.0/ant-apache-xalan2-1.8.0.jar:/home/jenkins/.m2/repository/xalan/xalan/2.7.1/xalan-2.7.1.jar:/home/jenkins/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar:/home/jenkins/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar:/home/jenkins/.m2/repository/org/apache/ant/ant-nodeps/1.8.1/ant-nodeps-1.8.1.jar:/home/jenkins/.m2/repository/org/apache/ant/ant/1.8.1/ant-1.8.1.jar:/home/jenkins/.m2/repository/org/apache/ant/ant-launcher/1.8.1/ant-launcher-1.8.1.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-persistence-jdbc/2.2.2/openjpa-persistence-jdbc-2.2.2.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-jdbc/2.2.2/openjpa-jdbc-2.2.2.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-kernel/2.2.2/openjpa-kernel-2.2.2.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-lib/2.2.2/openjpa-lib-2.2.2.jar:/home/jenkins/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar:/home/jenkins/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/home/jenkins/.m2/repository/net/sourceforge/serp/serp/1.14.1/serp-1.14.1.jar:/home/jenkins/.m2/repository/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.1.1/geronimo-jms_1.1_spec-1.1.1.jar:/home/jenkins/.m2/repository/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1.jar:/home/jenkins/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar:/home/jenkins/.m2/repository/asm/asm/3.2/asm-3.2.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-persistence/2.2.2/openjpa-persistence-2.2.2.jar:/home/jenkins/.m2/repository/org/apache/geronimo/specs/geronimo-jpa_2.0_spec/1.1/geronimo-jpa_2.0_spec-1.1.jar:/opt/java/sdk/OpenJDK/lambda1.8.0/lib/tools.jar:/home/jenkins/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.1/plexus-interpolation-1.1.jar:/home/jenkins/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/home/jenkins/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar]:
com.sun.mirror.apt.AnnotationProcessorFactory
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run
(generate-sources) on project camel-spring: An Ant BuildException has occured: taskdef A class
needed by class com.sun.tools.jxc.SchemaGenTask cannot be found: com/sun/mirror/apt/AnnotationProcessorFactory
>  using the classloader AntClassLoader[/home/jenkins/.m2/repository/org/apache/maven/plugins/maven-antrun-plugin/1.6/maven-antrun-plugin-1.6.jar:/home/jenkins/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.13/jaxb-impl-2.1.13.jar:/home/jenkins/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar:/home/jenkins/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar:/home/jenkins/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/home/jenkins/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.1.13/jaxb-xjc-2.1.13.jar:/home/jenkins/.m2/repository/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar:/home/jenkins/.m2/repository/org/apache/ant/ant-trax/1.8.0/ant-trax-1.8.0.jar:/home/jenkins/.m2/repository/org/apache/ant/ant-apache-xalan2/1.8.0/ant-apache-xalan2-1.8.0.jar:/home/jenkins/.m2/repository/xalan/xalan/2.7.1/xalan-2.7.1.jar:/home/jenkins/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar:/home/jenkins/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar:/home/jenkins/.m2/repository/org/apache/ant/ant-nodeps/1.8.1/ant-nodeps-1.8.1.jar:/home/jenkins/.m2/repository/org/apache/ant/ant/1.8.1/ant-1.8.1.jar:/home/jenkins/.m2/repository/org/apache/ant/ant-launcher/1.8.1/ant-launcher-1.8.1.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-persistence-jdbc/2.2.2/openjpa-persistence-jdbc-2.2.2.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-jdbc/2.2.2/openjpa-jdbc-2.2.2.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-kernel/2.2.2/openjpa-kernel-2.2.2.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-lib/2.2.2/openjpa-lib-2.2.2.jar:/home/jenkins/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar:/home/jenkins/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/home/jenkins/.m2/repository/net/sourceforge/serp/serp/1.14.1/serp-1.14.1.jar:/home/jenkins/.m2/repository/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.1.1/geronimo-jms_1.1_spec-1.1.1.jar:/home/jenkins/.m2/repository/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1.jar:/home/jenkins/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar:/home/jenkins/.m2/repository/asm/asm/3.2/asm-3.2.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-persistence/2.2.2/openjpa-persistence-2.2.2.jar:/home/jenkins/.m2/repository/org/apache/geronimo/specs/geronimo-jpa_2.0_spec/1.1/geronimo-jpa_2.0_spec-1.1.jar:/opt/java/sdk/OpenJDK/lambda1.8.0/lib/tools.jar:/home/jenkins/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.1/plexus-interpolation-1.1.jar:/home/jenkins/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/home/jenkins/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar]
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:491)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant BuildException has
occured: taskdef A class needed by class com.sun.tools.jxc.SchemaGenTask cannot be found:
com/sun/mirror/apt/AnnotationProcessorFactory
>  using the classloader AntClassLoader[/home/jenkins/.m2/repository/org/apache/maven/plugins/maven-antrun-plugin/1.6/maven-antrun-plugin-1.6.jar:/home/jenkins/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.13/jaxb-impl-2.1.13.jar:/home/jenkins/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar:/home/jenkins/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar:/home/jenkins/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/home/jenkins/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.1.13/jaxb-xjc-2.1.13.jar:/home/jenkins/.m2/repository/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar:/home/jenkins/.m2/repository/org/apache/ant/ant-trax/1.8.0/ant-trax-1.8.0.jar:/home/jenkins/.m2/repository/org/apache/ant/ant-apache-xalan2/1.8.0/ant-apache-xalan2-1.8.0.jar:/home/jenkins/.m2/repository/xalan/xalan/2.7.1/xalan-2.7.1.jar:/home/jenkins/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar:/home/jenkins/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar:/home/jenkins/.m2/repository/org/apache/ant/ant-nodeps/1.8.1/ant-nodeps-1.8.1.jar:/home/jenkins/.m2/repository/org/apache/ant/ant/1.8.1/ant-1.8.1.jar:/home/jenkins/.m2/repository/org/apache/ant/ant-launcher/1.8.1/ant-launcher-1.8.1.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-persistence-jdbc/2.2.2/openjpa-persistence-jdbc-2.2.2.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-jdbc/2.2.2/openjpa-jdbc-2.2.2.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-kernel/2.2.2/openjpa-kernel-2.2.2.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-lib/2.2.2/openjpa-lib-2.2.2.jar:/home/jenkins/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar:/home/jenkins/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/home/jenkins/.m2/repository/net/sourceforge/serp/serp/1.14.1/serp-1.14.1.jar:/home/jenkins/.m2/repository/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.1.1/geronimo-jms_1.1_spec-1.1.1.jar:/home/jenkins/.m2/repository/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1.jar:/home/jenkins/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar:/home/jenkins/.m2/repository/asm/asm/3.2/asm-3.2.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-persistence/2.2.2/openjpa-persistence-2.2.2.jar:/home/jenkins/.m2/repository/org/apache/geronimo/specs/geronimo-jpa_2.0_spec/1.1/geronimo-jpa_2.0_spec-1.1.jar:/opt/java/sdk/OpenJDK/lambda1.8.0/lib/tools.jar:/home/jenkins/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.1/plexus-interpolation-1.1.jar:/home/jenkins/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/home/jenkins/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar]
> 	at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:283)
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> 	... 19 more
> Caused by: /scratch/jenkins/workspace/Camel/jdk/OpenJDK8/components/camel-spring/target/antrun/build-main.xml:4:
taskdef A class needed by class com.sun.tools.jxc.SchemaGenTask cannot be found: com/sun/mirror/apt/AnnotationProcessorFactory
>  using the classloader AntClassLoader[/home/jenkins/.m2/repository/org/apache/maven/plugins/maven-antrun-plugin/1.6/maven-antrun-plugin-1.6.jar:/home/jenkins/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.13/jaxb-impl-2.1.13.jar:/home/jenkins/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar:/home/jenkins/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar:/home/jenkins/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/home/jenkins/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.1.13/jaxb-xjc-2.1.13.jar:/home/jenkins/.m2/repository/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar:/home/jenkins/.m2/repository/org/apache/ant/ant-trax/1.8.0/ant-trax-1.8.0.jar:/home/jenkins/.m2/repository/org/apache/ant/ant-apache-xalan2/1.8.0/ant-apache-xalan2-1.8.0.jar:/home/jenkins/.m2/repository/xalan/xalan/2.7.1/xalan-2.7.1.jar:/home/jenkins/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar:/home/jenkins/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar:/home/jenkins/.m2/repository/org/apache/ant/ant-nodeps/1.8.1/ant-nodeps-1.8.1.jar:/home/jenkins/.m2/repository/org/apache/ant/ant/1.8.1/ant-1.8.1.jar:/home/jenkins/.m2/repository/org/apache/ant/ant-launcher/1.8.1/ant-launcher-1.8.1.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-persistence-jdbc/2.2.2/openjpa-persistence-jdbc-2.2.2.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-jdbc/2.2.2/openjpa-jdbc-2.2.2.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-kernel/2.2.2/openjpa-kernel-2.2.2.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-lib/2.2.2/openjpa-lib-2.2.2.jar:/home/jenkins/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar:/home/jenkins/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/home/jenkins/.m2/repository/net/sourceforge/serp/serp/1.14.1/serp-1.14.1.jar:/home/jenkins/.m2/repository/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.1.1/geronimo-jms_1.1_spec-1.1.1.jar:/home/jenkins/.m2/repository/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1.jar:/home/jenkins/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar:/home/jenkins/.m2/repository/asm/asm/3.2/asm-3.2.jar:/home/jenkins/.m2/repository/org/apache/openjpa/openjpa-persistence/2.2.2/openjpa-persistence-2.2.2.jar:/home/jenkins/.m2/repository/org/apache/geronimo/specs/geronimo-jpa_2.0_spec/1.1/geronimo-jpa_2.0_spec-1.1.jar:/opt/java/sdk/OpenJDK/lambda1.8.0/lib/tools.jar:/home/jenkins/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.1/plexus-interpolation-1.1.jar:/home/jenkins/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/home/jenkins/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar]
> 	at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:627)
> 	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:239)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:491)
> 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> 	at org.apache.tools.ant.Task.perform(Task.java:348)
> 	at org.apache.tools.ant.Target.execute(Target.java:390)
> 	at org.apache.tools.ant.Target.performTasks(Target.java:411)
> 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
> 	at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
> 	at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:270)
> 	... 21 more
> Caused by: java.lang.NoClassDefFoundError: com/sun/mirror/apt/AnnotationProcessorFactory
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:339)
> 	at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:594)
> 	... 34 more
> Caused by: java.lang.ClassNotFoundException: com.sun.mirror.apt.AnnotationProcessorFactory
> 	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
> 	... 37 more



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message