You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Bryan Stopp (Created) (JIRA)" <ji...@apache.org> on 2012/02/22 15:35:49 UTC

[jira] [Created] (CXF-4128) Code Gen plugin fails silently when generated classes have name collisions

Code Gen plugin fails silently when generated classes have name collisions
--------------------------------------------------------------------------

                 Key: CXF-4128
                 URL: https://issues.apache.org/jira/browse/CXF-4128
             Project: CXF
          Issue Type: Bug
          Components: Build system
    Affects Versions: 2.5.2
         Environment: Windows / Mac (Case insensitive)
            Reporter: Bryan Stopp


When executing a wsdl2java call using a WSDL which has a Port Type with the same name as a Message element, the classes for the Message or Clients are not created correctly. 

This only happens when the PortType name contains underscores, a direct name match allows discovery of collisions and appropriate name overriding.

I will attempt to attach the pom & wsdl test cases after creating this ticket. When asked on the users mailing list, this was the result of a command executed:

wsimport -keep recipeservice.wsdl

Generating code...

[ERROR] Could not generate SEI, class: edu.umkc.cse.cs5551.ws.CREATERECIPE already exists. Rename wsdl:portType "{http://ws.cs5551.cse.umkc.edu/}CREATE_RECIPE" using JAX-WS customization
  line 35 of file:/C:/testservice/src/main/resources/recipeservice.wsdl



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CXF-4128) Code Gen plugin fails silently when generated classes have name collisions

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

Freeman Fang resolved CXF-4128.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.6
                   2.5.3
                   2.4.7
                   2.3.10

commit fix
http://svn.apache.org/viewvc?rev=1310154&view=rev for trunk
http://svn.apache.org/viewvc?rev=1310156&view=rev for 2.5.x branch
http://svn.apache.org/viewvc?rev=1310158&view=rev for 2.4.x branch
http://svn.apache.org/viewvc?rev=1310177&view=rev for 2.3.x branch
                
> Code Gen plugin fails silently when generated classes have name collisions
> --------------------------------------------------------------------------
>
>                 Key: CXF-4128
>                 URL: https://issues.apache.org/jira/browse/CXF-4128
>             Project: CXF
>          Issue Type: Bug
>          Components: Build system
>    Affects Versions: 2.5.2
>         Environment: Windows / Mac (Case insensitive)
>            Reporter: Bryan Stopp
>            Assignee: Freeman Fang
>             Fix For: 2.3.10, 2.4.7, 2.5.3, 2.6
>
>         Attachments: pom.xml, recipeservice.wsdl
>
>
> When executing a wsdl2java call using a WSDL which has a Port Type with the same name as a Message element, the classes for the Message or Clients are not created correctly. 
> This only happens when the PortType name contains underscores and different case, a direct name match allows discovery of collisions and appropriate name overriding.
> The pom & wsdl test cases are attached. When asked on the users mailing list, this was the result of a command executed:
> wsimport -keep recipeservice.wsdl
> Generating code...
> [ERROR] Could not generate SEI, class: edu.umkc.cse.cs5551.ws.CREATERECIPE already exists. Rename wsdl:portType "{http://ws.cs5551.cse.umkc.edu/}CREATE_RECIPE" using JAX-WS customization
>   line 35 of file:/C:/testservice/src/main/resources/recipeservice.wsdl

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CXF-4128) Code Gen plugin fails silently when generated classes have name collisions

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

Freeman Fang reassigned CXF-4128:
---------------------------------

    Assignee: Freeman Fang
    
> Code Gen plugin fails silently when generated classes have name collisions
> --------------------------------------------------------------------------
>
>                 Key: CXF-4128
>                 URL: https://issues.apache.org/jira/browse/CXF-4128
>             Project: CXF
>          Issue Type: Bug
>          Components: Build system
>    Affects Versions: 2.5.2
>         Environment: Windows / Mac (Case insensitive)
>            Reporter: Bryan Stopp
>            Assignee: Freeman Fang
>         Attachments: pom.xml, recipeservice.wsdl
>
>
> When executing a wsdl2java call using a WSDL which has a Port Type with the same name as a Message element, the classes for the Message or Clients are not created correctly. 
> This only happens when the PortType name contains underscores and different case, a direct name match allows discovery of collisions and appropriate name overriding.
> The pom & wsdl test cases are attached. When asked on the users mailing list, this was the result of a command executed:
> wsimport -keep recipeservice.wsdl
> Generating code...
> [ERROR] Could not generate SEI, class: edu.umkc.cse.cs5551.ws.CREATERECIPE already exists. Rename wsdl:portType "{http://ws.cs5551.cse.umkc.edu/}CREATE_RECIPE" using JAX-WS customization
>   line 35 of file:/C:/testservice/src/main/resources/recipeservice.wsdl

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-4128) Code Gen plugin fails silently when generated classes have name collisions

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

