cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piotr Klimczak (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-2796) maven build fails once after clean but then succeeds
Date Fri, 01 Apr 2011 07:28:06 GMT

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

Piotr Klimczak commented on CXF-2796:
-------------------------------------

Same problem :(

I will try to take a closer look at this during this weekend (i hope).
So please wait for further informations.

 cxf-codegen-plugin-markers]
[DEBUG] Checking for symlink:
File's canonical path: /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/jaxws
File's absolute path with canonical parent: /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/jaxws
[INFO] Deleting directory: /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/jaxws
[DEBUG] Checking for symlink:
File's canonical path: /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/classes
File's absolute path with canonical parent: /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/classes
[INFO] Deleting directory: /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/classes
[DEBUG] Checking for symlink:
File's canonical path: /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target
File's absolute path with canonical parent: /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target
[INFO] Deleting directory: /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target
[DEBUG] Checking for symlink:
File's canonical path: /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/cxf-codegen-plugin-markers
File's absolute path with canonical parent: /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/cxf-codegen-plugin-markers
[DEBUG] Skipping non-existing directory: /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/classes
[DEBUG] Skipping non-existing directory: /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/test-classes
[DEBUG] Skipping non-existing directory: /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/site
[INFO] 
[INFO] --- cxf-codegen-plugin:2.4.0-SNAPSHOT:wsdl2java (Default Contract) @ kgapi-contract-test
---
[DEBUG] Configuring mojo org.apache.cxf:cxf-codegen-plugin:2.4.0-SNAPSHOT:wsdl2java from plugin
realm ClassRealm[plugin>org.apache.cxf:cxf-codegen-plugin:2.4.0-SNAPSHOT, parent: sun.misc.Launcher$AppClassLoader@6d6f0472]
[DEBUG] Configuring mojo 'org.apache.cxf:cxf-codegen-plugin:2.4.0-SNAPSHOT:wsdl2java' with
basic configurator -->
[DEBUG]   (f) classesDirectory = /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/classes
[DEBUG]   (f) disableDependencyScan = false
[DEBUG]   (f) disableDirectoryScan = false
[DEBUG]   (f) fork = false
[DEBUG]   (f) javaExecutable = /opt/sun-jdk-1.6.0.24/jre/bin/java
[DEBUG]   (f) localRepository =        id: local
      url: file:///home/kokete/.m2/repository/
   layout: none

