You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Sagara Gunathunga <sa...@gmail.com> on 2011/08/25 14:02:53 UTC

Weird behavior with JAX -WS 2.2 /Maven test on JDK 1.5

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


Re: Weird behavior with JAX -WS 2.2 /Maven test on JDK 1.5

Posted by Sagara Gunathunga <sa...@gmail.com>.
After further investigations I found followings.

1. Even with attached parent POM file (parent-pom.xml) I can run test
case on Eclipse as a JUnit test but fail when run through Maven.

2. If I remove parent pom entry from the pom file of java2wsdl module
and manually add same versions then I can run test case without any
issue.  ( attached java2wsdl-noparent-pom.xml file)


3. As you can see  Maven dependency report for both with-parent-entry
and without-parent- entry dependencies are identical but test results
are different.

I already stuck with this issue and it would be great to have some
helps on this.

Thanks !


Attached file as text.


======================================== parent-pom.xml
==============================

<?xml version="1.0" encoding="UTF-8"?>

<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements. See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership. The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance
  ~ with the License. You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied. See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
    <parent>
        <groupId>org.apache</groupId>
        <artifactId>apache</artifactId>
        <version>8</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.apache.axis2</groupId>
    <artifactId>axis2-parent</artifactId>
    <version>1.7.0-SNAPSHOT</version>
    <packaging>pom</packaging>
    <name>Apache Axis2 - Parent</name>
    <inceptionYear>2004</inceptionYear>
    <description>Axis2 is an effort to re-design and totally
re-implement both Axis/Java and
        (eventually) Axis/C++ on a new architecture. Evolving from the
now standard "handler chain"
        model which Axis1 pioneered, Axis2 is developing a more
flexible pipeline architecture which
        can yet be managed and packaged in a more organized manner.
This new design acknowledges the
        maturing of the Web services space in terms of new protocols
such as WS-ReliableMessaging,
        WS-Security and WS-Addressing that are built on top of the
base SOAP system. At the time
        Axis1 was designed, while it was fully expected that other
protocols such as
        WS-ReliableMessaging would be built on top of it, there was
not a proper extension
        architecture defined to enable clean composition of such
layers. Thus, one of the key
        motivations for Axis2 is to provide a clean and simple
environment for like Apache Sandesha
        and Apache WSS4J to layer on top of the base SOAP system.
Another driving force for Axis2 as
        well as the move away from RPC oriented Web services towards
more document-oriented, message
        style asynchronous service interactions. The Axis2 project is
centered on a new
        representation for SOAP messages called AXIOM (AXIs Object
Model). AXIOM consists of two
        parts: a complete XML Infoset representation and a SOAP
Infoset representation on top of
        that. The XML Infoset representation provides a JDOM-like
simple API but is built on a
        deferred model via a StAX-based (Streaming API for XML) pull
parsing API. A key feature of
        AXIOM is that it allows one to stop building the XML tree and
just access the pull stream
        directly; thus enabling both maximum flexibility and maximum
performance. This approach
        allows us to support multiple levels of abstraction for
consuming and offering Web services:
        using plain AXIOM, using generated code and statically
data-bound data types and so on. At
        the time of Axis1's design, RPC-style, synchronous,
request-response interactions were the
        order of the day for Web services. Today service interactions
are much more message
        -oriented and exploit many different message exchange
patterns. The Axis2 engine
        architecture is careful to not build in any assumptions of
request-response patterns to
        ensure that it can be used easily to support arbitrary message exchange
        patterns.
    </description>
    <url>http://axis.apache.org/axis2/java/core/</url>
    <issueManagement>
        <system>jira</system>
        <url>http://issues.apache.org/jira/browse/AXIS2</url>
    </issueManagement>
    <properties>
	<!-- Tracking SNAPSHOT(s) of a few projects -->
        <axiom.version>1.2.13-SNAPSHOT</axiom.version>
        <neethi.version>3.0.2-SNAPSHOT</neethi.version>
        <woden.version>1.0-SNAPSHOT</woden.version>
        <xmlschema.version>1.4.8-SNAPSHOT</xmlschema.version>

	<!-- Use released versions for these projects -->
        <ant.version>1.7.0</ant.version>
        <antlr.version>2.7.7</antlr.version>
        <bsf.version>2.4.0</bsf.version>
        <commons.codec.version>1.3</commons.codec.version>
        <commons.fileupload.version>1.2</commons.fileupload.version>
        <commons.httpclient.version>3.1</commons.httpclient.version>
        <commons.io.version>1.4</commons.io.version>
        <commons.logging.version>1.1.1</commons.logging.version>
        <fi.version>1.2.7</fi.version>
        <geronimo.spec.activation.version>1.0.2</geronimo.spec.activation.version>
        <geronimo.spec.annotation.version>1.1</geronimo.spec.annotation.version>
        <geronimo.spec.javamail.version>1.6</geronimo.spec.javamail.version>
        <geronimo.spec.stax.version>1.0.1</geronimo.spec.stax.version>
        <geronimo.spec.metadata.version>1.1.2</geronimo.spec.metadata.version>
        <geronimo.spec.saaj.version>1.0.1</geronimo.spec.saaj.version>
        <geronimo.spec.jaxws.version>1.0</geronimo.spec.jaxws.version>
        <httpcore.version>4.0</httpcore.version>
        <intellij.version>5.0</intellij.version>
        <jalopy.version>1.5rc3</jalopy.version>
        <jaxb.api.version>2.2.4</jaxb.api.version>
        <jaxbri.version>2.2.4</jaxbri.version>
        <jaxen.version>1.1.1</jaxen.version>
        <jettison.version>1.3</jettison.version>
        <jibx.version>1.2</jibx.version>
        <junit.version-jdk1.4>3.8.2</junit.version-jdk1.4>
        <junit.version>4.4</junit.version>
        <log4j.version>1.2.15</log4j.version>
        <maven.archiver.version>2.2</maven.archiver.version>
        <maven.artifact.version>2.0.8</maven.artifact.version>
        <maven.plugin.testing.version>1.1</maven.plugin.testing.version>
        <maven.version>2.0.7</maven.version>
        <plexus.utils.version>1.4.9</plexus.utils.version>
        <rhino.version>1.6R7</rhino.version>
        <servlet.api.version>2.3</servlet.api.version>
        <spring.version>2.5.1</spring.version>
        <stax.api.version>1.0.1</stax.api.version>
        <stax.impl.artifact>wstx-asl</stax.impl.artifact>
        <stax.impl.groupid>org.codehaus.woodstox</stax.impl.groupid>
        <stax.impl.version>3.2.9</stax.impl.version>
        <tomcat.version>6.0.16</tomcat.version>
        <wsdl4j.version>1.6.2</wsdl4j.version>
        <xalan.version>2.7.0</xalan.version>
        <xmlbeans.version>2.3.0</xmlbeans.version>
        <xml_resolver.version>1.2</xml_resolver.version>
        <xmlunit.version>1.3</xmlunit.version>
        <commons.lang.version>2.3</commons.lang.version>
        <javax.mail.version>1.4</javax.mail.version>
        <commons.cli.version>1.2</commons.cli.version>
        <!-- The build failing if tests are skipped is very annoying -->
        <failIfNoTests>false</failIfNoTests>
        <m2Repository>'${settings.localRepository}'</m2Repository>
        <geronimo-spec.jta.version>1.1</geronimo-spec.jta.version>
        <jaxws.tools.version>2.2.5</jaxws.tools.version>
        <jaxws.rt.version>2.2.5</jaxws.rt.version>
    </properties>
    <mailingLists>
        <mailingList>
            <name>Axis2 Developer List</name>
            <subscribe>java-dev-subscribe@axis.apache.org</subscribe>
            <unsubscribe>java-dev-unsubscribe@axis.apache.org</unsubscribe>
            <post>java-dev@axis.apache.org</post>
            <archive>http://mail-archives.apache.org/mod_mbox/axis-java-dev/</archive>
            <otherArchives>

