0 Replies Latest reply on Sep 30, 2015 5:12 AM by Mario Fiorentino

    [jboss6.0.0final] WSConsume ToolException

    Mario Fiorentino Newbie

      Dear all,

      I've a problem with the use of wsconsume. I am trying to generate java classes and stubs from a wsdl file (here attached).

      The error output is printed at the end of the message.

       

      Could you please give me some suggestions? I am getting crazy!!

      Best

       

      [exec] wsdl2java - Apache CXF 2.3.1

           [exec] Failed to invoke WSDLToJava

           [exec] org.apache.cxf.tools.common.ToolException: Thrown by JAXB: IOException thrown when processing "classpath:/schemas/wsdl/ws-addr.xsd". Exception: java.net.MalformedURLException: unknown protocol: classpath.

           [exec] at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBBindErrorListener.error(JAXBBindErrorListener.java:41)

           [exec] at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.error(SchemaCompilerImpl.java:286)

           [exec] at com.sun.tools.xjc.ErrorReceiver.error(ErrorReceiver.java:90)

           [exec] at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:401)

           [exec] at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:300)

           [exec] at com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl.startElement(AbstractReferenceFinderImpl.java:95)

           [exec] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

           [exec] at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)

           [exec] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

           [exec] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

           [exec] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

           [exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

           [exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

           [exec] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

           [exec] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

           [exec] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

           [exec] at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:393)

           [exec] at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:300)

           [exec] at com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl.startElement(AbstractReferenceFinderImpl.java:95)

           [exec] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

           [exec] at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)

           [exec] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

           [exec] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

           [exec] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

           [exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

           [exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

           [exec] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

           [exec] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

           [exec] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

           [exec] at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:393)

           [exec] at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:300)

           [exec] at com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl.startElement(AbstractReferenceFinderImpl.java:95)

           [exec] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

           [exec] at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)

           [exec] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

           [exec] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

           [exec] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

           [exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

           [exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

           [exec] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

           [exec] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

           [exec] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

           [exec] at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:393)

           [exec] at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:300)

           [exec] at com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl.startElement(AbstractReferenceFinderImpl.java:95)

           [exec] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

           [exec] at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)

           [exec] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

           [exec] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

           [exec] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

           [exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

           [exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

           [exec] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

           [exec] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

           [exec] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

           [exec] at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:393)

           [exec] at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:300)

           [exec] at com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl.startElement(AbstractReferenceFinderImpl.java:95)

           [exec] at com.sun.istack.XMLStreamReaderToContentHandler.handleStartElement(XMLStreamReaderToContentHandler.java:264)

           [exec] at com.sun.istack.XMLStreamReaderToContentHandler.bridge(XMLStreamReaderToContentHandler.java:109)

           [exec] at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:431)

           [exec] at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.parseSchema(SchemaCompilerImpl.java:164)

           [exec] at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.addSchemas(JAXBDataBinding.java:575)

           [exec] at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:363)

           [exec] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:573)

           [exec] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:228)

           [exec] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:128)

           [exec] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:271)

           [exec] at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)

           [exec] at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)

           [exec] at org.jboss.wsf.stack.cxf.tools.CXFConsumerImpl.consume(CXFConsumerImpl.java:239)

           [exec] at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:267)

           [exec] at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:92)

           [exec] Caused by: java.net.MalformedURLException: unknown protocol: classpath

           [exec] ... 71 more

           [exec] Caused by: java.net.MalformedURLException: unknown protocol: classpath

           [exec] at java.net.URL.<init>(URL.java:574)

           [exec] at java.net.URL.<init>(URL.java:464)

           [exec] at java.net.URL.<init>(URL.java:413)

           [exec] at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)

           [exec] at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)

           [exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

           [exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

           [exec] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

           [exec] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

           [exec] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

           [exec] at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:393)

           [exec] ... 69 more