WSDL2JavaGenerator fails if the wsdl have an import for the XSD types
---------------------------------------------------------------------
Key: TUSCANY-343
URL: http://issues.apache.org/jira/browse/TUSCANY-343
Project: Tuscany
Type: Bug
Components: Java SCA Tools
Versions: Mx
Environment: Windows XP
Reporter: Jojo Joseph
I have a WSDL (uddi_api_v3_portType.wsdl) which import the types schema as :
<types>
<xsd:schema targetNamespace="urn:uddi-org:api_v3_portType"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="urn:uddi-org:api_v3"
schemaLocation="uddi_v3.xsd"/>
</xsd:schema>
</types>
If I specify this WSDL as a parameter to the tuscany-sca-plugin for java code
generation, it fails with the following exception :
[INFO] Generating Java service interfaces from
C:\Project\Tuscany\ws0508\testing-interop-uddi\src\main\resources\wsdl\test.wsdl
java.lang.NullPointerException
at
org.apache.tuscany.sdo.helper.XSDHelperImpl.define(XSDHelperImpl.java:191)
at
org.apache.tuscany.sdo.helper.XSDHelperImpl.define(XSDHelperImpl.java:161)
at
org.apache.tuscany.tools.wsdl2java.generate.WSDL2JavaGenerator.generateFromWSDL(WSDL2JavaGenerator.java:132)
at
org.apache.tuscany.tools.wsdl2java.plugin.WSDL2JavaGeneratorMojo.execute(WSDL2JavaGeneratorMojo.java:134)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
....
As a side note I would like to mention that if I specify the WSDL as a
parameter to tuscany-sdo-plugin, then that too fails with the same exception.
But there is a work-around for SDO code generation as I can specify the XSD
file containing the types schema as the parameter to the tuscany-sdo-plugin.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira