You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andy Frantz (JIRA)" <ji...@apache.org> on 2008/07/02 15:29:45 UTC

[jira] Created: (CXF-1679) Schema entries with same targetNamespace produces error in wsdl2java

Schema entries with same targetNamespace produces error in wsdl2java
--------------------------------------------------------------------

                 Key: CXF-1679
                 URL: https://issues.apache.org/jira/browse/CXF-1679
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.1.1
         Environment: Windows XP, Eclipse
            Reporter: Andy Frantz
            Priority: Minor


When running wsdl2java, If there are multiple xsd:schema entries with the same targetNamespace in the wsdl:types section, a "WSDLToJava Error: Failed to create java parameter..." error occurs.  I'm not actually sure why the error occurs, but he wsdl validates just fine with the validation tool.

Validates, but causes a problem in wsdl2java:

<wsdl:types>
  <xsd:schema elementFormDefault="qualified" targetNamespace="target:ns" xmlns:tns="target:ns">
    <xsd:include schemaLocation="../schemas/first.xsd" />
  </xsd:schema>
  <xsd:schema elementFormDefault="qualified" targetNamespace="target:ns" xmlns:tns="target:ns">
    <xsd:include schemaLocation="../schemas/second.xsd" />
  </xsd:schema>
</wsdl:types>

Does not cause a problem:

<wsdl:types>
  <xsd:schema elementFormDefault="qualified" targetNamespace="target:ns" xmlns:tns="target:ns">
    <xsd:include schemaLocation="../schemas/first.xsd" />
    <xsd:include schemaLocation="../schemas/second.xsd" />
  </xsd:schema>
</wsdl:types>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-1679) Schema entries with same targetNamespace produces error in wsdl2java

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-1679.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2


I'm going to mark this resolved as I'm pretty sure it's now fixed and no one else has encountered it in the last year.    If someone else does encounter something similar, reopen this bug or log a new one (with a testcase would be good). 

> Schema entries with same targetNamespace produces error in wsdl2java
> --------------------------------------------------------------------
>
>                 Key: CXF-1679
>                 URL: https://issues.apache.org/jira/browse/CXF-1679
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1.1
>         Environment: Windows XP, Eclipse
>            Reporter: Andy Frantz
>            Priority: Minor
>             Fix For: 2.2
>
>
> When running wsdl2java, If there are multiple xsd:schema entries with the same targetNamespace in the wsdl:types section, a "WSDLToJava Error: Failed to create java parameter..." error occurs.  I'm not actually sure why the error occurs, but he wsdl validates just fine with the validation tool.
> Validates, but causes a problem in wsdl2java:
> <wsdl:types>
>   <xsd:schema elementFormDefault="qualified" targetNamespace="target:ns" xmlns:tns="target:ns">
>     <xsd:include schemaLocation="../schemas/first.xsd" />
>   </xsd:schema>
>   <xsd:schema elementFormDefault="qualified" targetNamespace="target:ns" xmlns:tns="target:ns">
>     <xsd:include schemaLocation="../schemas/second.xsd" />
>   </xsd:schema>
> </wsdl:types>
> Does not cause a problem:
> <wsdl:types>
>   <xsd:schema elementFormDefault="qualified" targetNamespace="target:ns" xmlns:tns="target:ns">
>     <xsd:include schemaLocation="../schemas/first.xsd" />
>     <xsd:include schemaLocation="../schemas/second.xsd" />
>   </xsd:schema>
> </wsdl:types>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1679) Schema entries with same targetNamespace produces error in wsdl2java

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777577#action_12777577 ] 

Daniel Kulp commented on CXF-1679:
----------------------------------


Any idea if this is still a problem?   With 2.2.x, we changed how the schemas are loaded internally to using the XmlSchema stuff entirely and also how the elements are looked up from XmlSchema.  Thus, I believe this should be fixed.

> Schema entries with same targetNamespace produces error in wsdl2java
> --------------------------------------------------------------------
>
>                 Key: CXF-1679
>                 URL: https://issues.apache.org/jira/browse/CXF-1679
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1.1
>         Environment: Windows XP, Eclipse
>            Reporter: Andy Frantz
>            Priority: Minor
>
> When running wsdl2java, If there are multiple xsd:schema entries with the same targetNamespace in the wsdl:types section, a "WSDLToJava Error: Failed to create java parameter..." error occurs.  I'm not actually sure why the error occurs, but he wsdl validates just fine with the validation tool.
> Validates, but causes a problem in wsdl2java:
> <wsdl:types>
>   <xsd:schema elementFormDefault="qualified" targetNamespace="target:ns" xmlns:tns="target:ns">
>     <xsd:include schemaLocation="../schemas/first.xsd" />
>   </xsd:schema>
>   <xsd:schema elementFormDefault="qualified" targetNamespace="target:ns" xmlns:tns="target:ns">
>     <xsd:include schemaLocation="../schemas/second.xsd" />
>   </xsd:schema>
> </wsdl:types>
> Does not cause a problem:
> <wsdl:types>
>   <xsd:schema elementFormDefault="qualified" targetNamespace="target:ns" xmlns:tns="target:ns">
>     <xsd:include schemaLocation="../schemas/first.xsd" />
>     <xsd:include schemaLocation="../schemas/second.xsd" />
>   </xsd:schema>
> </wsdl:types>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1679) Schema entries with same targetNamespace produces error in wsdl2java

Posted by "Andy Frantz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777581#action_12777581 ] 

Andy Frantz commented on CXF-1679:
----------------------------------

Wow, that was some time ago - I couldn't say if it is still an issue or not.  I'm sure I came up with a workaround at the time just to move forward.

> Schema entries with same targetNamespace produces error in wsdl2java
> --------------------------------------------------------------------
>
>                 Key: CXF-1679
>                 URL: https://issues.apache.org/jira/browse/CXF-1679
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1.1
>         Environment: Windows XP, Eclipse
>            Reporter: Andy Frantz
>            Priority: Minor
>
> When running wsdl2java, If there are multiple xsd:schema entries with the same targetNamespace in the wsdl:types section, a "WSDLToJava Error: Failed to create java parameter..." error occurs.  I'm not actually sure why the error occurs, but he wsdl validates just fine with the validation tool.
> Validates, but causes a problem in wsdl2java:
> <wsdl:types>
>   <xsd:schema elementFormDefault="qualified" targetNamespace="target:ns" xmlns:tns="target:ns">
>     <xsd:include schemaLocation="../schemas/first.xsd" />
>   </xsd:schema>
>   <xsd:schema elementFormDefault="qualified" targetNamespace="target:ns" xmlns:tns="target:ns">
>     <xsd:include schemaLocation="../schemas/second.xsd" />
>   </xsd:schema>
> </wsdl:types>
> Does not cause a problem:
> <wsdl:types>
>   <xsd:schema elementFormDefault="qualified" targetNamespace="target:ns" xmlns:tns="target:ns">
>     <xsd:include schemaLocation="../schemas/first.xsd" />
>     <xsd:include schemaLocation="../schemas/second.xsd" />
>   </xsd:schema>
> </wsdl:types>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.