[DEBUG]   (f) markerDirectory = /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/cxf-codegen-plugin-markers
[DEBUG]   (f) mavenSession = org.apache.maven.execution.MavenSession@d3c9557
[DEBUG]   (f) pluginArtifacts = [org.apache.cxf:cxf-codegen-plugin:maven-plugin:2.4.0-SNAPSHOT:,
org.apache.maven.shared:maven-artifact-resolver:jar:1.0:compile, org.codehaus.plexus:plexus-utils:jar:2.0.5:compile,
org.codehaus.plexus:plexus-archiver:jar:1.2:compile, org.codehaus.plexus:plexus-io:jar:1.0.1:compile,
org.apache.cxf:cxf-tools-common:jar:2.4.0-SNAPSHOT:compile, org.apache.velocity:velocity:jar:1.6.4:compile,
commons-collections:commons-collections:jar:3.2.1:compile, commons-lang:commons-lang:jar:2.6:compile,
oro:oro:jar:2.0.8:compile, wsdl4j:wsdl4j:jar:1.6.2:compile, com.sun.xml.bind:jaxb-xjc:jar:2.1.13:compile,
com.sun.xml.bind:jaxb-impl:jar:2.1.13:compile, org.apache.cxf:cxf-api:jar:2.4.0-SNAPSHOT:compile,
org.apache.neethi:neethi:jar:3.0.0-SNAPSHOT:compile, org.apache.cxf:cxf-rt-core:jar:2.4.0-SNAPSHOT:compile,
org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.7.1:compile, org.apache.cxf:cxf-tools-wsdlto-core:jar:2.4.0-SNAPSHOT:compile,
org.apache.cxf:cxf-tools-validator:jar:2.4.0-SNAPSHOT:compile, org.apache.cxf:cxf-common-utilities:jar:2.4.0-SNAPSHOT:compile,
org.apache.ws.xmlschema:xmlschema-core:jar:2.0:compile, org.codehaus.woodstox:woodstox-core-asl:jar:4.1.1:compile,
org.codehaus.woodstox:stax2-api:jar:3.1.1:compile, org.apache.cxf:cxf-tools-wsdlto-databinding-jaxb:jar:2.4.0-SNAPSHOT:compile,
org.apache.cxf:cxf-tools-wsdlto-frontend-jaxws:jar:2.4.0-SNAPSHOT:compile, xml-resolver:xml-resolver:jar:1.2:compile,
org.springframework:spring-core:jar:3.0.5.RELEASE:compile, org.springframework:spring-asm:jar:3.0.5.RELEASE:compile,
commons-logging:commons-logging:jar:1.1.1:compile, org.springframework:spring-beans:jar:3.0.5.RELEASE:compile,
org.springframework:spring-context:jar:3.0.5.RELEASE:compile, org.springframework:spring-aop:jar:3.0.5.RELEASE:compile,
aopalliance:aopalliance:jar:1.0:compile, org.springframework:spring-expression:jar:3.0.5.RELEASE:compile,
org.apache.ant:ant:jar:1.8.2:compile, org.apache.ant:ant-launcher:jar:1.8.2:compile, org.apache.ant:ant-nodeps:jar:1.8.1:compile]
[DEBUG]   (f) project = MavenProject: pl.com.bgk.smx:kgapi-contract-test:0.0.1-SNAPSHOT @
/home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/pom.xml
[DEBUG]   (f) repositories = [id = 'fusesource.releases', id = 'fusesource.snapshots', id
= 'apache.snapshots', id = 'java.net', id = 'jboss', id = 'scriptengines', id = 'servicemix.m2-repo',
id = 'spring-maven-release', id = 'spring-maven-external', id = 'release.fusesource.org',
id = 'snapshot.fusesource.org', id = 'central']
[DEBUG]   (f) sourceRoot = /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/jaxws
[DEBUG]   (f) testWsdlRoot = /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/src/test/resources/wsdl
[DEBUG]   (f) useCompileClasspath = false
[DEBUG]   (s) wsdl = /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/src/main/wsdl/contract.wsdl
[DEBUG]   (s) wsdlLocation = \n
[DEBUG]   (s) bindingFiles = [/home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/src/main/wsdl/binding.xml]
[DEBUG]   (s) extraargs = [-quiet, -impl, -nexclude, =pl.com.bgk.smx.kgapi.contract.basics.types]
[DEBUG]   (f) wsdlOptions = [WSDL: /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/src/main/wsdl/contract.wsdl
OutputDir: null
Extraargs: [-quiet, -impl, -nexclude, =pl.com.bgk.smx.kgapi.contract.basics.types]
XJCargs: []
Packagenames: []

]
[DEBUG]   (f) wsdlRoot = /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/src/main/resources/wsdl
[DEBUG] -- end configuration --
[DEBUG] Classpath: [file:/home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/classes/,
file:/home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/classes/, file:/home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contracts-basics/target/kgapi-contracts-basics-0.0.1-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/apache/activemq/activemq-camel/5.4.2-fuse-01-00/activemq-camel-5.4.2-fuse-01-00.jar,
file:/home/kokete/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar,
file:/home/kokete/.m2/repository/org/apache/activemq/activemq-pool/5.4.2-fuse-01-00/activemq-pool-5.4.2-fuse-01-00.jar,
file:/home/kokete/.m2/repository/org/apache/geronimo/specs/geronimo-jta_1.0.1B_spec/1.0.1/geronimo-jta_1.0.1B_spec-1.0.1.jar,
file:/home/kokete/.m2/repository/org/apache/camel/camel-cxf/2.6.0-fuse-00-00/camel-cxf-2.6.0-fuse-00-00.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-rt-frontend-jaxrs/2.3.2-fuse-00-00/cxf-rt-frontend-jaxrs-2.3.2-fuse-00-00.jar,
file:/home/kokete/.m2/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar, file:/home/kokete/.m2/repository/org/codehaus/jettison/jettison/1.2/jettison-1.2.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-rt-frontend-jaxws/2.4.0-SNAPSHOT/cxf-rt-frontend-jaxws-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar, file:/home/kokete/.m2/repository/asm/asm/3.3/asm-3.3.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-rt-frontend-simple/2.4.0-SNAPSHOT/cxf-rt-frontend-simple-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-rt-ws-addr/2.4.0-SNAPSHOT/cxf-rt-ws-addr-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/springframework/spring-core/3.0.5.RELEASE/spring-core-3.0.5.RELEASE.jar,
file:/home/kokete/.m2/repository/org/springframework/spring-asm/3.0.5.RELEASE/spring-asm-3.0.5.RELEASE.jar,
file:/home/kokete/.m2/repository/org/springframework/spring-beans/3.0.5.RELEASE/spring-beans-3.0.5.RELEASE.jar,
file:/home/kokete/.m2/repository/org/springframework/spring-context/3.0.5.RELEASE/spring-context-3.0.5.RELEASE.jar,
file:/home/kokete/.m2/repository/org/springframework/spring-expression/3.0.5.RELEASE/spring-expression-3.0.5.RELEASE.jar,
file:/opt/sun-jdk-1.6.0.24/jre/../lib/tools.jar, file:/home/kokete/workspace/kgapi/kgapi-core/target/kgapi-core-0.0.1-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/osgi/org.osgi.core/4.2.0/org.osgi.core-4.2.0.jar, file:/home/kokete/.m2/repository/org/apache/activemq/activemq-core/5.4.2-fuse-01-00/activemq-core-5.4.2-fuse-01-00.jar,
file:/home/kokete/.m2/repository/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.1.1/geronimo-jms_1.1_spec-1.1.1.jar,
file:/home/kokete/.m2/repository/org/apache/activemq/activeio-core/3.1.2/activeio-core-3.1.2.jar,
file:/home/kokete/.m2/repository/org/apache/activemq/kahadb/5.4.2-fuse-01-00/kahadb-5.4.2-fuse-01-00.jar,
file:/home/kokete/.m2/repository/org/apache/activemq/protobuf/activemq-protobuf/1.1/activemq-protobuf-1.1.jar,
file:/home/kokete/.m2/repository/org/apache/geronimo/specs/geronimo-j2ee-management_1.1_spec/1.0.1/geronimo-j2ee-management_1.1_spec-1.0.1.jar,
file:/home/kokete/.m2/repository/commons-net/commons-net/2.2/commons-net-2.2.jar, file:/home/kokete/.m2/repository/org/jasypt/jasypt/1.6/jasypt-1.6.jar,
file:/home/kokete/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar, file:/home/kokete/.m2/repository/com/ibm/icu/icu4j/4.0.1/icu4j-4.0.1.jar,
file:/home/kokete/.m2/repository/org/apache/camel/camel-core/2.6.0-fuse-00-00/camel-core-2.6.0-fuse-00-00.jar,
file:/home/kokete/.m2/repository/org/fusesource/commonman/commons-management/1.0/commons-management-1.0.jar,
file:/home/kokete/.m2/repository/org/apache/camel/camel-spring/2.6.0-fuse-00-00/camel-spring-2.6.0-fuse-00-00.jar,
file:/home/kokete/.m2/repository/org/springframework/spring-aop/3.0.5.RELEASE/spring-aop-3.0.5.RELEASE.jar,
file:/home/kokete/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar, file:/home/kokete/.m2/repository/org/springframework/spring-tx/3.0.5.RELEASE/spring-tx-3.0.5.RELEASE.jar,
file:/home/kokete/.m2/repository/org/apache/camel/camel-jms/2.6.0-fuse-00-00/camel-jms-2.6.0-fuse-00-00.jar,
file:/home/kokete/.m2/repository/org/springframework/spring-jms/3.0.5.RELEASE/spring-jms-3.0.5.RELEASE.jar,
file:/home/kokete/.m2/repository/org/apache/camel/camel-jaxb/2.6.0-fuse-00-00/camel-jaxb-2.6.0-fuse-00-00.jar,
file:/home/kokete/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar, file:/home/kokete/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar,
file:/home/kokete/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar, file:/home/kokete/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.13/jaxb-impl-2.1.13.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-rt-bindings-http/2.4.0-SNAPSHOT/cxf-rt-bindings-http-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/codehaus/jra/jra/1.0-alpha-4/jra-1.0-alpha-4.jar, file:/home/kokete/.m2/repository/org/apache/cxf/cxf-api/2.4.0-SNAPSHOT/cxf-api-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/apache/ws/xmlschema/xmlschema-core/2.0/xmlschema-core-2.0.jar,
file:/home/kokete/.m2/repository/org/apache/neethi/neethi/3.0.0-SNAPSHOT/neethi-3.0.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/wsdl4j/wsdl4j/1.6.2/wsdl4j-1.6.2.jar, file:/home/kokete/.m2/repository/org/apache/cxf/cxf-rt-bindings-xml/2.4.0-SNAPSHOT/cxf-rt-bindings-xml-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-rt-databinding-jaxb/2.4.0-SNAPSHOT/cxf-rt-databinding-jaxb-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-rt-ws-security/2.4.0-SNAPSHOT/cxf-rt-ws-security-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-rt-core/2.4.0-SNAPSHOT/cxf-rt-core-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.7.1/geronimo-javamail_1.4_spec-1.7.1.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-common-utilities/2.4.0-SNAPSHOT/cxf-common-utilities-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/codehaus/woodstox/woodstox-core-asl/4.0.8/woodstox-core-asl-4.0.8.jar,
file:/home/kokete/.m2/repository/org/codehaus/woodstox/stax2-api/3.0.2/stax2-api-3.0.2.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-rt-bindings-soap/2.4.0-SNAPSHOT/cxf-rt-bindings-soap-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-tools-common/2.4.0-SNAPSHOT/cxf-tools-common-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar,
file:/home/kokete/.m2/repository/xalan/xalan/2.7.1/xalan-2.7.1.jar, file:/home/kokete/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar,
file:/home/kokete/.m2/repository/org/bouncycastle/bcprov-jdk15/1.45/bcprov-jdk15-1.45.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-rt-transports-http-jetty/2.4.0-SNAPSHOT/cxf-rt-transports-http-jetty-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/springframework/spring-web/3.0.5.RELEASE/spring-web-3.0.5.RELEASE.jar,
file:/home/kokete/.m2/repository/org/eclipse/jetty/jetty-server/7.3.1.v20110307/jetty-server-7.3.1.v20110307.jar,
file:/home/kokete/.m2/repository/org/eclipse/jetty/jetty-continuation/7.3.1.v20110307/jetty-continuation-7.3.1.v20110307.jar,
file:/home/kokete/.m2/repository/org/eclipse/jetty/jetty-http/7.3.1.v20110307/jetty-http-7.3.1.v20110307.jar,
file:/home/kokete/.m2/repository/org/eclipse/jetty/jetty-io/7.3.1.v20110307/jetty-io-7.3.1.v20110307.jar,
file:/home/kokete/.m2/repository/org/eclipse/jetty/jetty-util/7.3.1.v20110307/jetty-util-7.3.1.v20110307.jar,
file:/home/kokete/.m2/repository/org/eclipse/jetty/jetty-security/7.3.1.v20110307/jetty-security-7.3.1.v20110307.jar,
file:/home/kokete/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar, file:/home/kokete/.m2/repository/org/apache/geronimo/specs/geronimo-servlet_3.0_spec/1.0/geronimo-servlet_3.0_spec-1.0.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-rt-transports-http/2.4.0-SNAPSHOT/cxf-rt-transports-http-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-rt-transports-common/2.4.0-SNAPSHOT/cxf-rt-transports-common-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-rt-transports-http-osgi/2.4.0-SNAPSHOT/cxf-rt-transports-http-osgi-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-rt-transports-jms/2.4.0-SNAPSHOT/cxf-rt-transports-jms-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/org/apache/cxf/cxf-rt-management/2.4.0-SNAPSHOT/cxf-rt-management-2.4.0-SNAPSHOT.jar,
file:/home/kokete/.m2/repository/commons-pool/commons-pool/1.5.5/commons-pool-1.5.5.jar, file:/home/kokete/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.1.13/jaxb-xjc-2.1.13.jar,
file:/home/kokete/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar, file:/home/kokete/.m2/repository/org/apache/ws/security/wss4j/1.5.9/wss4j-1.5.9.jar,
file:/home/kokete/.m2/repository/org/apache/santuario/xmlsec/1.4.3/xmlsec-1.4.3.jar, file:/home/kokete/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar]
[DEBUG] Calling wsdl2java with args: [-d, /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/jaxws,
-b, file:/home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/src/main/wsdl/binding.xml,
-quiet, -impl, -nexclude, =pl.com.bgk.smx.kgapi.contract.basics.types, -wsdlLocation, \n,
-verbose, file:/home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/src/main/wsdl/contract.wsdl]
Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -d /home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/target/jaxws
-b file:/home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/src/main/wsdl/binding.xml
-quiet -impl -nexclude =pl.com.bgk.smx.kgapi.contract.basics.types -wsdlLocation \n -verbose
file:/home/kokete/workspace/kgapi/kgapi-contracts/kgapi-contract-test/src/main/wsdl/contract.wsdl
wsdl2java - Apache CXF 2.4.0-SNAPSHOT

