Re: webservice client does not work on weblogic 9.2
An easiest way to verify it is to put the saaj-impl-1.3.jar saaj-api-1.3.jar in the $Weblogic_Home/jdk_../jre/lib/endorsed (create it if it doesn't exist before). and then restart it to see if it works. This way is to make sure that saaj-impl-1.3.jar is in front of classpath. If it works, that means there are other saaj version in the classpath, and weblogic not pick up the saaj-impl-1.3.jar. Thanks Jeff mjmjmj wrote: Hi Jeff thanks for your response. I have already checked that saaj-impl-1.3.jar and saaj-api-1.3.jar are present in the war part of the ear i deployed. I have also added the following lines in the weblogic-application.xml DD file of the ear : prefer-application-packages package-namejavax.jws.*/package-name package-namejavax.xml.ws.*/package-name package-namecom.sun.xml.messaging.saaj.*/package-name /prefer-application-packages I can't figure out why the saaj package is not found. Is there anything else to check ? thanks, MJ Jeff Yu-4 wrote: Please check the saaj version in classpath, CXF shipped saaj-impl-1.3.jar and saaj-api-1.3.jar. It might be conflict with the weblogic one. Or you can check out the http://cwiki.apache.org/CXF20DOC/appserverguide.html to see how to integrate with Weblogic.
webservice client does not work on weblogic 9.2
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 ? -- View this message in context: http://www.nabble.com/webservice-client-does-not-work-on-weblogic-9.2-tp14597531p14597531.html Sent from the cxf-user mailing list archive at Nabble.com.
Re: webservice client does not work on weblogic 9.2
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 ?
Re: webservice client does not work on weblogic 9.2
Hi Please check the saaj version in classpath, CXF shipped saaj-impl-1.3.jar and saaj-api-1.3.jar. It might be conflict with the weblogic one. Or you can check out the http://cwiki.apache.org/CXF20DOC/appserverguide.html to see how to integrate with Weblogic. HTH Jeff mjmjmj wrote: 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 ?
Re: webservice client does not work on weblogic 9.2
Hi Jeff thanks for your response. I have already checked that saaj-impl-1.3.jar and saaj-api-1.3.jar are present in the war part of the ear i deployed. I have also added the following lines in the weblogic-application.xml DD file of the ear : prefer-application-packages package-namejavax.jws.*/package-name package-namejavax.xml.ws.*/package-name package-namecom.sun.xml.messaging.saaj.*/package-name /prefer-application-packages I can't figure out why the saaj package is not found. Is there anything else to check ? thanks, MJ Jeff Yu-4 wrote: Please check the saaj version in classpath, CXF shipped saaj-impl-1.3.jar and saaj-api-1.3.jar. It might be conflict with the weblogic one. Or you can check out the http://cwiki.apache.org/CXF20DOC/appserverguide.html to see how to integrate with Weblogic. -- View this message in context: http://www.nabble.com/webservice-client-does-not-work-on-weblogic-9.2-tp14597531p14612127.html Sent from the cxf-user mailing list archive at Nabble.com.