Just a gamble here, but docs for the Mule-CXF transport seem to suggest
that CXF is picky on the SAAJ version it wants ([1], see "With Mule
Standalone" section.)  You may need to override the SAAJ version that
WebLogic is using.  How you do that is unfortunately quite JEE
server-dependent.  You may first want to try to run your SOAP client
standalone with whatever SAAJ jar WebLogic is using to confirm that that
is indeed the problem.

Another option (if trying to solve this is causing you too many
headaches) is to switch to GlassFish Metro for your client; they're
fairly similar and swappable.  The Ant build file in [2] below shows the
close similarities between the two.  No guarantees, though, you may have
similar or different problems with Metro.  (The Metro user's forum is
accessible at www.nabble.com.)

HTH,
Glen

[1] http://mule.mulesource.org/display/CXF/Setting+up+your+build+and
+classpath
[2] http://www.jroller.com/gmazza/entry/using_the_ebay_shopping_api1


Am Donnerstag, den 03.01.2008, 06:10 -0800 schrieb mjmjmj:
> I have a basic web service client which works as a standalone client. It is
> configured with the following spring beans :
> 
> <bean id="callNotificationClient"
>       factory-bean="callNotificationClientFactory" factory-method="create" />
> 
> <bean id="callNotificationClientFactory"
>       class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
>       <property name="serviceClass"
>       
> value="org.csapi.wsdl.parlayx.call_notification.v3_2._interface.CallNotification"
> />
>       <property name="address"
>       
> value="http://10.193.5.248:8080/CallNotificationService/services/CallNotification";
> />
> </bean>
> 
> When I try to integrate this client to an application deployed on a weblogic
> 9.2 server (with exactly the same beans definitions), I have the following
> exception :
> 
> javax.xml.ws.WebServiceException: Cannot create SAAJ factory instance.
>         at
> org.apache.cxf.jaxws.binding.soap.SOAPBindingImpl.getSOAPFactory(SOAPBindingImpl.java:118)
>         at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:151)
>         at $Proxy182.notifyAnswer(Unknown Source)
> Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory:
> Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
>         at javax.xml.soap.SOAPFactory.newInstance(Unknown Source)
>         at
> org.apache.cxf.jaxws.binding.soap.SOAPBindingImpl.getSOAPFactory(SOAPBindingImpl.java:113)
> 
> I dont understand where this exception comes from : 
> - is it normal that saaj is used there ?
> - I have added saaj to the webapp classloader but it is still not found !?
> 
> any ideas on how to configure cxf in this particular context ?
> 
> 
> 

Reply via email to