[jboss-user] [JBoss Web Services] - getSoapHeader "crashes" in a JAR

Val Bou do-not-reply at jboss.com
Wed Jun 8 04:21:49 EDT 2011

Val Bou [http://community.jboss.org/people/valbou] created the discussion

"getSoapHeader "crashes" in a JAR"

To view the discussion, visit: http://community.jboss.org/message/609125#609125


I've created a web service using the Eclipse generation tool and also implemented a handler, using a JBOSS 5.1 server.

Everything works if the web service is in a WAR. However, I'd like it to be in a JAR used by a WAR (so that the JAR will be more easily used by other WARs). Of course, the WAR has a dependency on the JAR and my web service class is declared as a servlet in the web.xml of the WAR. The client side works but on the server side, the handleInbound(MessageContext msgContext) method of the handler crashes on the instruction : msg.getSOAPHeader(); where msg is a variable I got thanks to SOAPMessage msg = ((SOAPMessageContext) msgContext).getMessage();

When I say it crashes, I don't really know what's going on in fact since there is no exception. The msg variable is not empty and when I inspect msg.getSOAPHeader(), it displays "org.jboss.ws.core.soap.SOAPHeaderImpl at e9c517[[env:Header: null]]"  (the null is not abnormal: it returns the same result when my web service is in a WAR).

A debug "Step Into" makes it stop but not really : the client servlet is always waiting for the response and it finally displays an out of memory after some minutes.

It is weird. What could explain a such behaviour ?

Val Bou.

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110608/038430ce/attachment.html 

More information about the jboss-user mailing list