<otherArchive>http://markmail.org/search/list:org.apache.ws.axis-dev</otherArchive>
            </otherArchives>
        </mailingList>
        <mailingList>
            <name>Axis2 User List</name>
            <subscribe>java-user-subscribe@axis.apache.org</subscribe>
            <unsubscribe>java-user-unsubscribe@axis.apache.org</unsubscribe>
            <post>java-user@axis.apache.org</post>
            <archive>http://mail-archives.apache.org/mod_mbox/axis-java-user/</archive>
            <otherArchives>

<otherArchive>http://markmail.org/search/list:org.apache.ws.axis-user</otherArchive>
            </otherArchives>
        </mailingList>
    </mailingLists>
    <developers>
        <developer>
            <name>Saminda Abeyruwan</name>
            <id>saminda</id>
            <email>saminda AT wso2.com</email>
            <organization>WSO2</organization>
        </developer>
        <developer>
            <name>Afkham Azeez</name>
            <id>azeez</id>
            <email>azeez AT wso2.com</email>
            <organization>WSO2</organization>
            <url>http://www.apache.org/~azeez</url>
        </developer>
        <developer>
            <name>Jeff Barrett</name>
            <organization>IBM</organization>
        </developer>
        <developer>
            <name>Eran Chinthaka</name>
            <id>chinthaka</id>
            <email>chinthaka AT wso2.com</email>
            <organization>WSO2</organization>
            <url>http://www.apache.org/~chinthaka</url>
        </developer>
        <developer>
            <name>Glen Daniels</name>
            <id>gdaniels</id>
            <email>gdaniels AT apache.org</email>
            <organization>Sonic Software</organization>
        </developer>
        <developer>
            <name>Brian DePradine</name>
            <id>pradine</id>
            <email>pradine AT uk.ibm.com</email>
            <organization>IBM</organization>
        </developer>
        <developer>
            <name>Jaliya Ekanayake</name>
            <id>jaliya</id>
            <email>jaliya AT opensource.lk</email>
            <organization>Indiana University, USA</organization>
            <url>http://www.apache.org/~jaliya</url>
        </developer>
        <developer>
            <name>Ruchith Fernando</name>
            <id>ruchithf</id>
            <email>ruchith AT wso2.com</email>
            <organization>WSO2</organization>
        </developer>
        <developer>
            <name>Nicholas Gallardo</name>
            <organization>IBM</organization>
        </developer>
        <developer>
            <name>Thilina Gunarathne</name>
            <id>thilina</id>
            <email>thilina AT opensource.lk</email>
            <organization>Lanka Software Foundation</organization>
        </developer>
        <developer>
            <name>Chathura Herath</name>
            <id>chathura</id>
            <email>chathura AT opensource.lk</email>
            <organization>Indiana University, USA</organization>
            <url>http://www.apache.org/~chathura</url>
        </developer>
        <developer>
            <name>David Illsley</name>
            <id>davidillsley</id>
            <organization>IBM</organization>
            <url>http://www.illsley.org</url>
        </developer>
        <developer>
            <name>Deepal Jayasinghe</name>
            <id>deepal</id>
            <email>deepal AT gatech.org</email>
            <organization>Georgia Institute of Technology, USA</organization>
            <url>http://www.apache.org/~deepal</url>
        </developer>
        <developer>
            <name>Robert Lazarski</name>
            <id>robertlazarski</id>
            <email>robertlazarski AT gmail.com</email>
            <organization>Brazil Outsource</organization>
        </developer>
        <developer>
            <name>Senaka Fernando</name>
            <id>senaka</id>
            <email>senaka AT wso2.com</email>
            <organization>WSO2</organization>
        </developer>
        <developer>
            <name>Steve Loughran</name>
            <id>stevel</id>
            <email>stevel AT apache.org</email>
            <organization>HP labs</organization>
        </developer>
        <developer>
            <name>Bill Nagy</name>
            <organization>IBM</organization>
        </developer>
        <developer>
            <name>Chatra Nakkawita</name>
            <id>chatra</id>
            <email>chatra AT WSO2.com</email>
            <organization>WSO2</organization>
        </developer>
        <developer>
            <name>Sumedha Rubasinghe</name>
            <id>sumedha</id>
            <email>sumedha AT WSO2.com</email>
            <organization>WSO2</organization>
        </developer>
        <developer>
            <name>Charitha Kamkanamge</name>
            <id>charitha</id>
            <email>charitha AT WSO2.com</email>
            <organization>WSO2</organization>
        </developer>
        <developer>
            <name>Srinath Perera</name>
            <id>hemapani</id>
            <email>hemapani AT apache.org</email>
            <organization>Indiana University, USA</organization>
            <url>http://www.apache.org/~hemapani</url>
        </developer>
        <developer>
            <name>Ajith Ranabahu</name>
            <id>ajith</id>
            <email>ajith AT wso2.com</email>
            <organization>WSO2</organization>
            <url>http://www.apache.org/~ajith</url>
        </developer>
        <developer>
            <name>Venkat Reddy</name>
            <id>venkat</id>
            <email>vreddyp AT gmail.com</email>
            <organization>Computer Associates</organization>
        </developer>
        <developer>
            <name>Michael Rheinheimer</name>
            <organization>IBM</organization>
        </developer>
        <developer>
            <name>Ann Robinson</name>
            <organization>IBM</organization>
        </developer>
        <developer>
            <name>Sanka Samaranayake</name>
            <id>sanka</id>
            <email>sanka AT wso2.com</email>
            <organization>WSO2</organization>
        </developer>
        <developer>
            <name>Rich Scheuerle</name>
            <id>scheu</id>
            <email>scheu AT us.ibm.com</email>
            <organization>IBM</organization>
        </developer>
        <developer>
            <name>Ashutosh Shahi</name>
            <id>ashu</id>
            <email>Ashutosh.Shahi AT ca.com</email>
            <organization>Computer Associates</organization>
        </developer>
        <developer>
            <name>Aleksander Slominski</name>
            <id>alek</id>
            <email>aslom AT cs.indiana.edu</email>
            <organization>Indiana University Extreme! Computing
