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

Brian Fitzpatrick (JIRA) issues at jboss.org
Thu May 7 16:18:46 EDT 2015


    [ https://issues.jboss.org/browse/JBIDE-13414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066365#comment-13066365 ] 

Brian Fitzpatrick commented on JBIDE-13414:
-------------------------------------------

Tracing into this I am seeing this show up after running wsconsume...
{code}
Could not find log4j.xml configuration, logging to console.	
	
JBWS024003: Unsupported value '2.0' for target, using default value '2.2'	
TODO! Cheek SOAP 1.2 extension	
Loading FrontEnd jaxws ...	
Loading DataBinding jaxb ...	
wsdl2java -compile -exsh false -d E:\workspaces\runtime-New_configuration-04-MAY-2015\echo\src -verbose -classdir E:\workspaces\runtime-New_configuration-04-MAY-2015\echo\build\classes -allowElementReferences file:/E:/workspaces/runtime-New_configuration-04-MAY-2015/echo/WebContent/echoService.wsdl	
wsdl2java - Apache CXF 2.7.11	
	
JBWS024002: Failed to invoke org.apache.cxf.tools.wsdlto.WSDLToJava	
org.apache.cxf.tools.common.ToolException: file:/E:/workspaces/runtime-New_configuration-04-MAY-2015/echo/WebContent/echoService.wsdl [12,2]: Two declarations cause a collision in the ObjectFactory class.	
file:/E:/workspaces/runtime-New_configuration-04-MAY-2015/echo/WebContent/echoService.wsdl [13,2]: (Related to above error) This is the other declaration.   	
	
	at org.apache.cxf.tools.common.ToolErrorListener.throwToolException(ToolErrorListener.java:87)	
	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:166)	
	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:412)	
	at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)	
	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)	
	at org.jboss.wsf.stack.cxf.tools.CXFConsumerImpl.consume(CXFConsumerImpl.java:301)	
	at org.jboss.ws.tools.cmd.WSConsume.importServices(WSConsume.java:289)	
	at org.jboss.ws.tools.cmd.WSConsume.mainInternal(WSConsume.java:106)	
	at org.jboss.ws.tools.cmd.WSConsume.main(WSConsume.java:94)	
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	
	at java.lang.reflect.Method.invoke(Method.java:606)	
	at org.jboss.modules.Module.run(Module.java:312)	
	at org.jboss.modules.Main.main(Main.java:460)	
	Suppressed: org.apache.cxf.tools.common.ToolException: file:/E:/workspaces/runtime-New_configuration-04-MAY-2015/echo/WebContent/echoService.wsdl [12,2]: Two declarations cause a collision in the ObjectFactory class.	
		... 15 more	
	Caused by: com.sun.istack.SAXParseException2publicId: file:/E:/workspaces/runtime-New_configuration-04-MAY-2015/echo/WebContent/echoService.wsdl; systemId: file:/E:/workspaces/runtime-New_configuration-04-MAY-2015/echo/WebContent/echoService.wsdl; lineNumber: 12; columnNumber: 2; Two declarations cause a collision in the ObjectFactory class.	
		at com.sun.tools.xjc.ErrorReceiver.error(ErrorReceiver.java:86)	
		at com.sun.tools.xjc.generator.bean.ObjectFactoryGeneratorImpl.populate(ObjectFactoryGeneratorImpl.java:191)	
		at com.sun.tools.xjc.generator.bean.PublicObjectFactoryGenerator.populate(PublicObjectFactoryGenerator.java:59)	
		at com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:267)	
		at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:166)	
		at com.sun.tools.xjc.model.Model.generateCode(Model.java:290)	
		at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:283)	
		at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:94)	
		at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:462)	
		at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:714)	
		at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:270)	
		at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:164)	
		... 13 more	
	Suppressed: org.apache.cxf.tools.common.ToolException: file:/E:/workspaces/runtime-New_configuration-04-MAY-2015/echo/WebContent/echoService.wsdl [13,2]: (Related to above error) This is the other declaration.   	
		... 15 more	
	Caused by: com.sun.istack.SAXParseException2publicId: file:/E:/workspaces/runtime-New_configuration-04-MAY-2015/echo/WebContent/echoService.wsdl; systemId: file:/E:/workspaces/runtime-New_configuration-04-MAY-2015/echo/WebContent/echoService.wsdl; lineNumber: 13; columnNumber: 2; (Related to above error) This is the other declaration.   	
		at com.sun.tools.xjc.ErrorReceiver.error(ErrorReceiver.java:86)	
		at com.sun.tools.xjc.generator.bean.ObjectFactoryGeneratorImpl.populate(ObjectFactoryGeneratorImpl.java:193)	
		at com.sun.tools.xjc.generator.bean.PublicObjectFactoryGenerator.populate(PublicObjectFactoryGenerator.java:59)	
		at com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:267)	
		at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:166)	
		at com.sun.tools.xjc.model.Model.generateCode(Model.java:290)	
		at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:283)	
		at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:94)	
		at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:462)	
		at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:714)	
		at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:270)	
		at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:164)	
		... 13 more	
{code}

> No Error reported when WS Client code generation fails
> ------------------------------------------------------
>
>                 Key: JBIDE-13414
>                 URL: https://issues.jboss.org/browse/JBIDE-13414
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: webservices
>            Reporter: Mustafa Musaji
>            Assignee: Brian Fitzpatrick
>              Labels: jax-ws, web_service_client
>             Fix For: LATER
>
>         Attachments: echoService.wsdl, screenshot-1.png
>
>
> 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 was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list