[jboss-dev-forums] [JBoss Web Services Development] - Re: Problem with faults and classloaders in AS7

Alessio Soldano do-not-reply at jboss.com
Fri Jun 3 04:44:13 EDT 2011


Alessio Soldano [http://community.jboss.org/people/asoldano] created the discussion

"Re: Problem with faults and classloaders in AS7"

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

--------------------------------------------------------------
> Andrew Dinn wrote:
> 
> I found another glitch in the XTS interop demo which is als a package problem but it was masked by not seeing an exception on the client side. The interop tests creates a JaxWS proxy for the test Participant service which drives XTS and then asks it to run a test. In some cases it passes transaction details using a handler to serialise them into the message. My handler was failing with an NPE but the client proxy did not receive any exception. Is this normal behaviour?
> 
I don't think so, but I'd probably need to see more details / the code to better understand.

> The NPE was because the handler failes to create a JaxB context - the call is JAXBContext.newInstance(pkgname); The call throws an exception whose detail message is "Provider com.sun.xml.internal.bind.v2.ContextFactory not found" I assume this is because of a service lookup problem. I'll see if I can work out thow to fix this.
This looks like a problem with dependencies on a JAXB Impl module. Can you check what classloader is set as TCCL / is being used for resolution in JAXBContext.newInstance(..) when that's called by your handler? I guess a dependency on com.sun.xml.bind (with services=import) is missing somewhere.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/608482#608482]

Start a new discussion in JBoss Web Services Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2047]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110603/cf1fecb9/attachment.html 


More information about the jboss-dev-forums mailing list