[ 
https://issues.apache.org/activemq/browse/SMX4-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46501#action_46501
 ] 

Freeman Fang commented on SMX4-138:
-----------------------------------

smx saaj api bundle always try to load axis2's saaj impl, even we aleady deploy 
smx saaj impl bundle, which use sun's saaj impl, so we see the error
Caused by: javax.xml.soap.SOAPException: Unable to create message factory for 
SOAP: Provider org.apache.axis2.saaj.MessageFactoryImpl not found
        at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:89)
        at 
org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor.handleMessage(SAAJOutInterceptor.java:80)

but if I specify the javax.xml.soap.MessageFactory as 
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl, I got error 
like
java.lang.NoClassDefFoundError: 
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl not found from 
bundle [Apache ServiceMix CXF Transport for OSGi 
(org.apache.servicemix.cxf.transport.osgi)]
        at 
org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:112)
        at 
org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at javax.xml.soap.FactoryFinder.newInstance(FactoryFinder.java:52)
        at javax.xml.soap.FactoryFinder.find(FactoryFinder.java:96)
        at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:85)
        at 
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:77)
This error just show up recently, everything is fine days ago.

> testSoapHandlerOsgi failed
> --------------------------
>
>                 Key: SMX4-138
>                 URL: https://issues.apache.org/activemq/browse/SMX4-138
>             Project: ServiceMix 4
>          Issue Type: Test
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 4.0-m2
>
>
> get exception like
>        at 
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:497)
> Caused by: javax.xml.soap.SOAPException: Unable to create message factory for 
> SOAP: Provider org.apache.axis2.saaj.MessageFactoryImpl not found
>         at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:89)
>         at 
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:77)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to