Bryan Stopp updated CXF-4128:
-----------------------------

    Description: 
When executing a wsdl2java call using a WSDL which has a Port Type with the same name as a Message element, the classes for the Message or Clients are not created correctly. 

This only happens when the PortType name contains underscores and different case, a direct name match allows discovery of collisions and appropriate name overriding.

The pom & wsdl test cases are attached. When asked on the users mailing list, this was the result of a command executed:

wsimport -keep recipeservice.wsdl

Generating code...

[ERROR] Could not generate SEI, class: edu.umkc.cse.cs5551.ws.CREATERECIPE already exists. Rename wsdl:portType "{http://ws.cs5551.cse.umkc.edu/}CREATE_RECIPE" using JAX-WS customization
  line 35 of file:/C:/testservice/src/main/resources/recipeservice.wsdl



  was:
When executing a wsdl2java call using a WSDL which has a Port Type with the same name as a Message element, the classes for the Message or Clients are not created correctly. 

This only happens when the PortType name contains underscores, a direct name match allows discovery of collisions and appropriate name overriding.

I will attempt to attach the pom & wsdl test cases after creating this ticket. When asked on the users mailing list, this was the result of a command executed:

wsimport -keep recipeservice.wsdl

Generating code...

[ERROR] Could not generate SEI, class: edu.umkc.cse.cs5551.ws.CREATERECIPE already exists. Rename wsdl:portType "{http://ws.cs5551.cse.umkc.edu/}CREATE_RECIPE" using JAX-WS customization
  line 35 of file:/C:/testservice/src/main/resources/recipeservice.wsdl



    
> Code Gen plugin fails silently when generated classes have name collisions
> --------------------------------------------------------------------------
>
>                 Key: CXF-4128
>                 URL: https://issues.apache.org/jira/browse/CXF-4128
>             Project: CXF
>          Issue Type: Bug
>          Components: Build system
>    Affects Versions: 2.5.2
>         Environment: Windows / Mac (Case insensitive)
>            Reporter: Bryan Stopp
>         Attachments: pom.xml, recipeservice.wsdl
>
>
> When executing a wsdl2java call using a WSDL which has a Port Type with the same name as a Message element, the classes for the Message or Clients are not created correctly. 
> This only happens when the PortType name contains underscores and different case, a direct name match allows discovery of collisions and appropriate name overriding.
> The pom & wsdl test cases are attached. When asked on the users mailing list, this was the result of a command executed:
> wsimport -keep recipeservice.wsdl
> Generating code...
> [ERROR] Could not generate SEI, class: edu.umkc.cse.cs5551.ws.CREATERECIPE already exists. Rename wsdl:portType "{http://ws.cs5551.cse.umkc.edu/}CREATE_RECIPE" using JAX-WS customization
>   line 35 of file:/C:/testservice/src/main/resources/recipeservice.wsdl

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-4128) Code Gen plugin fails silently when generated classes have name collisions

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

Bryan Stopp updated CXF-4128:
-----------------------------

    Attachment: recipeservice.wsdl
                pom.xml
    
> Code Gen plugin fails silently when generated classes have name collisions
> --------------------------------------------------------------------------
>
>                 Key: CXF-4128
>                 URL: https://issues.apache.org/jira/browse/CXF-4128
>             Project: CXF
>          Issue Type: Bug
>          Components: Build system
>    Affects Versions: 2.5.2
>         Environment: Windows / Mac (Case insensitive)
>            Reporter: Bryan Stopp
>         Attachments: pom.xml, recipeservice.wsdl
>
>
> When executing a wsdl2java call using a WSDL which has a Port Type with the same name as a Message element, the classes for the Message or Clients are not created correctly. 
> This only happens when the PortType name contains underscores, a direct name match allows discovery of collisions and appropriate name overriding.
> I will attempt to attach the pom & wsdl test cases after creating this ticket. When asked on the users mailing list, this was the result of a command executed:
> wsimport -keep recipeservice.wsdl
> Generating code...
> [ERROR] Could not generate SEI, class: edu.umkc.cse.cs5551.ws.CREATERECIPE already exists. Rename wsdl:portType "{http://ws.cs5551.cse.umkc.edu/}CREATE_RECIPE" using JAX-WS customization
>   line 35 of file:/C:/testservice/src/main/resources/recipeservice.wsdl

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira