axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sagara Gunathunga <sagara.gunathu...@gmail.com>
Subject Weird behavior with JAX -WS 2.2 /Maven test on JDK 1.5
Date Thu, 25 Aug 2011 12:02:53 GMT
Hi all ,

I'm trying to run newly created JAXWS2WSDLCodegenEngineTest test case
on JDK 1.5 [ Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_22-b03,
mixed mode)
] using  JAX-WS 2.2 and JAXB  in 2.2 modules/parent pom has following
properties.

        <jaxb.api.version>2.2.4</jaxb.api.version>
        <jaxbri.version>2.2.4</jaxbri.version>
        <jaxws.tools.version>2.2.5</jaxws.tools.version>
        <jaxws.rt.version>2.2.5</jaxws.rt.version>


When I try to run JAXWS2WSDLCodegenEngineTest using both Maven 2.2.1
and Maven 3.0.3 I don't get any errors but there is no generated codes
too and hence result in to test case failure. After debugging in maven
level I found inside the WSGen tool codes following logic result into
above failure.


int result = com.sun.tools.apt.Main.process(this, args);
        if (result != 0) {
            out.println(WscompileMessages.WSCOMPILE_ERROR(WscompileMessages.WSCOMPILE_COMPILATION_FAILED()));
            return false;
        }

(in my case result = 4 instead of 0)

BTW Interesting thing is when I import same module as a Maven project
into Eclipse and run JAXWS2WSDLCodegenEngineTest as JUnit test case
using Eclipse I can see the files are generated and test is
successful. I checked Classpath of Eclipse project and it same as
Maven dependency tree and also same JRE. In both cases I use tools.jar
available on JDK.

I did number of dependency/configuration changes but still no luck :(

Really appreciate for any help on this


Thanks !


[Dependency tree]


[INFO] org.apache.axis2:axis2-java2wsdl:jar:1.7.0-SNAPSHOT
[INFO] +- org.apache.axis2:axis2-kernel:jar:1.7.0-SNAPSHOT:compile
[INFO] |  +- org.apache.ws.commons.axiom:axiom-api:jar:1.2.13-SNAPSHOT:compile
[INFO] |  |  +-
org.apache.geronimo.specs:geronimo-activation_1.1_spec:jar:1.0.2:compile
[INFO] |  |  +- jaxen:jaxen:jar:1.1.1:compile
[INFO] |  |  +-
org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1:compile
[INFO] |  |  \- org.apache.james:apache-mime4j-core:jar:0.8-SNAPSHOT:compile
[INFO] |  +- org.apache.ws.commons.axiom:axiom-impl:jar:1.2.13-SNAPSHOT:compile
[INFO] |  |  \- org.codehaus.woodstox:wstx-asl:jar:3.2.9:compile
[INFO] |  +- org.apache.geronimo.specs:geronimo-ws-metadata_2.0_spec:jar:1.1.2:compile
[INFO] |  +- org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1:compile
[INFO] |  +- javax.servlet:servlet-api:jar:2.3:compile
[INFO] |  +- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] |  |  \- commons-codec:commons-codec:jar:1.3:compile (version
managed from 1.2)
[INFO] |  +- commons-fileupload:commons-fileupload:jar:1.2:compile
[INFO] |  +- wsdl4j:wsdl4j:jar:1.6.2:compile
[INFO] |  +- org.apache.neethi:neethi:jar:3.0.2-SNAPSHOT:compile
[INFO] |  +- org.apache.woden:woden-api:jar:1.0-SNAPSHOT:compile
[INFO] |  +- org.apache.woden:woden-impl-dom:jar:1.0-SNAPSHOT:compile
[INFO] |  |  \- org.apache.woden:woden-impl-commons:jar:1.0-SNAPSHOT:compile
[INFO] |  \- javax.ws.rs:jsr311-api:jar:1.0:compile
[INFO] +- org.apache.axis2:axis2-transport-http:jar:1.7.0-SNAPSHOT:compile
[INFO] |  \- org.apache.httpcomponents:httpcore:jar:4.0:compile
[INFO] +- org.apache.axis2:axis2-transport-local:jar:1.7.0-SNAPSHOT:compile
[INFO] +- org.apache.ant:ant:jar:1.7.0:compile
[INFO] |  \- org.apache.ant:ant-launcher:jar:1.7.0:compile
[INFO] +- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] +- org.apache.ws.commons.schema:XmlSchema:jar:1.4.8-SNAPSHOT:compile
[INFO] +- org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.6:compile
[INFO] +- xalan:xalan:jar:2.7.0:test
[INFO] +- org.apache.axis2:axis2-adb:jar:1.7.0-SNAPSHOT:test
[INFO] |  \- org.apache.ws.commons.axiom:axiom-dom:jar:1.2.13-SNAPSHOT:test
[INFO] +- com.sun.xml.ws:jaxws-tools:jar:2.2.5:compile
[INFO] +- com.sun.xml.bind:jaxb-xjc:jar:2.2.4:test
[INFO] |  \- com.sun.xml.bind:jaxb-impl:jar:2.2.4:test
[INFO] |     \- javax.xml.bind:jaxb-api:jar:2.2.4:test (version
managed from 2.2.3)
[INFO] +- com.sun.xml.ws:jaxws-rt:jar:2.2.5:test
[INFO] |  +- javax.xml.ws:jaxws-api:jar:2.2.5:test
[INFO] |  |  +- javax.xml.soap:saaj-api:jar:1.3.3:test
[INFO] |  |  +- org.glassfish:javax.annotation:jar:3.1.1-b06:test
[INFO] |  |  \- javax.jws:jsr181-api:jar:1.0-MR1:test
[INFO] |  +- com.sun.xml.messaging.saaj:saaj-impl:jar:1.3.10:test
[INFO] |  +- com.sun.xml.stream.buffer:streambuffer:jar:1.2:test
[INFO] |  |  \- javax.activation:activation:jar:1.1:test
[INFO] |  +- org.codehaus.woodstox:woodstox-core-asl:jar:4.1.1:test
[INFO] |  |  \- javax.xml.stream:stax-api:jar:1.0-2:test
[INFO] |  +- org.codehaus.woodstox:stax2-api:jar:3.1.1:test
[INFO] |  +- org.jvnet.staxex:stax-ex:jar:1.4:test
[INFO] |  +- com.sun.org.apache.xml.internal:resolver:jar:20050927:test
[INFO] |  +- org.jvnet:mimepull:jar:1.6:test
[INFO] |  +- com.sun.xml.ws:policy:jar:2.2.2:test
[INFO] |  |  \- com.sun.xml.txw2:txw2:jar:20090102:test
[INFO] |  +- org.glassfish.gmbal:gmbal-api-only:jar:3.1.0-b001:test
[INFO] |  |  \- org.glassfish.external:management-api:jar:3.0.0-b012:test
[INFO] |  \- org.glassfish.ha:ha-api:jar:3.1.8:test
[INFO] +- com.sun:tools:jar:1.5:system
[INFO] \- junit:junit:jar:4.4:test

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message