This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Web Service using JDK 1.6, Jboss 5.1.0 GA and JBossWS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Service using JDK 1.6, Jboss 5.1.0 GA and JBossWS" Watch "Web Service using JDK 1.6, Jboss 5.1.0 GA and JBossWS" New topic
Author

Web Service using JDK 1.6, Jboss 5.1.0 GA and JBossWS

rex hindlekar
Greenhorn

Joined: Feb 25, 2010
Posts: 13
Hello,

Has anyone created a web service using the Jbossws, jdk1.6 with Jboss 5.1.0 Ga?

Does the client work properly?

Rgds,

Seetesh
rex hindlekar
Greenhorn

Joined: Feb 25, 2010
Posts: 13
Just got the ws working.

Ping me for the code if you require.

JBoss requires new jar files in lib\endorsed to be configured
rex hindlekar
Greenhorn

Joined: Feb 25, 2010
Posts: 13
<code>
build.xml

<wsconsume
fork="true"
verbose="true"
sourcedestdir="src"
keep="true"
binding="d:/ws-newfile.xml"
wsdl="http://localhost:8080/Test/TestManager?wsdl"/>


ws-newfile.xml
==========
<?xml version="1.0" encoding="UTF-8"?>
<jaxws:bindings node="wsdl:definitions/wsdl:types/xsd:schema"
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<jaxb:globalBindings>
<jaxb:serializable/>
<jaxb:javaType name="java.util.Date" xmlType="xsd:dateTime"/>
</jaxb:globalBindings>
</jaxws:bindings>


</code>

I am getting the following error
<code>
[wsconsume] Error: Could not import. (use --verbose to see full traces)
[wsconsume] java.lang.NoSuchMethodError: com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(Lcom/sun/xml/bind/v2/runtime/JAXBContextImpl$JAXBContextBuilder;)V
[wsconsume] at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1136)
[wsconsume] at com.sun.tools.xjc.reader.xmlschema.bindinfo.BindInfo.getJAXBContext(BindInfo.java:330)
[wsconsume] at com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl$1.<init>(AnnotationParserFactoryImpl.java:80)
[wsconsume] at com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl.create(AnnotationParserFactoryImpl.java:79)
[wsconsume] at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.createAnnotationParser(NGCCRuntimeEx.java:359)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.annotation.action0(annotation.java:48)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.annotation.enterElement(annotation.java:73)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFromEnterElement(NGCCHandler.java:74)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:294)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.NGCCHandler.revertToParentFromEnterElement(NGCCHandler.java:111)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.foreignAttributes.enterElement(foreignAttributes.java:50)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFromEnterElement(NGCCHandler.java:74)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:200)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:250)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:238)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:226)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:262)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:270)
[wsconsume] at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRuntime.java:219)
[wsconsume] at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
[wsconsume] at com.sun.tools.xjc.util.SubtreeCutter.startElement(SubtreeCutter.java:104)
[wsconsume] at com.sun.tools.xjc.reader.ExtensionBindingChecker.startElement(ExtensionBindingChecker.java:144)
[wsconsume] at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
[wsconsume] at com.sun.tools.xjc.reader.xmlschema.parser.IncorrectNamespaceURIChecker.startElement(IncorrectNamespaceURIChecker.java:113)
[wsconsume] at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
[wsconsume] at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.startElement(CustomizationContextChecker.java:188)
[wsconsume] at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
[wsconsume] at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.startElement(DOMForestScanner.java:141)
[wsconsume] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:240)
[wsconsume] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:277)
[wsconsume] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:246)
[wsconsume] at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:123)
[wsconsume] at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:89)
[wsconsume] at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:97)
[wsconsume] at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:99)
[wsconsume] at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:262)
[wsconsume] at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:337)
[wsconsume] at com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:124)
[wsconsume] at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:183)
[wsconsume] at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:172)
[wsconsume] at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:516)
[wsconsume] at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:236)
[wsconsume] at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)
[wsconsume] at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:134)
[wsconsume] at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2245)
[wsconsume] at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:187)
[wsconsume] at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:133)
[wsconsume] at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:183)
[wsconsume] at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:230)
[wsconsume] at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:230)
[wsconsume] at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:81)

BUILD FAILED
</code>

I have addede new endorsed folder to jboss and added to classpath.

Rgds,

Seetesh
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Web Service using JDK 1.6, Jboss 5.1.0 GA and JBossWS
 
Similar Threads
Jboss Exception while aceesing a sample web services.
Server started with Deployment Errors
Jboss help
following error is comming in jboss console while deploying
Classloading problem on deployment of hbm.xml