-
1. Re: WS-Addressing in native stack
mobaxkrs Mar 23, 2009 1:08 AM (in response to mobaxkrs)any body there to help out
-
2. Re: WS-Addressing in native stack
ropalka Mar 24, 2009 3:42 AM (in response to mobaxkrs)First of all always use up2date JBossWS version (3.1.0.GA currently)
Your problem can be caused by the fact that you are running the client code from your IDE and you're using different SOAP stack and not JBossWS as you think. To verify my claim use JBOSS_HOME/bin/wsrunclient to run your client code. If it will work, you're using different SOAP stack and you need to configure your IDE properly. -
3. Re: WS-Addressing in native stack
mobaxkrs Mar 25, 2009 1:35 AM (in response to mobaxkrs)Thanks for the response
I upgraded jbossWS 3.1.0 GA
I tried to use wsconsume.sh to generate the stub classes,
also wsrunclient.sh to check.
Now i get a different error.
root@mobax0159:~/jboss-4.2.3.GA/bin# ./wsconsume.sh -k -v http://200.201.202.159:8080/SampleWebService/SampleWebService?wsdl
parsing WSDL...
Error: Could not import. (use --verbose to see full traces)
java.lang.NoSuchMethodError: org.w3c.dom.Document.setDocumentURI(Ljava/lang/String;)V
at com.sun.tools.ws.wsdl.parser.DOMForest.parse(DOMForest.java:197)
at com.sun.tools.ws.wsdl.parser.DOMForest.parse(DOMForest.java:147)
at com.sun.tools.ws.wsdl.parser.MetadataFinder.parseWSDL(MetadataFinder.java:102)
at com.sun.tools.ws.wsdl.parser.WSDLParser.parse(WSDLParser.java:141)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:126)
at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:182)
at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:230)
at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:222)
at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:80)
oh God. Will i complete this? -
4. Re: WS-Addressing in native stack
ropalka Mar 25, 2009 2:39 AM (in response to mobaxkrs)How does your WSDL look like?
-
5. Re: WS-Addressing in native stack
mobaxkrs Mar 25, 2009 2:44 AM (in response to mobaxkrs)<definitions name="SampleWebService" targetNamespace="http://www.jboss.org/jbossws/ws-extensions/wsaddressing" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.jboss.org/jbossws/ws-extensions/wsaddressing" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xs:schema targetNamespace="http://www.jboss.org/jbossws/ws-extensions/wsaddressing" version="1.0" xmlns:tns="http://www.jboss.org/jbossws/ws-extensions/wsaddressing" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="helloWorld" type="tns:helloWorld"/>
<xs:element name="helloWorldResponse" type="tns:helloWorldResponse"/>
<xs:complexType name="helloWorld">
<xs:sequence>
<xs:element minOccurs="0" name="inputString" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="helloWorldResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<soap:operation soapAction=""/>
<soap:body use="literal"/>
<soap:body use="literal"/>
<soap:address location="http://200.201.202.159:8080/SampleWebService/SampleWebService"/> -
6. Re: WS-Addressing in native stack
mobaxkrs Mar 25, 2009 2:45 AM (in response to mobaxkrs)sorry, i missed the quotes tag.
<definitions name="SampleWebService" targetNamespace="http://www.jboss.org/jbossws/ws-extensions/wsaddressing" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.jboss.org/jbossws/ws-extensions/wsaddressing" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<types>
<xs:schema targetNamespace="http://www.jboss.org/jbossws/ws-extensions/wsaddressing" version="1.0" xmlns:tns="http://www.jboss.org/jbossws/ws-extensions/wsaddressing" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="helloWorld" type="tns:helloWorld"/>
<xs:element name="helloWorldResponse" type="tns:helloWorldResponse"/>
<xs:complexType name="helloWorld">
<xs:sequence>
<xs:element minOccurs="0" name="inputString" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="helloWorldResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</types>
<message name="SampleWebServiceInterface_helloWorld">
<part element="tns:helloWorld" name="helloWorld"/>
</message>
<message name="SampleWebServiceInterface_helloWorldResponse">
<part element="tns:helloWorldResponse" name="helloWorldResponse"/>
</message>
<portType name="SampleWebServiceInterface">
<operation name="helloWorld" parameterOrder="helloWorld">
<input message="tns:SampleWebServiceInterface_helloWorld"/>
<output message="tns:SampleWebServiceInterface_helloWorldResponse"/>
</operation>
</portType>
<binding name="SampleWebServiceInterfaceBinding" type="tns:SampleWebServiceInterface">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="helloWorld">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="SampleWebService">
<port binding="tns:SampleWebServiceInterfaceBinding" name="SampleWebServicePort">
<soap:address location="http://200.201.202.159:8080/SampleWebService/SampleWebService"/>
<UsingAddressing xmlns="http://www.w3.org/2006/05/addressing/wsdl"/>
</port>
</service>
</definitions> -
7. Re: WS-Addressing in native stack
ropalka Mar 25, 2009 2:55 AM (in response to mobaxkrs)Sorry, but I can't reproduce your problem :(
I executed the following command:
$JBOSS_HOME/bin>./wsconsume.sh -k -v a.wsdl | tee test.log
and all passes without problems. Here's my test.log output:
parsing WSDL...
generating code...
org/jboss/jbossws/ws_extensions/wsaddressing/HelloWorld.java
org/jboss/jbossws/ws_extensions/wsaddressing/HelloWorldResponse.java
org/jboss/jbossws/ws_extensions/wsaddressing/ObjectFactory.java
org/jboss/jbossws/ws_extensions/wsaddressing/SampleWebService.java
org/jboss/jbossws/ws_extensions/wsaddressing/SampleWebServiceInterface.java
org/jboss/jbossws/ws_extensions/wsaddressing/package-info.java
compiling code...
javac -d /opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/bin/output -classpath :/opt/java/jdk/sun/jdk1.5.0_17/lib/tools.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/activation.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/getopt.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/wstx.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jbossall-client.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/log4j.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/mail.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jbossws-spi.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jbossws-common.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jbossws-framework.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jaxws-tools.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jaxws-rt.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/stax-api.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jaxb-api.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jaxb-impl.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jaxb-xjc.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/streambuffer.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/stax-ex.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/javassist.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jboss-xml-binding.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jbossws-native-client.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jbossws-native-core.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jbossws-native-jaxws.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jbossws-native-jaxws-ext.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jbossws-native-jaxrpc.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jbossws-native-saaj.jar -Xbootclasspath/p:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jbossws-native-jaxws.jar:/opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/client/jaxb-api.jar /opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/bin/output/org/jboss/jbossws/ws_extensions/wsaddressing/HelloWorld.java /opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/bin/output/org/jboss/jbossws/ws_extensions/wsaddressing/HelloWorldResponse.java /opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/bin/output/org/jboss/jbossws/ws_extensions/wsaddressing/ObjectFactory.java /opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/bin/output/org/jboss/jbossws/ws_extensions/wsaddressing/SampleWebService.java /opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/bin/output/org/jboss/jbossws/ws_extensions/wsaddressing/SampleWebServiceInterface.java /opt/svn/jbossas/tags/JBoss_4_2_3_GA/build/output/jboss-4.2.3.GA/bin/output/org/jboss/jbossws/ws_extensions/wsaddressing/package-info.java
How did you install JBossWS 3.1.0 to JBossAS 4.2.3? Can you describe me your installation process? -
8. Re: WS-Addressing in native stack
mobaxkrs Mar 25, 2009 5:28 AM (in response to mobaxkrs)Thanks for trying out.
The following are the steps I installed JBOSSWS 3.1.0 GA
1. Downloaded and extracted zip file.
2. renamed ant.properties
3. set target container - jboss423
4. ant deploy-jboss423 - completed successfully.
5. ant tests - all tests failed. -
9. Re: WS-Addressing in native stack
mobaxkrs Mar 25, 2009 5:30 AM (in response to mobaxkrs)Also, I have both jdk 1.5.0.17 and jdk 1.6.0, I tried with both jdks same error,
-
10. Re: WS-Addressing in native stack
mobaxkrs Mar 25, 2009 5:33 AM (in response to mobaxkrs)This is my jbossws 3.1.0 GA Install.log, i run it again
Buildfile: build.xml
target-jboss423:
prepare:
init:
[echo] integration.target=jboss423
undeploy-jboss423:
[delete] Deleting directory /root/jboss-4.2.3.GA/server/default/deploy/jbossws.sar
[delete] Deleting directory /root/jboss-4.2.3.GA/server/default/deploy/juddi-service.sar
prepare-deploy:
deploy-structure-jboss42:
[delete] Deleting directory /root/jbossws-native-bin-dist/output/deploy-jboss423
check-parameters:
deploy-jbossws-endorsed:
deploy-jbossws-native42:
[mkdir] Created dir: /root/jbossws-native-bin-dist/output/deploy-jboss423/bin
[copy] Copying 8 files to /root/jbossws-native-bin-dist/output/deploy-jboss423/bin
[mkdir] Created dir: /root/jbossws-native-bin-dist/output/deploy-jboss423/client
[copy] Copying 23 files to /root/jbossws-native-bin-dist/output/deploy-jboss423/client
[mkdir] Created dir: /root/jbossws-native-bin-dist/output/deploy-jboss423/lib
[mkdir] Created dir: /root/jbossws-native-bin-dist/output/deploy-jboss423/server/default/lib
[copy] Copying 8 files to /root/jbossws-native-bin-dist/output/deploy-jboss423/server/default/lib
[mkdir] Created dir: /root/jbossws-native-bin-dist/output/deploy-jboss423/server/default/deploy/jbossws.sar
[copy] Copying 11 files to /root/jbossws-native-bin-dist/output/deploy-jboss423/server/default/deploy/jbossws.sar
[unzip] Expanding: /root/jbossws-native-bin-dist/deploy/lib/jbossws-native-management.war into /root/jbossws-native-bin-dist/output/deploy-jboss423/server/default/deploy/jbossws.sar/jbossws-management.war
[copy] Copying 1 file to /root/jbossws-native-bin-dist/output/deploy-jboss423/server/default/deploy/jbossws.sar/jbossws.beans
[copy] Copying 5 files to /root/jbossws-native-bin-dist/output/deploy-jboss423/server/default/deploy/jbossws.sar/META-INF
[mkdir] Created dir: /root/jbossws-native-bin-dist/output/deploy-jboss423/server/default/deploy/juddi-service.sar
[unzip] Expanding: /root/jbossws-native-bin-dist/deploy/lib/juddi-service.sar into /root/jbossws-native-bin-dist/output/deploy-jboss423/server/default/deploy/juddi-service.sar
[copy] Copying 2 files to /root/jbossws-native-bin-dist/output/deploy-jboss423/server/default/deploy/juddi-service.sar
deploy-jboss423:
[copy] Copying 79 files to /root/jboss-4.2.3.GA
[copy] Copied 30 empty directories to 2 empty directories under /root/jboss-4.2.3.GA
BUILD SUCCESSFUL
Total time: 3 seconds -
11. Re: WS-Addressing in native stack
mobaxkrs Mar 25, 2009 5:43 AM (in response to mobaxkrs)In ant.properties, i changed
jbossws.integration.target=jboss423
# The JBoss settings
jboss.server.instance=default
jboss.bind.address=200.201.202.159
and run the tests
below is portion of log
2009-03-25 15:10:34,174 DEBUG [sun.rmi.loader:65] main: name = "org.jnp.server.NamingServer_Stub", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,183 DEBUG [sun.rmi.loader:65] main: name = "java.rmi.server.RemoteStub", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,191 DEBUG [sun.rmi.loader:65] main: name = "java.rmi.server.RemoteObject", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,219 DEBUG [sun.rmi.transport.tcp:65] main: localHostKnown = false, localHost = 127.0.0.1
2009-03-25 15:10:34,274 DEBUG [sun.rmi.client.ref:65] main: get connection
2009-03-25 15:10:34,275 DEBUG [sun.rmi.transport.tcp:65] main: Version = 2, ep = [127.0.0.1:0]
2009-03-25 15:10:34,277 DEBUG [sun.rmi.transport.tcp:65] main: created local endpoint for socket factory null on port 0
2009-03-25 15:10:34,279 DEBUG [sun.rmi.transport.tcp:65] main: create connection
2009-03-25 15:10:34,280 DEBUG [sun.rmi.transport.tcp.proxy:65] main: host: 200.201.202.159, port: 1098
2009-03-25 15:10:34,285 DEBUG [sun.rmi.transport.tcp:65] main: local host set to 200.201.202.159
2009-03-25 15:10:34,308 DEBUG [sun.rmi.loader:65] main: name = "java.rmi.dgc.Lease", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,310 DEBUG [sun.rmi.loader:65] main: name = "java.rmi.dgc.VMID", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,312 DEBUG [sun.rmi.loader:65] main: name = "[B", codebase = "", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,314 DEBUG [sun.rmi.loader:65] main: name = "java.rmi.server.UID", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,316 DEBUG [sun.rmi.client.ref:65] main: free connection (reuse = true)
2009-03-25 15:10:34,320 DEBUG [sun.rmi.transport.tcp:65] main: reuse connection
2009-03-25 15:10:34,322 DEBUG [sun.rmi.transport.tcp:65] main: create reaper
2009-03-25 15:10:34,326 DEBUG [sun.rmi.transport.tcp:65] main: reuse connection
2009-03-25 15:10:34,340 DEBUG [sun.rmi.loader:65] main: name = "org.jnp.interfaces.MarshalledValuePair", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,344 DEBUG [sun.rmi.loader:65] main: name = "java.rmi.MarshalledObject", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,348 DEBUG [sun.rmi.loader:65] main: name = "[B", codebase = "", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,349 DEBUG [sun.rmi.client.ref:65] main: free connection (reuse = true)
2009-03-25 15:10:34,350 DEBUG [sun.rmi.transport.tcp:65] main: reuse connection
2009-03-25 15:10:34,351 DEBUG [sun.rmi.loader:65] main: interfaces = [org.jboss.jmx.adaptor.rmi.RMIAdaptor, org.jboss.jmx.adaptor.rmi.RMIAdaptorExt], codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,401 DEBUG [sun.rmi.loader:65] main: name = "java.lang.reflect.Proxy", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,416 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.proxy.ClientContainer", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,423 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.proxy.ClientMethodInterceptor", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,426 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.proxy.Interceptor", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,434 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.proxy.SecurityInterceptor", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,437 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,464 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.invocation.InvokerInterceptor", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,520 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.util.id.GUID", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,525 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.util.id.UID", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,528 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.util.id.VMID", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,534 DEBUG [sun.rmi.loader:65] main: name = "[B", codebase = "", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,536 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.util.platform.PID", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,541 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.invocation.InvocationContext", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,544 DEBUG [sun.rmi.loader:65] main: name = "java.util.HashMap", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,547 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.invocation.InvocationKey", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,551 DEBUG [sun.rmi.loader:65] main: name = "java.lang.Integer", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,553 DEBUG [sun.rmi.loader:65] main: name = "java.lang.Number", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,559 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,570 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.invocation.jrmp.server.JRMPInvoker_Stub", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,573 DEBUG [sun.rmi.loader:65] main: name = "java.rmi.server.RemoteStub", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,579 DEBUG [sun.rmi.loader:65] main: name = "java.rmi.server.RemoteObject", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,584 DEBUG [sun.rmi.client.ref:65] main: get connection
2009-03-25 15:10:34,585 DEBUG [sun.rmi.transport.tcp:65] main: create connection
2009-03-25 15:10:34,587 DEBUG [sun.rmi.transport.tcp.proxy:65] main: host: 200.201.202.159, port: 4444
2009-03-25 15:10:34,603 DEBUG [sun.rmi.loader:65] main: name = "java.rmi.dgc.Lease", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,605 DEBUG [sun.rmi.loader:65] main: name = "java.rmi.dgc.VMID", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,607 DEBUG [sun.rmi.loader:65] main: name = "[B", codebase = "", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,611 DEBUG [sun.rmi.loader:65] main: name = "java.rmi.server.UID", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,613 DEBUG [sun.rmi.client.ref:65] main: free connection (reuse = true)
2009-03-25 15:10:34,614 DEBUG [sun.rmi.transport.tcp:65] main: reuse connection
2009-03-25 15:10:34,616 DEBUG [sun.rmi.transport.tcp:65] main: create reaper
2009-03-25 15:10:34,638 DEBUG [org.jboss.security.SecurityAssociation:143] Using ThreadLocal: false
2009-03-25 15:10:34,649 DEBUG [sun.rmi.transport.tcp:65] main: reuse connection
2009-03-25 15:10:34,673 DEBUG [sun.rmi.loader:65] main: name = "java.rmi.MarshalledObject", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,675 DEBUG [sun.rmi.loader:65] main: name = "[B", codebase = "", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:34,676 DEBUG [sun.rmi.client.ref:65] main: free connection (reuse = true)
2009-03-25 15:10:34,676 DEBUG [sun.rmi.transport.tcp:65] main: reuse connection
2009-03-25 15:10:34,677 DEBUG [org.jboss.wsf.test.JBossWSTestSetup:109] Integration target: jboss423
2009-03-25 15:10:34,692 DEBUG [org.jboss.wsf.framework.DefaultSPIProvider:69] provide SPI 'class org.jboss.wsf.spi.invocation.SecurityAdaptorFactory'
2009-03-25 15:10:34,707 DEBUG [org.jboss.wsf.framework.DefaultSPIProvider:147] class org.jboss.wsf.spi.invocation.SecurityAdaptorFactory Implementation: org.jboss.wsf.container.jboss42.SecurityAdapterFactoryImpl@11bed71
2009-03-25 15:10:34,709 DEBUG [sun.rmi.transport.tcp:65] main: reuse connection
2009-03-25 15:10:35,244 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.jmx.connector.invoker.client.InvokerAdaptorException", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:35,246 DEBUG [sun.rmi.loader:65] main: name = "java.lang.Exception", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:35,247 DEBUG [sun.rmi.loader:65] main: name = "java.lang.Throwable", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:35,258 DEBUG [sun.rmi.loader:65] main: name = "[Ljava.lang.StackTraceElement;", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:35,265 DEBUG [sun.rmi.loader:65] main: name = "java.lang.StackTraceElement", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:35,271 DEBUG [sun.rmi.loader:65] main: name = "javax.management.MBeanException", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:35,272 DEBUG [sun.rmi.loader:65] main: name = "javax.management.JMException", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:35,280 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.deployment.DeploymentException", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:35,286 DEBUG [sun.rmi.loader:65] main: name = "org.jboss.util.NestedException", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:35,296 DEBUG [sun.rmi.loader:65] main: name = "javax.xml.ws.WebServiceException", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:35,298 DEBUG [sun.rmi.loader:65] main: name = "java.lang.RuntimeException", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:35,308 DEBUG [sun.rmi.client.call:65] main: outbound call received exception: [200.201.202.159:4444] exception:
org.jboss.jmx.connector.invoker.client.InvokerAdaptorException
at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:291)
at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
at sun.reflect.GeneratedMethodAccessor127.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy0.invoke(Unknown Source)
at org.jboss.wsf.test.TestDeployerJBoss.invokeMainDeployer(TestDeployerJBoss.java:90)
at org.jboss.wsf.test.TestDeployerJBoss.deploy(TestDeployerJBoss.java:65)
at org.jboss.wsf.test.JBossWSTestHelper.deploy(JBossWSTestHelper.java:67)
at org.jboss.wsf.test.JBossWSTestSetup.setUp(JBossWSTestSetup.java:117)
at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
2009-03-25 15:10:35,314 DEBUG [sun.rmi.client.ref:65] main: free connection (reuse = true)
2009-03-25 15:10:35,314 DEBUG [sun.rmi.transport.tcp:65] main: reuse connection
2009-03-25 15:10:35,335 DEBUG [org.jboss.util.NestedThrowable:140] org.jboss.util.NestedThrowable.parentTraceEnabled=true
2009-03-25 15:10:35,341 DEBUG [org.jboss.util.NestedThrowable:140] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2009-03-25 15:10:35,342 DEBUG [org.jboss.util.NestedThrowable:140] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2009-03-25 15:10:35,378 DEBUG [org.jboss.wsf.framework.DefaultSPIProvider:69] provide SPI 'class org.jboss.wsf.spi.invocation.SecurityAdaptorFactory'
2009-03-25 15:10:35,379 DEBUG [org.jboss.wsf.framework.DefaultSPIProvider:147] class org.jboss.wsf.spi.invocation.SecurityAdaptorFactory Implementation: org.jboss.wsf.container.jboss42.SecurityAdapterFactoryImpl@542529
2009-03-25 15:10:35,380 DEBUG [sun.rmi.transport.tcp:65] main: reuse connection
2009-03-25 15:10:35,403 DEBUG [sun.rmi.loader:65] main: name = "java.rmi.MarshalledObject", codebase = "http://200.201.202.159:8083/", defaultLoader = sun.misc.Launcher$AppClassLoader@17943a4
2009-03-25 15:10:35,404 DEBUG [sun.rmi.client.ref:65] main: free connection (reuse = true)
2009-03-25 15:10:35,405 DEBUG [sun.rmi.transport.tcp:65] main: reuse connection
2009-03-25 15:10:35,496 DEBUG [org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder:75] START buildMetaData: [service={http://org.jboss.ws/jaxws/context}EndpointService]
2009-03-25 15:10:35,584 DEBUG [org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory:100] parse: http://200.201.202.159:8080/jaxws-samples-context?wsdl -
12. Re: WS-Addressing in native stack
ropalka Mar 25, 2009 8:27 AM (in response to mobaxkrs)And when you leave jboss.bind.address=localhost?
-
13. Re: WS-Addressing in native stack
mobaxkrs Mar 25, 2009 8:50 AM (in response to mobaxkrs)Thank God. It worked..
1. Used wsconsume.sh from another version of jboss
mobicents-all-1.2.0.CR3-jboss-4.2.3.GA-0812022325
2. Included all jars that you referred in the compile command.
3. Added wsdl4j.jar, xercesImpl.jar
The sample worked!! With web service trace enabled, i get the log
2009-03-25 18:15:17,684 TRACE [org.jboss.ws.core.MessageTrace] Incoming Request Message
<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<env:Header xmlns:wsa='http://www.w3.org/2005/08/addressing'>
<wsa:Action>helloWorld</wsa:Action>
</env:Header>
<env:Body>
<ns1:helloWorld xmlns:ns1='http://www.jboss.org/jbossws/ws-extensions/wsaddressing'>
KRS, Great Job
</ns1:helloWorld>
</env:Body>
</env:Envelope>
2009-03-25 18:15:17,694 TRACE [org.jboss.ws.core.MessageTrace] Outgoing Response Message
<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<env:Header xmlns:wsa='http://www.w3.org/2005/08/addressing'>
<wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
<wsa:Action>http://www.jboss.org/jbossws/ws-extensions/wsaddressing/SampleWebServicePort/helloWorldResponse</wsa:Action>
</env:Header>
<env:Body>
<ns2:helloWorldResponse xmlns:ns2='http://www.jboss.org/jbossws/ws-extensions/wsaddressing'>
Hello Welcome, KRS, Great Job
</ns2:helloWorldResponse>
</env:Body>
</env:Envelope>
Thanks a lot.. Richard
Now, next step is provide an id to identify the request and get the id in response.
Also, if i could work out a POC for Records Management Framework, that would be great. -
14. Re: WS-Addressing in native stack
ropalka Mar 25, 2009 10:09 AM (in response to mobaxkrs)Finally success ;)