[JBossWS] - Class cast excpetion with an RM client
by bryan.kearney
I am attempting to test a RM client as a stand alone jar file using JbossWS-native against a service which is deployed in a Jboss 5.0 container. I have a simple client which I generated using wsconsume. I am following the directions from
http://jbossws.jboss.org/mediawiki/index.php?title=WS_Reliable_Messaging
and am adding the Addressing and RM Handlers to the client port. When I run (with only jars from $JBOSS_HOME/client on my classpath) I get the following exception:
javax.xml.ws.WebServiceException: java.lang.ClassCastException: com.sun.xml.ws.handler.SOAPMessageContextImpl cannot be cast to org.jboss.ws.core.CommonMessageContext
at com.sun.xml.ws.handler.ClientSOAPHandlerTube.callHandlersOnRequest(ClientSOAPHandlerTube.java:168)
at com.sun.xml.ws.handler.HandlerTube.processRequest(HandlerTube.java:100)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
at com.sun.xml.ws.client.Stub.process(Stub.java:235)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:120)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:230)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy27.runAction(Unknown Source)
I appear to be doing the same code as the samples. Are thee other examples I could look at?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207869#4207869
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207869
15 years, 10 months
[JBossWS] - Webservice Timeout
by redCar
Hallo,
I want to enlarge the JBoss-WS timeout for my application.
I use the WS from JBoss 5.0.0 GA
After getting the port with:
| org.opentrafficsystems.ots2.OTS2WebServices m_port = service.getOTS2WebSoapServices();
|
I set the timeout:
| ((BindingProvider) m_port).getRequestContext().put("org.jboss.ws.timeout", 1000 * 60 * 30);
|
But after 5 Minutes I get this exception:
javax.xml.ws.soap.SOAPFaultException: [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active!
| at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:171)
| at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:94)
| at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:240)
| at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
| at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
| at $Proxy32.tConnect(Unknown Source)
|
How can I enlarge the WS-Timeout?
Thanks,
Werner
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207421#4207421
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207421
15 years, 10 months
[JBossWS] - Propagate an attachment when using JBossWS as service proxy
by jorgemoralespou_2
Hi,
I know that probably the name of the topic is misleading, but my english is not as good as I would like.
I'm using JBossWS native 3.0.4 to make a service that acts as a proxy to access the same service in another server, but performing some policies.
I want to proxy a service that supports attachments, and I have made an northbound handler to get the attachment, and then setting the attachment in a southbound handler. The problem is how can I propagate this attachment from the northbound hadler to the southbound handler. I know probably this has nothing to do with JBossWS, but probably you people using JBossWS has had this same issue before.
I'm thinking of something like a Context that can be attached in the northbound, with the attachment, and freeing it in the southbound handler if message is propagated, or in the northbound handler if an error has ocurred before getting to this handler.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207055#4207055
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207055
15 years, 10 months