[jboss-user] [JBossWS] - Re: wsconsume

ahmedmhyd do-not-reply at jboss.com
Mon Nov 19 12:20:55 EST 2007


I also got the same problem when trying to consume googlesearch.wsdl .Where u able to solve it?
Ahmed



Error:

 [exec] parsing WSDL...
     [exec] [WARNING] src-resolve.4.2: Error resolving component 'soapenc:Array'. It was detected that 'soapenc:Array' is in namespace 'http://schemas.xmlsoap.org/soap/encoding/', but components from this namespace are not referenceable from schema document 'file:/C:/Workspace/wsdl/GoogleSearch.wsdl#types?schema1'. If this is the incorrect namespace, perhaps the prefix of 'soapenc:Array' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/C:/Workspace/wsdl/GoogleSearch.wsdl#types?schema1'.
     [exec]   line 57 of file:/C:/Workspace/wsdl/GoogleSearch.wsdl#types?schema1
     [exec] [ERROR] undefined simple or complex type 'soapenc:Array'
     [exec]   line 57 of file:/C:/Workspace/wsdl/GoogleSearch.wsdl
     [exec] [ERROR] undefined attribute 'soapenc:arrayType'
     [exec]   line 58 of file:/C:/Workspace/wsdl/GoogleSearch.wsdl
     [exec] [ERROR] undefined simple or complex type 'soapenc:Array'
     [exec]   line 65 of file:/C:/Workspace/wsdl/GoogleSearch.wsdl
     [exec] [ERROR] undefined attribute 'soapenc:arrayType'
     [exec]   line 66 of file:/C:/Workspace/wsdl/GoogleSearch.wsdl
     [exec] Failed to invoke WsImport
     [exec] java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/jboss-4.2.2.GA/client/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
     [exec] 	at com.sun.xml.bind.v2.model.impl.ModelBuilder.(ModelBuilder.java:172)
     [exec] 	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
     [exec] 	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:286)
     [exec] 	at com.sun.tools.xjc.reader.xmlschema.bindinfo.BindInfo.getJAXBContext(BindInfo.java:332)
     [exec] 	at com.sun.tools.xjc.reader.internalizer.SCDBasedBindingSet.apply(SCDBasedBindingSet.java:231)
     [exec] 	at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:518)
     [exec] 	at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:232)
     [exec] 	at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)
     [exec] 	at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:120)
     [exec] 	at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2173)
     [exec] 	at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:173)
     [exec] 	at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:119)
     [exec] 	at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:148)
     [exec] 	at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:187)
     [exec] 	at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:216)
     [exec] 	at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:79)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106106#4106106

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106106



More information about the jboss-user mailing list