[DEBUG] 
org.apache.cxf.tools.common.ToolException: java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault
cannot be cast to org.apache.xml.dtm.DTMManager
        at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:298)
        at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
        at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
        at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
        at org.apache.cxf.maven_plugin.WSDL2JavaMojo.callWsdl2Java(WSDL2JavaMojo.java:586)
        at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:412)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        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:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
        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: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: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: java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be
cast to org.apache.xml.dtm.DTMManager
        at org.apache.xml.dtm.DTMManager.newInstance(DTMManager.java:137)
        at org.apache.xpath.XPathContext.<init>(XPathContext.java:102)
        at org.apache.xpath.jaxp.XPathImpl.eval(XPathImpl.java:207)
        at org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:281)
        at com.sun.tools.xjc.reader.internalizer.Internalizer.buildTargetNodeMap(Internalizer.java:266)
        at com.sun.tools.xjc.reader.internalizer.Internalizer.buildTargetNodeMap(Internalizer.java:375)
        at com.sun.tools.xjc.reader.internalizer.Internalizer.transform(Internalizer.java:136)
        at com.sun.tools.xjc.reader.internalizer.Internalizer.transform(Internalizer.java:98)
        at com.sun.tools.xjc.reader.internalizer.DOMForest.transform(DOMForest.java:447)
        at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:221)
        at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)
        at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:392)
        at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:595)
        at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:247)
        at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:138)
        at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:290)
        ... 26 more
