You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2008/10/15 04:48:52 UTC

[jira] Created: (SMX4-138) testSoapHandlerOsgi failed

testSoapHandlerOsgi failed
--------------------------

                 Key: SMX4-138
                 URL: https://issues.apache.org/activemq/browse/SMX4-138
             Project: ServiceMix 4
          Issue Type: Test
            Reporter: 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.


[jira] Commented: (SMX4-138) testSoapHandlerOsgi failed

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46527#action_46527 ] 

Guillaume Nodet commented on SMX4-138:
--------------------------------------

The problem is actually a bit tricky.
It actually come from SMX4KNL-119.
The reason is that the SAAJ jar imports some com.sun.org.apache packages that come with the JAXP ri from sun (which is included in the sun JRE).
For some reason (I guess it's a bug in felix), the bundle resolution does not always fail, but the wiring is not completely done, which means in our case, the saaj-api was not wired to the saaj-impl bundle, thus leading to a ClassNotFoundException on javax.xml.soap from saaj-impl bundle.
Anyway, reverting SMX4KNL-119 does the trick.

There is still one problem though.  The saaj-impl bundle do require the jaxp-ri packages (com.sun.org.apache.*) to be available.  Currently, this means that saaj only works on Sun JVMs.

> 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.


[jira] Commented: (SMX4-138) testSoapHandlerOsgi failed

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46463#action_46463 ] 

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

we should use sun's saaj-impl, but somehow the test try to load axis's impl cause this problem

> 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.


[jira] Commented: (SMX4-138) testSoapHandlerOsgi failed

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46503#action_46503 ] 

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

in the org.apache.servicemix.examples.IntegrationTest.txt, we only can see the exception like 
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
 at [row,col {unknown-source}]: [1,0]
        at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:686)
        at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)
        at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040)
        at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
        at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1095)
        at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:83)
        ... 56 more
but if redirect the output when run test mvn install  -Dtest=IntegrationTest > result.txt, we can see the real problem in result.txt is that when try to create saaj MessageFactory  , can't load the correct class.

> 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.


[jira] Reopened: (SMX4-138) testSoapHandlerOsgi failed

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet reopened SMX4-138:
----------------------------------


We need to use the SAAJ api from ServiceMix instead and this should do the trick and avoid hacking the bootstrap classloader.

> 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.


[jira] Assigned: (SMX4-138) testSoapHandlerOsgi failed

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang reassigned SMX4-138:
---------------------------------

    Assignee: Freeman Fang

> 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.


[jira] Closed: (SMX4-138) testSoapHandlerOsgi failed

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang closed SMX4-138.
-----------------------------

    Resolution: Fixed

we have SMX4-139 to track this issue when use not SUN's JVM

> 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.


[jira] Commented: (SMX4-138) testSoapHandlerOsgi failed

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46465#action_46465 ] 

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

found that the saaj api we are used for this test is geronimo-saaj_1.3_spec, in the MessageFactory, it will use 
private static final String DEFAULT_MESSAGE_FACTORY =
            "org.apache.axis2.saaj.MessageFactoryImpl";
as default impl.
we may need specify the property to pick the sun saaj impl

> 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.


[jira] Work started: (SMX4-138) testSoapHandlerOsgi failed

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on SMX4-138 started by Freeman Fang.

> 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.


[jira] Commented: (SMX4-138) testSoapHandlerOsgi failed

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Resolved: (SMX4-138) testSoapHandlerOsgi failed

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved SMX4-138.
-------------------------------

    Resolution: Fixed

commit fix
http://svn.apache.org/viewvc?rev=704856&view=rev

> 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.