[jbosstools-issues] [JBoss JIRA] (JBDS-2450) No Error reported when WS Client code generation fails

Mustafa Musaji (JIRA) jira-events at lists.jboss.org
Thu Jan 24 05:45:47 EST 2013


     [ https://issues.jboss.org/browse/JBDS-2450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mustafa Musaji updated JBDS-2450:
---------------------------------

    Attachment: echoService.wsdl


I'm attaching a sample WSDL to reproduce this issue with. It contains the following

 <xs:element name='DUPLICATESTRING' type='xs:string'/>
 <xs:element name='DUPLICATE_STRING' type='xs:string'/>

JAXB by default removes "_" (underscores) and thus the names cause a collision when generating client stubs.

This isn't picked up if you have WSDL validation turned on because it's valid XML.
                
> No Error reported when WS Client code generation fails
> ------------------------------------------------------
>
>                 Key: JBDS-2450
>                 URL: https://issues.jboss.org/browse/JBDS-2450
>             Project: Developer Studio (JBoss Developer Studio)
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Error Reporting
>    Affects Versions: 6.0.0.GA
>            Reporter: Mustafa Musaji
>              Labels: web_service_client
>         Attachments: echoService.wsdl
>
>
> If you have a WSDL which would normally fail because of JAXB collision. From command line you would get an error like this:
> Failed to invoke WSDLToJava
> org.apache.cxf.tools.common.ToolException: Thrown by JAXB: 
> Thrown by JAXB: 
> Two declarations cause a collision in the ObjectFactory class.
> ...
> However, in JBDS you don't get any error. It just doesn't create any sources and there is no indication of what the issue is.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list