[INFO] ------------------------------------------------------------------------


> maven build fails once after clean but then succeeds
> ----------------------------------------------------
>
>                 Key: CXF-2796
>                 URL: https://issues.apache.org/jira/browse/CXF-2796
>             Project: CXF
>          Issue Type: Bug
>          Components: Build system
>    Affects Versions: 2.2.7
>         Environment: java version "1.6.0_18"
> OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
>            Reporter: Bruce Edge
>              Labels: build, maven
>             Fix For: NeedMoreInfo
>
>
> When I run:
>      mvn clean install
> It fails with this traceback:
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot
be cast to org.apache.xml.dtm.DTMManager
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: java.lang.ClassCastException:
org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>         at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>         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:616)
>         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: org.apache.maven.plugin.MojoExecutionException: java.lang.ClassCastException:
org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager
>         at org.apache.cxf.maven_plugin.WSDL2JavaMojo.callWsdl2Java(WSDL2JavaMojo.java:409)
>         at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:361)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>         ... 17 more
> Caused by: org.apache.cxf.tools.common.ToolException: java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault
cannot be cast to org.apache.xml.dtm.DTMManager
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:279)
>         at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
>         at org.apache.cxf.maven_plugin.WSDL2JavaMojo.callWsdl2Java(WSDL2JavaMojo.java:406)
>         ... 20 more
> Caused by: java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot
be cast to org.apache.xml.dtm.DTMManager
>         at org.apache.xml.dtm.DTMManager.newInstance(DTMManager.java:137)
>         at org.apache.xpath.XPathContext.<init>(XPathContext.java:102)
>         at org.apache.xpath.jaxp.XPathImpl.eval(XPathImpl.java:207)
>         at org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:281)
>         at com.sun.tools.xjc.reader.internalizer.Internalizer.buildTargetNodeMap(Internalizer.java:224)
>         at com.sun.tools.xjc.reader.internalizer.Internalizer.buildTargetNodeMap(Internalizer.java:289)
>         at com.sun.tools.xjc.reader.internalizer.Internalizer.buildTargetNodeMap(Internalizer.java:289)
>         at com.sun.tools.xjc.reader.internalizer.Internalizer.transform(Internalizer.java:134)
>         at com.sun.tools.xjc.reader.internalizer.Internalizer.transform(Internalizer.java:96)
>         at com.sun.tools.xjc.reader.internalizer.DOMForest.transform(DOMForest.java:448)
>         at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:221)
>         at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)
>         at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:374)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:578)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:228)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:128)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:271)
>         ... 24 more
> yet it I then run:
>     mvn install
> it succeeds:
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message