Lab</organization>
        </developer>
        <developer>
            <name>Dennis Sosnoski</name>
            <id>dsosnoski</id>
            <email>dms AT sosnoski.com</email>
            <organization>Sosnoski Software</organization>
        </developer>
        <developer>
            <name>Davanum Srinivas</name>
            <id>dims</id>
            <email>davanum AT gmail.com</email>
        </developer>
        <developer>
            <name>Jayachandra Sekhara Rao Sunkara</name>
            <id>jaya</id>
            <email>jayachandra AT gmail.com</email>
            <organization>Computer Associates</organization>
        </developer>
        <developer>
            <name>Nandana Mihindukulasooriya</name>
            <id>nandana</id>
            <email>nandana AT wso2.com</email>
            <organization>WSO2</organization>
        </developer>
        <developer>
            <name>Nikhil Thaker</name>
            <organization>IBM</organization>
        </developer>
        <developer>
            <name>Chamil Thanthrimudalige</name>
            <id>chamil</id>
            <email>chamil AT wso2.com</email>
            <organization>WSO2</organization>
        </developer>
        <developer>
            <name>Dasarath Weerathunga</name>
            <id>dasarath</id>
            <email>dasarath AT opensource.lk</email>
            <organization>Purdue University, USA</organization>
        </developer>
        <developer>
            <name>Eranga Jayasundera</name>
            <id>eranga</id>
            <email>eranga AT apache.org</email>
        </developer>
        <developer>
            <name>Sanjiva Weerawarana</name>
            <id>sanjiva</id>
            <email>sanjiva AT wso2.com</email>
            <organization>WSO2</organization>
        </developer>
        <developer>
            <name>Keith Chapman</name>
            <id>keithc</id>
            <email>keith AT wso2.com</email>
            <organization>WSO2</organization>
        </developer>
        <developer>
            <name>Andreas Veithen</name>
            <id>veithen</id>
            <email>veithen AT apache.org</email>
            <url>http://www.linkedin.com/in/aveithen</url>
        </developer>
        <developer>
            <name>Ruwan Linton</name>
            <id>ruwan</id>
            <email>ruwan AT apache.org</email>
            <url>http://www.linkedin.com/in/ruwanlinton</url>
        </developer>
    </developers>
    <contributors>
        <contributor>
            <name>Gayan Asanka</name>
            <email>gayan AT opensource.lk</email>
            <organization>Lanka Software Foundation</organization>
        </contributor>
        <contributor>
            <name>Dharshana Dias</name>
            <organization>Lanka Software Foundation / University of
Moratuwa</organization>
        </contributor>
        <contributor>
            <name>Nadana Gunarathna</name>
            <email>nadana AT opensource.lk</email>
            <organization>Lanka Software Foundation</organization>
        </contributor>
        <contributor>
            <name>Thilini Gunawardhana</name>
            <email>thilini AT WSO2.com</email>
            <organization>WSO2</organization>
        </contributor>
        <contributor>
            <name>Anushka Kumara</name>
            <email>anushkakumar AT gmail.com</email>
            <organization>Lanka Software Foundation / University of
