cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Liu, Jervis" <j...@iona.com>
Subject RE: JAX-WS Handlers conflict with JBoss client?
Date Mon, 24 Sep 2007 03:53:19 GMT
Hi you need to set messageFactory like this:

java.lang.System.setProperty("javax.xml.soap.MessageFactory","com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl");

Also see this discussion: http://www.nabble.com/Unable-to-create-message-factory-for-SOAP-tf4280273.html#a12196539

Cheers,
Jervis




> -----Original Message-----
> From: Yeroc [mailto:cplists@gmail.com]
> Sent: 2007?9?22? 6:45
> To: cxf-user@incubator.apache.org
> Subject: JAX-WS Handlers conflict with JBoss client?
> 
> 
> 
> All...
> 
> I'm trying to get handlers working on my JAX-WS service 
> without success.  I
> based my work off of the logging example that ships with CXF 
> v2.0.1.  My
> handler is registering fine and get called but I get the 
> following errors
> showing up in my Tomcat logs as soon as I call
> SOAPMessageContext.getMessage():
> 
> 2007-09-21 16:09:01,832 DEBUG [http-8081-Processor23]
> javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:
101): Cannot
> load factory: org.jboss.axis.soap.MessageFactoryImpl
> 2007-09-21 16:09:01,862 DEBUG [http-8081-Processor23]
> javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:
101): Cannot
> load factory: org.jboss.axis.soap.MessageFactoryImpl
> 
> Unfortunately, it doesn't print out a stack trace so I can't 
> really find the
> source of the problem.  I did notice though that the factory 
> it's using is
> org.jboss.axis.soap.MessageFactoryImpl rather than a CXF 
> factory which is
> likely the root of the problem.  My service accesses a remote 
> JBoss server
> so it has the jboss-client.jar included which contains this class.
> 
> Has anyone else run into this problem?  Does anyone know of a 
> solution?
> 
> Thanks,
> Corey
> -- 
> View this message in context: 
> http://www.nabble.com/JAX-WS-Handlers-conflict-with-JBoss-clie
> nt--tf4499015.html#a12831143
> Sent from the cxf-user mailing list archive at Nabble.com.
> 

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Mime
View raw message