[JBoss JIRA] (JBDS-2450) No Error reported when WS Client code generation fails
by Mustafa Musaji (JIRA)
[ https://issues.jboss.org/browse/JBDS-2450?page=com.atlassian.jira.plugin.... ]
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
13 years, 2 months
[JBoss JIRA] (JBDS-2450) No Error reported when WS Client code generation fails
by Mustafa Musaji (JIRA)
Mustafa Musaji created JBDS-2450:
------------------------------------
Summary: 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
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
13 years, 2 months
[JBoss JIRA] (JBDS-2449) Report a better error when using wrong project type to create WS Client
by Mustafa Musaji (JIRA)
[ https://issues.jboss.org/browse/JBDS-2449?page=com.atlassian.jira.plugin.... ]
Mustafa Musaji updated JBDS-2449:
---------------------------------
Description:
If you try and use a standard Java Project to create WS Client from a WSDL, you get a NPE thrown. But an error stating that the project type expected is a Dynamic Web Project would be much more appropriate.
!Screenshot_error.png|thumbnail!
was:
If you try and use a standard Java Project to create WS Client from a WSDL, you get a NPE thrown. But an error stating that the project type expected is a Dynamic Web Project would be much more appropriate.
!Screenshot_error.png!
> Report a better error when using wrong project type to create WS Client
> -----------------------------------------------------------------------
>
> Key: JBDS-2449
> URL: https://issues.jboss.org/browse/JBDS-2449
> 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
> Attachments: Screenshot_error.png
>
>
> If you try and use a standard Java Project to create WS Client from a WSDL, you get a NPE thrown. But an error stating that the project type expected is a Dynamic Web Project would be much more appropriate.
> !Screenshot_error.png|thumbnail!
--
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
13 years, 2 months
[JBoss JIRA] (JBDS-2449) Report a better error when using wrong project type to create WS Client
by Mustafa Musaji (JIRA)
[ https://issues.jboss.org/browse/JBDS-2449?page=com.atlassian.jira.plugin.... ]
Mustafa Musaji updated JBDS-2449:
---------------------------------
Description:
If you try and use a standard Java Project to create WS Client from a WSDL, you get a NPE thrown. But an error stating that the project type expected is a Dynamic Web Project would be much more appropriate.
!Screenshot_error.png!
was:If you try and use a standard Java Project to create WS Client from a WSDL, you get a NPE thrown. But an error stating that the project type expected is a Dynamic Web Project would be much more appropriate.
> Report a better error when using wrong project type to create WS Client
> -----------------------------------------------------------------------
>
> Key: JBDS-2449
> URL: https://issues.jboss.org/browse/JBDS-2449
> 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
> Attachments: Screenshot_error.png
>
>
> If you try and use a standard Java Project to create WS Client from a WSDL, you get a NPE thrown. But an error stating that the project type expected is a Dynamic Web Project would be much more appropriate.
> !Screenshot_error.png!
--
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
13 years, 2 months