-
1. Re: FUSE 4.1 - camel-cxf - Provider Problem
socallag Jun 8, 2009 4:48 AM (in response to m_fawaz)In the CXF component a call is made to the javax.xml.soap.MessageFactory.newInstance() to create a SAAJ essageFactory.
It seems that it is picking up a SAAJ jar which has axis 2 burned into it.
Can you see what versions of saaj-api and saaj-impl.jar are on your classpath?
-
2. Re: FUSE 4.1 - camel-cxf - Provider Problem
m_fawaz Jun 8, 2009 5:21 AM (in response to socallag)Good Morning,
Thank you for your reply.
saaj-api version: 1.3
saaj-impl version: 1.3.2
Regards,
Mohamad
-
3. Re: FUSE 4.1 - camel-cxf - Provider Problem
socallag Jun 8, 2009 6:02 AM (in response to m_fawaz)These seem the correct versions jar, if you look into them are the classes com/sun or org/apache/axis2?
One possible solution is that you should make sure the sun classes are being used by usimng the following JVM switches:
-Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
-Djavax.xml.soap.MetaFactory=com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl
-Djavax.xml.soap.SOAPFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl
-
4. Re: FUSE 4.1 - camel-cxf - Provider Problem
m_fawaz Jun 8, 2009 9:52 AM (in response to socallag)Thank you for your reply.
Things changed. I got another error that i am not being able to find the solution for. It is still in the same context.
The new error message is:
org.apache.cxf.interceptor.Fault: Provider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found
at org.apache.cxf.jaxws.interceptors.DispatchInDatabindingInterceptor.handleMessage(DispatchInDatabindingInterceptor.java:182)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
Thank you for your help
Best Regards,
Mohamad
-
5. Re: FUSE 4.1 - camel-cxf - Provider Problem
socallag Jun 9, 2009 5:04 AM (in response to m_fawaz)You may need to update you applications pom.xml to make sure the saaj dependencies exist:
-
6. Re: FUSE 4.1 - camel-cxf - Provider Problem
m_fawaz Jun 9, 2009 5:20 AM (in response to socallag)Good Morning,
In fact, i tested with the following in the pom
i was not able to compile with "javax.xml.soap" as a groupId for the saaj-impl.
Please correct me if i am wrong.
Best Regards,
M.Fawaz
-
7. Re: FUSE 4.1 - camel-cxf - Provider Problem
socallag Jun 9, 2009 5:30 AM (in response to m_fawaz)My mistake, the group ID for saaj-impl should indeed be com.sun.xml.messaging.saaj
So it seems you can pickup and find these classes at compile time but not at runtime?
This point to some runtime configuration problem, you need to ensure these classes are available to the application.
-
8. Re: FUSE 4.1 - camel-cxf - Provider Problem
m_fawaz Jun 9, 2009 5:49 AM (in response to socallag)I did a list of trials by adding the following to the "Import-Package" in the pom. Unfortunately none was succesffull.
Trial 1:
com.sun.xml.messaging.saaj.soap
Trial 2:
com.sun.xml.messaging.saaj.soap.ver1_2
Do you have an idea of what to include in the "Import-Package"?
-
9. Re: FUSE 4.1 - camel-cxf - Provider Problem
socallag Jun 9, 2009 6:45 AM (in response to m_fawaz)Hi,
Can you attach your pom.xml?
Thanks,
Seán.
-
10. Re: FUSE 4.1 - camel-cxf - Provider Problem
m_fawaz Jun 9, 2009 7:57 AM (in response to socallag)Attached to this post, you will find my pom.xml
thank you
-
pom.xml 6.3 KB
-
-
11. Re: FUSE 4.1 - camel-cxf - Provider Problem
adrian.trenaman Jun 9, 2009 3:40 PM (in response to m_fawaz)Hi Sean, Mohamad,
I've taken a quick look at this, and am reproducing Mohamad's problem. Sounds like there's something wrong with the SAAJ API 1.3 bundle in FUSE ESB 4: surely it should be handling the loading of the correct provider?
Apache ServiceMix Specs :: SAAJ API 1.3 (1.3.0.fuse)
One thing that I can verify is that CXF routing is working fine using the POJO approach in FUSE 4.1 (I'm using it with a FUSE customer now). Clearly the POJO approach (using a JAX-WS SEI rather than a Provider interface) doesn't have these dependencies on SAAJ.
Best,
Ade
-
12. Re: FUSE 4.1 - camel-cxf - Provider Problem
m_fawaz Jun 10, 2009 5:52 AM (in response to adrian.trenaman)Adrian,
Thank you for your contribution.
Hoping to get a solution.
Best Regards,
Mohamad
-
13. Re: FUSE 4.1 - camel-cxf - Provider Problem
njiang Jun 10, 2009 11:48 PM (in response to m_fawaz)I just checked the cxf features file , we don't include the saaj-impl bundle, Can you install the bundle yourself and try again?
osgi/install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saaj-impl/1.3_1-fuse
-
14. Re: FUSE 4.1 - camel-cxf - Provider Problem
njiang Jun 11, 2009 1:06 AM (in response to njiang)Hi,
I just created a JIRA[1] for servicemix and submitted a patch for it.
https://issues.apache.org/activemq/browse/SMX4-302
Willem