You need to sign in to do that
Don't have an account?
swapnil_salesf
JBOSS "wsconsume" tool does not compile enterprise.wsdl
I am trying to get my enterprise.wsdl to compile with the wsconsume
tool from the JBOSS 4.2.0.GA release (and Java 1.6.0). This wsdl
compiles successfully with Apache Axis org.apache.axis.wsdl.WSDL2Java
tool but when integrated my bundled application in JBOSS, it gives
class loading and logging issues.
With wsconsume and enterprise.wsdl I am getting these errors each time -
C:\>wsconsume.bat -k -o C:\SalesForce\Jboss_enterprise_wsdl enterprise.wsdl
warning: src-resolve: Cannot resolve the name 'tns:ID' to a(n) 'type definition' component.
line 0 of file:/C://enterprise.wsdl#types?schema1
error: A class/interface with the same name "com.sforce.soap.enterprise.DescribeLayout" is already in use. Use a class customization to resolve this conflict.
line 0 of file:/C://enterprise.wsdl#types?schema2
error: (Relevant to above error) another "DescribeLayout" is generated from here.
line 0 of file:/C://enterprise.wsdl#types?schema2
error: Two declarations cause a collision in the ObjectFactory class.
line 0 of file:/C://enterprise.wsdl#types?schema2
error: (Related to above error) This is the other declaration.
line 0 of file:/C://enterprise.wsdl#types?schema2
com.sun.istack.SAXParseException2: (Related to above error) This is the other declaration.
at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:213)
at org.jboss.com.sun.tools.ws.processor.config.ModelInfo.buildModel(ModelInfo.java:88)
at org.jboss.com.sun.tools.ws.processor.Processor.runModeler(Processor.java:82)
at org.jboss.com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:543)
at org.jboss.com.sun.tools.ws.util.ToolBase.run(ToolBase.java:57)
at org.jboss.ws.tools.jaxws.impl.WSContractConsumerImpl$1.run(WSContractConsumerImpl.java:163)
at org.jboss.ws.tools.jaxws.impl.WSContractConsumerImpl.consume(WSContractConsumerImpl.java:166)
at org.jboss.ws.tools.jaxws.command.wsconsume.importServices(wsconsume.java:193)
at org.jboss.ws.tools.jaxws.command.wsconsume.main(wsconsume.java:76)
Have others encountered the same / similar problem?
Thanks,
Swapnil.
With wsconsume and enterprise.wsdl I am getting these errors each time -
C:\>wsconsume.bat -k -o C:\SalesForce\Jboss_enterprise_wsdl enterprise.wsdl
warning: src-resolve: Cannot resolve the name 'tns:ID' to a(n) 'type definition' component.
line 0 of file:/C://enterprise.wsdl#types?schema1
error: A class/interface with the same name "com.sforce.soap.enterprise.DescribeLayout" is already in use. Use a class customization to resolve this conflict.
line 0 of file:/C://enterprise.wsdl#types?schema2
error: (Relevant to above error) another "DescribeLayout" is generated from here.
line 0 of file:/C://enterprise.wsdl#types?schema2
error: Two declarations cause a collision in the ObjectFactory class.
line 0 of file:/C://enterprise.wsdl#types?schema2
error: (Related to above error) This is the other declaration.
line 0 of file:/C://enterprise.wsdl#types?schema2
com.sun.istack.SAXParseException2: (Related to above error) This is the other declaration.
at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:213)
at org.jboss.com.sun.tools.ws.processor.config.ModelInfo.buildModel(ModelInfo.java:88)
at org.jboss.com.sun.tools.ws.processor.Processor.runModeler(Processor.java:82)
at org.jboss.com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:543)
at org.jboss.com.sun.tools.ws.util.ToolBase.run(ToolBase.java:57)
at org.jboss.ws.tools.jaxws.impl.WSContractConsumerImpl$1.run(WSContractConsumerImpl.java:163)
at org.jboss.ws.tools.jaxws.impl.WSContractConsumerImpl.consume(WSContractConsumerImpl.java:166)
at org.jboss.ws.tools.jaxws.command.wsconsume.importServices(wsconsume.java:193)
at org.jboss.ws.tools.jaxws.command.wsconsume.main(wsconsume.java:76)
Have others encountered the same / similar problem?
Thanks,
Swapnil.
Due to classpath problems with Axis and JBOSS, I was trying to use "wsconsume" tool from JBOSS. But now I again switched to Apache Axis and resolved the classpath problems. So now I am able to compile SalesForce enterprise.wsdl, but using Axis.