You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Jojo Joseph (JIRA)" <tu...@ws.apache.org> on 2006/05/10 15:57:13 UTC

[jira] Created: (TUSCANY-343) WSDL2JavaGenerator fails if the wsdl have an import for the XSD types

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


[jira] Updated: (TUSCANY-343) WSDL2JavaGenerator fails if the wsdl have an import for the XSD types

Posted by "Jojo Joseph (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-343?page=all ]

Jojo Joseph updated TUSCANY-343:
--------------------------------

    Attachment: testing-interop-uddi.zip

Use this project to reproduce the problem. If you build the project, you will get the error.

> 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
>  Attachments: testing-interop-uddi.zip
>
> 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


[jira] Commented: (TUSCANY-343) WSDL2JavaGenerator fails if the wsdl have an import for the XSD types

Posted by "Michael John Edwards (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-343?page=comments#action_12379074 ] 

Michael John Edwards commented on TUSCANY-343:
----------------------------------------------

I found the last comment from Jean-Sebastien surprising - "I am not expecting the tool to process the imported XSD...".

Surely you DO want the tool to process the imported XSD?  Why force the user to go find the XSD and use a tool to generate Java from it separately.  With a large complex WSDL this could be a nightmare.  I can understand a temporary limitation while we build up the function, but not a permanent solution with this limitation.

> 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: Java-M1
>  Environment: Windows XP
>     Reporter: Jojo Joseph
>     Assignee: Frank Budinsky
>     Priority: Critical
>      Fix For: Java-M1
>  Attachments: testing-interop-uddi.zip
>
> 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


[jira] Commented: (TUSCANY-343) WSDL2JavaGenerator fails if the wsdl have an import for the XSD types

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-343?page=comments#action_12379080 ] 

Frank Budinsky commented on TUSCANY-343:
----------------------------------------

Sorry folks, I should have added a comment earlier. I've been trying to commit the fix for this since yesterday afternoon but failing because of the problems with svn.apache.org. I will resolve this issue as soon as I can commit the fix.

And yes, the XSDHelper.define() method should (and does) process imported schemas.

> 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: Java-M1
>  Environment: Windows XP
>     Reporter: Jojo Joseph
>     Assignee: Frank Budinsky
>     Priority: Critical
>      Fix For: Java-M1
>  Attachments: testing-interop-uddi.zip
>
> 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


[jira] Commented: (TUSCANY-343) WSDL2JavaGenerator fails if the wsdl have an import for the XSD types

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-343?page=comments#action_12379042 ] 

Jean-Sebastien Delfino commented on TUSCANY-343:
------------------------------------------------

I am not expecting the tool to process the imported XSD, since it is from a different namespace. The user should pass the imported XSD to the tool separately, but the NPE processing the importing XSD is a serious issue. Thanks.

> 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: M1
>  Environment: Windows XP
>     Reporter: Jojo Joseph
>     Assignee: Frank Budinsky
>      Fix For: M1
>  Attachments: testing-interop-uddi.zip
>
> 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


[jira] Assigned: (TUSCANY-343) WSDL2JavaGenerator fails if the wsdl have an import for the XSD types

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-343?page=all ]

Jean-Sebastien Delfino reassigned TUSCANY-343:
----------------------------------------------

    Assign To: Frank Budinsky

Frank, can you please take a look at this issue? there's many WSDLs with XSD imports out there...

> 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
>     Assignee: Frank Budinsky
>  Attachments: testing-interop-uddi.zip
>
> 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


[jira] Updated: (TUSCANY-343) WSDL2JavaGenerator fails if the wsdl have an import for the XSD types

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-343?page=all ]

Jean-Sebastien Delfino updated TUSCANY-343:
-------------------------------------------

    Fix Version: M1
        Version: M1
                     (was: Mx)
       Priority: Critical  (was: Major)

> 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: M1
>  Environment: Windows XP
>     Reporter: Jojo Joseph
>     Assignee: Frank Budinsky
>     Priority: Critical
>      Fix For: M1
>  Attachments: testing-interop-uddi.zip
>
> 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


[jira] Resolved: (TUSCANY-343) WSDL2JavaGenerator fails if the wsdl have an import for the XSD types

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-343?page=all ]
     
Frank Budinsky resolved TUSCANY-343:
------------------------------------

    Resolution: Fixed

Fixed in revision 405804.

> 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: Java-M1
>  Environment: Windows XP
>     Reporter: Jojo Joseph
>     Assignee: Frank Budinsky
>     Priority: Critical
>      Fix For: Java-M1
>  Attachments: testing-interop-uddi.zip
>
> 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