Moratuwa</organization>
        </contributor>
        <contributor>
            <name>Farhaan Mohideen</name>
            <email>fmohideen AT valista.com</email>
            <organization>Lanka Software Foundation</organization>
        </contributor>
        <contributor>
            <name>Chinthaka Thilakarathne</name>
            <organization>Lanka Software Foundation / University of
Moratuwa</organization>
        </contributor>
        <contributor>
            <name>Shivantha Huruggamuwa</name>
            <email>shivanthah AT gmail.com</email>
            <organization>University Of Peradeniya , Sri Lanka</organization>
        </contributor>
        <contributor>
            <name>Dobri Kitipov</name>
            <email>kdobrik AT gmail.com</email>
            <organization>Software AG</organization>
        </contributor>
    </contributors>
    <repositories>
        <!-- Before adding ANYTHING in here, please start a discussion
on the dev list.
             Ideally the Axis2 build should only use Maven central
(which is available
             by default) and nothing else. We had troubles with other
repositories in
             the past. Therefore configuring additional repositories
here should be
             considered very carefully. -->
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>apache-snapshots</id>
            <name>Apache Snapshots Repository</name>
            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
            <layout>default</layout>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </pluginRepository>
        <pluginRepository>
            <id>apache.snapshots</id>
            <name>Apache Snapshot Repository</name>
            <url>http://repository.apache.org/snapshots</url>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </pluginRepository>
    </pluginRepositories>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.sun.xml.fastinfoset</groupId>
                <artifactId>FastInfoset</artifactId>
                <version>${fi.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.tomcat</groupId>
                <artifactId>tribes</artifactId>
                <version>${tomcat.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.tomcat</groupId>
                <artifactId>juli</artifactId>
                <version>${tomcat.version}</version>
            </dependency>
            <dependency>
                <groupId>xml-resolver</groupId>
                <artifactId>xml-resolver</artifactId>
                <version>${xml_resolver.version}</version>
            </dependency>
            <dependency>
                <groupId>xalan</groupId>
                <artifactId>xalan</artifactId>
                <version>${xalan.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>xml-apis</groupId>
                        <artifactId>xml-apis</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.sun.xml.bind</groupId>
                <artifactId>jaxb-impl</artifactId>
                <version>${jaxbri.version}</version>
            </dependency>
            <dependency>
                <groupId>com.sun.xml.bind</groupId>
                <artifactId>jaxb-xjc</artifactId>
                <version>${jaxbri.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.xml.bind</groupId>
                <artifactId>jaxb-api</artifactId>
                <version>${jaxb.api.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>javax.xml.stream</groupId>
                        <artifactId>stax-api</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>javax.activation</groupId>
                        <artifactId>activation</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.sun.xml.ws</groupId>
                <artifactId>jaxws-tools</artifactId>
                <version>${jaxws.tools.version}</version>
            </dependency>
            <dependency>
                <groupId>com.sun.xml.ws</groupId>
                <artifactId>jaxws-rt</artifactId>
                <version>${jaxws.rt.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-beans</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-context</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-web</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
                <version>${servlet.api.version}</version>
            </dependency>
            <dependency>
                <groupId>org.codehaus.jettison</groupId>
                <artifactId>jettison</artifactId>
                <version>${jettison.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>stax</groupId>
                        <artifactId>stax-api</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.jibx</groupId>
                <artifactId>jibx-bind</artifactId>
                <version>${jibx.version}</version>
            </dependency>
            <dependency>
                <groupId>org.jibx</groupId>
                <artifactId>jibx-run</artifactId>
                <version>${jibx.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.codehaus.woodstox</groupId>
                        <artifactId>wstx-asl</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.apache.ant</groupId>
                <artifactId>ant-launcher</artifactId>
                <version>${ant.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.ws.commons.axiom</groupId>
                <artifactId>axiom-api</artifactId>
                <version>${axiom.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>xml-apis</groupId>
                        <artifactId>xml-apis</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>xerces</groupId>
                        <artifactId>xercesImpl</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.apache.ws.commons.axiom</groupId>
                <artifactId>axiom-impl</artifactId>
                <version>${axiom.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.ws.commons.axiom</groupId>
                <artifactId>axiom-dom</artifactId>
                <version>${axiom.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.ws.commons.schema</groupId>
                <artifactId>XmlSchema</artifactId>
                <version>${xmlschema.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.neethi</groupId>
                <artifactId>neethi</artifactId>
                <version>${neethi.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.codehaus.woodstox</groupId>
                        <artifactId>woodstox-core-asl</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.apache.ant</groupId>
                <artifactId>ant</artifactId>
                <version>${ant.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging</artifactId>
                <version>${commons.logging.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-codec</groupId>
                <artifactId>commons-codec</artifactId>
                <version>${commons.codec.version}</version>
            </dependency>
            <dependency>
                <groupId>${stax.impl.groupid}</groupId>
                <artifactId>${stax.impl.artifact}</artifactId>
                <version>${stax.impl.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>stax</groupId>
                        <artifactId>stax-api</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>

            <dependency>
                <groupId>org.apache.geronimo.specs</groupId>
                <artifactId>geronimo-stax-api_1.0_spec</artifactId>
                <version>${geronimo.spec.stax.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.geronimo.specs</groupId>
                <artifactId>geronimo-activation_1.1_spec</artifactId>
                <version>${geronimo.spec.activation.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.geronimo.specs</groupId>
                <artifactId>geronimo-javamail_1.4_spec</artifactId>
                <version>${geronimo.spec.javamail.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.geronimo.specs</groupId>
                <artifactId>geronimo-annotation_1.0_spec</artifactId>
                <version>${geronimo.spec.annotation.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.geronimo.specs</groupId>
                <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
                <version>${geronimo.spec.metadata.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.geronimo.specs</groupId>
                <artifactId>geronimo-saaj_1.3_spec</artifactId>
                <version>${geronimo.spec.saaj.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.geronimo.specs</groupId>
                <artifactId>geronimo-jaxws_2.2_spec</artifactId>
                <version>${geronimo.spec.jaxws.version}</version>
            </dependency>

            <dependency>
                <groupId>jaxen</groupId>
                <artifactId>jaxen</artifactId>
                <version>${jaxen.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-httpclient</groupId>
                <artifactId>commons-httpclient</artifactId>
                <version>${commons.httpclient.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${commons.io.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.httpcomponents</groupId>
                <artifactId>httpcore</artifactId>
                <version>${httpcore.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-fileupload</groupId>
                <artifactId>commons-fileupload</artifactId>
                <version>${commons.fileupload.version}</version>
            </dependency>
            <dependency>
                <groupId>wsdl4j</groupId>
                <artifactId>wsdl4j</artifactId>
                <version>${wsdl4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.woden</groupId>
                <artifactId>woden-api</artifactId>
                <version>${woden.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.woden</groupId>
                <artifactId>woden-impl-dom</artifactId>
                <version>${woden.version}</version>
            </dependency>
            <dependency>
                <groupId>xmlunit</groupId>
                <artifactId>xmlunit</artifactId>
                <version>${xmlunit.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlbeans</groupId>
                <artifactId>xmlbeans</artifactId>
                <version>${xmlbeans.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>stax</groupId>
                        <artifactId>stax-api</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.apache.maven</groupId>
                <artifactId>maven-plugin-api</artifactId>
                <version>${maven.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.maven</groupId>
                <artifactId>maven-project</artifactId>
                <version>${maven.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.maven</groupId>
                <artifactId>maven-artifact</artifactId>
                <version>${maven.artifact.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.maven</groupId>
                <artifactId>maven-archiver</artifactId>
                <version>${maven.archiver.version}</version>
            </dependency>
            <dependency>
                <groupId>org.codehaus.plexus</groupId>
                <artifactId>plexus-utils</artifactId>
                <version>${plexus.utils.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.maven.shared</groupId>
                <artifactId>maven-plugin-testing-harness</artifactId>
                <scope>test</scope>
                <version>${maven.plugin.testing.version}</version>
            </dependency>
            <dependency>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
                <version>${log4j.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>javax.mail</groupId>
                        <artifactId>mail</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>javax.jms</groupId>
                        <artifactId>jms</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>com.sun.jdmk</groupId>
                        <artifactId>jmxtools</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>com.sun.jmx</groupId>
                        <artifactId>jmxri</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>oro</groupId>
                        <artifactId>oro</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.eclipse.core</groupId>
                <artifactId>jobs</artifactId>
                <version>3.2.0-v20060603</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.core</groupId>
                <artifactId>resources</artifactId>
                <version>3.2.1-R32x_v20060914</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.core</groupId>
                <artifactId>runtime</artifactId>
                <version>3.2.0-v20060603</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.equinox</groupId>
                <artifactId>common</artifactId>
                <version>3.2.0-v20060603</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse</groupId>
                <artifactId>jface</artifactId>
                <version>3.2.1-M20060908-1000</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse</groupId>
                <artifactId>osgi</artifactId>
                <version>3.2.1-R32x_v20060919</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse</groupId>
                <artifactId>swt</artifactId>
                <version>3.2.1-v3235e</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.swt.win32.win32</groupId>
                <artifactId>x86</artifactId>
                <version>3.2.1-v3235</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.ui</groupId>
                <artifactId>ide</artifactId>
                <version>3.2.1-M20060915-1030</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.core</groupId>
                <artifactId>expressions</artifactId>
                <version>3.2.1-r321_v20060721</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse</groupId>
                <artifactId>ui</artifactId>
                <version>3.2.1-M20060913-0800</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.ui</groupId>
                <artifactId>workbench</artifactId>
                <version>3.2.1-M20060906-0800</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.update</groupId>
                <artifactId>core</artifactId>
                <version>3.2.1-v20092006</version>
            </dependency>
            <dependency>
                <groupId>com.intellij</groupId>
                <artifactId>openapi</artifactId>
                <version>${intellij.version}</version>
            </dependency>
            <dependency>
                <groupId>com.intellij</groupId>
                <artifactId>extensions</artifactId>
                <version>${intellij.version}</version>
            </dependency>
            <dependency>
                <groupId>rhino</groupId>
                <artifactId>js</artifactId>
                <version>${rhino.version}</version>
            </dependency>
            <dependency>
                <groupId>bsf</groupId>
                <artifactId>bsf</artifactId>
                <version>${bsf.version}</version>
            </dependency>
            <dependency>
                <groupId>jalopy</groupId>
                <artifactId>jalopy</artifactId>
                <version>${jalopy.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-lang</groupId>
                <artifactId>commons-lang</artifactId>
                <version>${commons.lang.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.geronimo.specs</groupId>
                <artifactId>geronimo-jta_1.1_spec</artifactId>
                <version>${geronimo-spec.jta.version}</version>
            </dependency>

            <dependency>
                <groupId>commons-cli</groupId>
                <artifactId>commons-cli</artifactId>
                <version>${commons.cli.version}</version>
            </dependency>

            <!-- Jetty is used by some of the unit tests -->
            <dependency>
                <groupId>jetty</groupId>
                <artifactId>jetty</artifactId>
                <version>5.1.10</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <profiles>
        <profile>
            <id>java15</id>
            <activation>
                <jdk>1.5</jdk>
            </activation>
            <dependencies>
                <!-- Junit testing environment-->
                <dependency>
                    <groupId>junit</groupId>
                    <artifactId>junit</artifactId>
                    <version>${junit.version}</version>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>java16</id>
            <activation>
                <jdk>1.6</jdk>
            </activation>
            <dependencies>
                <!-- Junit testing environment-->
                <dependency>
                    <groupId>junit</groupId>
                    <artifactId>junit</artifactId>
                    <version>${junit.version}</version>
                </dependency>
            </dependencies>
        </profile>
    </profiles>
    <scm>
        <connection>scm:svn:http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/parent</connection>
        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/parent</developerConnection>
        <url>http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/parent</url>
    </scm>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <version>1.2</version>
                </plugin>
                <plugin>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <!-- Minimum required version here is 2.2-beta-4
because org.apache:apache:7 uses
                         the runOnlyAtExecutionRoot parameter which is
not supported in earlier
                         versions. -->
                    <version>2.2-beta-5</version>
                    <configuration>
                        <!-- Workaround for MASSEMBLY-422 / MASSEMBLY-449 -->
                        <archiverConfig>
                            <fileMode>420</fileMode> <!-- 420(dec) =
644(oct) -->
                            <directoryMode>493</directoryMode> <!--
493(dec) = 755(oct) -->
                            <defaultDirectoryMode>493</defaultDirectoryMode>
                        </archiverConfig>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>2.2</version>
                </plugin>
                <plugin>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.3.1</version>
                </plugin>
                <plugin>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>2.0</version>
                </plugin>
                <plugin>
                    <artifactId>maven-ear-plugin</artifactId>
                    <version>2.3.1</version>
                </plugin>
                <plugin>
                    <artifactId>maven-ejb-plugin</artifactId>
                    <version>2.1</version>
                </plugin>
                <plugin>
                    <artifactId>maven-install-plugin</artifactId>
                    <version>2.2</version>
                </plugin>
                <plugin>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>2.2</version>
                </plugin>
                <plugin>
                    <artifactId>maven-plugin-plugin</artifactId>
                    <version>2.6</version>
                </plugin>
                <plugin>
                    <artifactId>maven-rar-plugin</artifactId>
                    <version>2.2</version>
                </plugin>
                <plugin>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>2.4.2</version>
                </plugin>
                <plugin>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>2.0-beta-6</version>
                </plugin>
                <plugin>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>2.0.4</version>
                </plugin>
                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.4.2</version>
                </plugin>
                <plugin>
                    <artifactId>maven-war-plugin</artifactId>
                    <version>2.1-beta-1</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>build-helper-maven-plugin</artifactId>
                    <version>1.4</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.gmaven</groupId>
                    <artifactId>gmaven-plugin</artifactId>
                    <version>1.2</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.felix</groupId>
                    <artifactId>maven-bundle-plugin</artifactId>
                    <version>2.1.0</version>
                </plugin>

                <!-- Use 1.5.2 versions of the aar and mar plugins in
order to avoid
                     the chicken and egg problem. -->
                <plugin>
                    <groupId>org.apache.axis2</groupId>
                    <artifactId>axis2-aar-maven-plugin</artifactId>
                    <version>1.5.2</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.axis2</groupId>
                    <artifactId>axis2-mar-maven-plugin</artifactId>
                    <version>1.5.2</version>
                </plugin>

                <!-- No chicken and egg problem here because the
plugin doesn't expose
                     any extension. We can always use the version from
the current build. -->
                <plugin>
                    <groupId>org.apache.axis2</groupId>
                    <artifactId>axis2-repo-maven-plugin</artifactId>
                    <version>${project.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <inherited>true</inherited>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-clean-plugin</artifactId>
                <configuration>
                    <failOnError>false</failOnError>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <redirectTestOutputToFile>true</redirectTestOutputToFile>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <reporting>
        <plugins>
            <plugin>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>2.1.1</version>
                <!-- We don't need to generate the site in sub-modules;
                     use an empty reportSet -->
                <reportSets>
                    <reportSet>
                        <reports />
                    </reportSet>
                </reportSets>
            </plugin>
        </plugins>
    </reporting>
</project>

====================================================================================


========================================  java2wsdl-noparent-pom.xml
===================
<?xml version="1.0" encoding="UTF-8"?>

<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements. See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership. The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance
  ~ with the License. You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied. See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
<!--     <parent> -->
<!--         <groupId>org.apache.axis2</groupId> -->
<!--         <artifactId>axis2-parent</artifactId> -->
<!--         <version>1.7.0-SNAPSHOT</version> -->
<!--         <relativePath>../parent/pom.xml</relativePath> -->
<!--     </parent> -->
    <groupId>org.apache.axis2</groupId>
    <artifactId>axis2-java2wsdl</artifactId>
    <version>1.7.0-SNAPSHOT</version>
    <name>Apache Axis2 - Java2WSDL</name>
    <description>To generate WSDL file for a given Java class</description>
    <dependencies>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-kernel</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-transport-http</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-transport-local</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.ant</groupId>
            <artifactId>ant</artifactId>
            <version>1.7.0</version>
        </dependency>
        <!-- external JARs -->
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
            <version>1.1.1</version>
        </dependency>

        <!--added this to support to keep WSDL information in AxisService-->
        <dependency>
            <groupId>org.apache.ws.commons.schema</groupId>
            <artifactId>XmlSchema</artifactId>
            <version>1.4.8-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-javamail_1.4_spec</artifactId>
            <version>1.6</version>
        </dependency>
        <dependency>
            <groupId>xalan</groupId>
            <artifactId>xalan</artifactId>
            <version>2.7.0</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-adb</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
         <dependency>
            <groupId>com.sun.xml.ws</groupId>
            <artifactId>jaxws-tools</artifactId>
            <version>2.2.5</version>
            <exclusions>
                <exclusion>
                    <groupId>com.sun.xml.ws</groupId>
                    <artifactId>jaxws-rt</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.sun.xml.bind</groupId>
                    <artifactId>jaxb-xjc</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
        	<groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-xjc</artifactId>
            <version>2.2.4</version>
            <scope>test</scope>
        </dependency>
        <dependency>
             <groupId>com.sun.xml.ws</groupId>
             <artifactId>jaxws-rt</artifactId>
             <version>2.2.5</version>
             <scope>test</scope>
        </dependency>
    </dependencies>
    <url>http://axis.apache.org/axis2/java/core/</url>
    <scm>
        <connection>scm:svn:http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/java2wsdl</connection>
        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/java2wsdl</developerConnection>
        <url>http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/java2wsdl</url>
    </scm>
    <build>

        <sourceDirectory>src</sourceDirectory>
        <testSourceDirectory>test</testSourceDirectory>
        <resources>
            <resource>
                <directory>conf</directory>
                <excludes>
                    <exclude>**/*.properties</exclude>
                </excludes>
                <filtering>false</filtering>
            </resource>
            <resource>
                <directory>src</directory>
                <excludes>
                    <exclude>**/*.java</exclude>
                </excludes>
            </resource>
        </resources>
        <plugins>
	<plugin>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-compiler-plugin</artifactId>
		<version>2.3.2</version>
		<configuration>
			<source>1.5</source>
			<target>1.5</target>
		</configuration>
	</plugin>
	<plugin>
                <artifactId>maven-remote-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>process</goal>
                        </goals>
                        <configuration>
                            <resourceBundles>

<resourceBundle>org.apache.axis2:axis2-resource-bundle:${project.version}</resourceBundle>
                            </resourceBundles>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <inherited>true</inherited>
                <configuration>
                    <excludes>
                        <exclude>**/*Abstract*.java</exclude>
                    </excludes>
                    <includes>
                        <include>**/*Test.java</include>
                    </includes>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <phase>test</phase>
                        <configuration>
                            <tasks unless="maven.test.skip">
                                <echo message="Generating p2n.wsdl" />

                                <java
classname="org.apache.ws.java2wsdl.Java2WSDL"
classpathref="maven.test.classpath" fork="true" failonerror="true">
                                    <arg value="-o" />
                                    <arg
value="${project.build.directory}/java2wsdl" />
                                    <arg value="-of" />
                                    <arg value="p2n.wsdl" />
                                    <arg value="-cn" />
                                    <arg
value="org.apache.axis2.description.CalculatorService" />
                                    <arg value="-p2n" />
                                    <arg
value="[org.apache.axis2.description,http://www.example.org/calculator]"
/>
                                    <arg value="-stn" />
                                    <arg
value="http://www.example.org/calculator-service" />
                                </java>
                            </tasks>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.gmaven</groupId>
                <artifactId>gmaven-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>test</phase>
                        <goals>
                            <goal>execute</goal>
                        </goals>
                        <configuration>
                            <source>
                                import groovy.xml.*

                                if (project.properties['maven.test.skip']) {
                                    println 'Tests are skipped'
                                    return
                                }

                                def parser = new XmlParser()
                                def wsdl = new
Namespace('http://schemas.xmlsoap.org/wsdl/')
                                def xs = new
Namespace('http://www.w3.org/2001/XMLSchema')

                                println 'Checking p2n.wsdl'

                                def wsdlDoc = parser.parse(new
File(project.build.directory, "java2wsdl/p2n.wsdl"))
                                def namespaces =
wsdlDoc[wsdl.types][xs.schema].'@targetNamespace'
                                assert
namespaces.contains('http://www.example.org/calculator')
                                assert
namespaces.contains('http://www.example.org/calculator-service')
                            </source>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <profiles>
    	<profile>
        <id>default-tools.jar</id>
        <activation>
          <property>
            <name>java.vendor</name>
            <value>Sun Microsystems Inc.</value>
          </property>
        </activation>
        <dependencies>
          <dependency>
            <groupId>com.sun</groupId>
            <artifactId>tools</artifactId>
            <version>1.5</version>
            <scope>system</scope>
            <systemPath>${java.home}/../lib/tools.jar</systemPath>
          </dependency>
        </dependencies>
      </profile>
    </profiles>
</project>


====================================================================================


========================================
pjava2-wsdl-with-parent-pom.xml=================

<?xml version="1.0" encoding="UTF-8"?>

<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements. See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership. The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance
  ~ with the License. You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied. See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.apache.axis2</groupId>
        <artifactId>axis2-parent</artifactId>
        <version>1.7.0-SNAPSHOT</version>
        <relativePath>../parent/pom.xml</relativePath>
    </parent>
    <artifactId>axis2-java2wsdl</artifactId>
    <name>Apache Axis2 - Java2WSDL</name>
    <description>To generate WSDL file for a given Java class</description>
    <dependencies>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-kernel</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-transport-http</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-transport-local</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.ant</groupId>
            <artifactId>ant</artifactId>
        </dependency>
        <!-- external JARs -->
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
        </dependency>

        <!--added this to support to keep WSDL information in AxisService-->
        <dependency>
            <groupId>org.apache.ws.commons.schema</groupId>
            <artifactId>XmlSchema</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-javamail_1.4_spec</artifactId>
        </dependency>
        <dependency>
            <groupId>xalan</groupId>
            <artifactId>xalan</artifactId>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-adb</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
         <dependency>
            <groupId>com.sun.xml.ws</groupId>
            <artifactId>jaxws-tools</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>com.sun.xml.ws</groupId>
                    <artifactId>jaxws-rt</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.sun.xml.bind</groupId>
                    <artifactId>jaxb-xjc</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
        	<groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-xjc</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
             <groupId>com.sun.xml.ws</groupId>
             <artifactId>jaxws-rt</artifactId>
             <scope>test</scope>
        </dependency>
        <dependency>
			  <groupId>junit</groupId>
			  <artifactId>junit</artifactId>
			  <scope>test</scope>
	    </dependency>
    </dependencies>
    <url>http://axis.apache.org/axis2/java/core/</url>
    <scm>
        <connection>scm:svn:http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/java2wsdl</connection>
        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/java2wsdl</developerConnection>
        <url>http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/java2wsdl</url>
    </scm>
    <build>
        <sourceDirectory>src</sourceDirectory>
        <testSourceDirectory>test</testSourceDirectory>
        <resources>
            <resource>
                <directory>conf</directory>
                <excludes>
                    <exclude>**/*.properties</exclude>
                </excludes>
                <filtering>false</filtering>
            </resource>
            <resource>
                <directory>src</directory>
                <excludes>
                    <exclude>**/*.java</exclude>
                </excludes>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <artifactId>maven-remote-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>process</goal>
                        </goals>
                        <configuration>
                            <resourceBundles>

<resourceBundle>org.apache.axis2:axis2-resource-bundle:${project.version}</resourceBundle>
                            </resourceBundles>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <inherited>true</inherited>
                <configuration>
                    <excludes>
                        <exclude>**/*Abstract*.java</exclude>
                    </excludes>
                    <includes>
                        <include>**/*Test.java</include>
                    </includes>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <phase>test</phase>
                        <configuration>
                            <tasks unless="maven.test.skip">
                                <echo message="Generating p2n.wsdl" />

                                <java
classname="org.apache.ws.java2wsdl.Java2WSDL"
classpathref="maven.test.classpath" fork="true" failonerror="true">
                                    <arg value="-o" />
                                    <arg
value="${project.build.directory}/java2wsdl" />
                                    <arg value="-of" />
                                    <arg value="p2n.wsdl" />
                                    <arg value="-cn" />
                                    <arg
value="org.apache.axis2.description.CalculatorService" />
                                    <arg value="-p2n" />
                                    <arg
value="[org.apache.axis2.description,http://www.example.org/calculator]"
/>
                                    <arg value="-stn" />
                                    <arg
value="http://www.example.org/calculator-service" />
                                </java>
                            </tasks>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.gmaven</groupId>
                <artifactId>gmaven-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>test</phase>
                        <goals>
                            <goal>execute</goal>
                        </goals>
                        <configuration>
                            <source>
                                import groovy.xml.*

                                if (project.properties['maven.test.skip']) {
                                    println 'Tests are skipped'
                                    return
                                }

                                def parser = new XmlParser()
                                def wsdl = new
Namespace('http://schemas.xmlsoap.org/wsdl/')
                                def xs = new
Namespace('http://www.w3.org/2001/XMLSchema')

                                println 'Checking p2n.wsdl'

                                def wsdlDoc = parser.parse(new
File(project.build.directory, "java2wsdl/p2n.wsdl"))
                                def namespaces =
wsdlDoc[wsdl.types][xs.schema].'@targetNamespace'
                                assert
namespaces.contains('http://www.example.org/calculator')
                                assert
namespaces.contains('http://www.example.org/calculator-service')
                            </source>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>xalan</groupId>
				<artifactId>xalan</artifactId>
				<version>2.7.0</version>
			</dependency>
			<dependency>
				<groupId>com.sun.xml.ws</groupId>
				<artifactId>jaxws-tools</artifactId>
				<version>2.2.5</version>
			</dependency>
			<dependency>
				<groupId>com.sun.xml.bind</groupId>
				<artifactId>jaxb-xjc</artifactId>
				<version>2.2.4</version>
			</dependency>
			<dependency>
				<groupId>com.sun.xml.ws</groupId>
				<artifactId>jaxws-rt</artifactId>
				<version>2.2.5</version>
			</dependency>
			<dependency>
			  <groupId>javax.xml.bind</groupId>
			  <artifactId>jaxb-api</artifactId>
			  <version>2.2.3</version>
			</dependency>
			<dependency>
			  <groupId>junit</groupId>
			  <artifactId>junit</artifactId>
			  <version>3.8</version>
			</dependency>
		</dependencies>
	</dependencyManagement>
    <profiles>
    	<profile>
        <id>default-tools.jar</id>
        <activation>
          <property>
            <name>java.vendor</name>
            <value>Sun Microsystems Inc.</value>
          </property>
        </activation>
        <dependencies>
          <dependency>
            <groupId>com.sun</groupId>
            <artifactId>tools</artifactId>
            <version>1.5</version>
            <scope>system</scope>
            <systemPath>${java.home}/../lib/tools.jar</systemPath>
          </dependency>
        </dependencies>
      </profile>
    </profiles>
</project>



====================================================================================


============================== JAVA2WSDL with parent (test fail)
=============================================

[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.2:compile
[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] |  \- xml-apis:xml-apis:jar:1.0.b2: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.3:test
[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] |  |  \- com.sun.istack:istack-commons-runtime:jar:2.2.1: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] +- junit:junit:jar:3.8:test
[INFO] \- com.sun:tools:jar:1.5:system

=======================================================================================================

===================== JAVA2WSDL with out parent (test
pass)=============================================

[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.2:compile
[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] |  \- xml-apis:xml-apis:jar:1.0.b2: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.3:test
[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] |  |  \- junit:junit:jar:3.8: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] |  |  \- com.sun.istack:istack-commons-runtime:jar:2.2.1: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

====================================================================================================================


On Thu, Aug 25, 2011 at 5:32 PM, Sagara Gunathunga
<sa...@gmail.com> wrote:
> 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
>



-- 
Sagara Gunathunga

Blog � � �- http://ssagara.blogspot.com
Web � � �- http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara