[ 
https://issues.apache.org/activemq/browse/SMXCOMP-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50145#action_50145
 ] 

Guillaume Nodet commented on SMXCOMP-465:
-----------------------------------------

The stax-api from servicemix specs handle OSGi in a specific way.  Each time a 
bundle is deployed, it is checked to see if it contains some META-INF/services 
entries and those are used to resolve the provider dynamically.  
Could you try again, making sure you use the latest (1.2.0) version of the 
servicemix specs, and defining the following system property
{code}
org.apache.servicemix.specs.debug=true
{code}

When the woodstox bundle is started (or when the stax-api bundle is started, 
depending on the order), you should see the following message:
{code}
Specs(xxx): checking bundle yyy
Specs(xxx): registering service for key javax.xml.stream.XMLInputFactory with 
value zzz
{code}


> ClassNoDefFoundError in the 
> org.apache.servicemix.http.processors.ConsumerProcessor
> -----------------------------------------------------------------------------------
>
>                 Key: SMXCOMP-465
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-465
>             Project: ServiceMix Components
>          Issue Type: Bug
>            Reporter: Volodymyr Zhabiuk
>
> When the http request is processed by the ConsumerProcessor, the 
> implementation of the javax.xml.stream.XMLInputFactory can not be found
> Requested factory com.ctc.wstx.stax.WstxInputFactory cannot be located.  
> Classloader =org.eclipse.osgi.internal.baseadaptor.defaultclassloa...@145f5e3
>       at javax.xml.stream.FactoryLocator.loadFactory(FactoryLocator.java:126)
>       at javax.xml.stream.FactoryLocator.locate(FactoryLocator.java:115)
>       at javax.xml.stream.FactoryLocator.locate(FactoryLocator.java:51)
>       at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:41)
>       at 
> org.apache.servicemix.soap.marshalers.SoapMarshaler.getInputFactory(SoapMarshaler.java:92)
>       at 
> org.apache.servicemix.soap.marshalers.SoapReader.readSoapUsingStax(SoapReader.java:162)
>       at 
> org.apache.servicemix.soap.marshalers.SoapReader.read(SoapReader.java:89)
>       at 
> org.apache.servicemix.soap.marshalers.SoapReader.read(SoapReader.java:76)
>       at 
> org.apache.servicemix.http.processors.ConsumerProcessor.createContext(ConsumerProcessor.java:231)
>       at 
> org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcessor.java:158)
>       at 
> org.apache.servicemix.http.HttpBridgeServlet.service(HttpBridgeServlet.java:56)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>       at 
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
>       at 
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
>       at 
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>       at 
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>       at 
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>       at 
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>       at org.mortbay.jetty.Server.handle(Server.java:324)
>       at 
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
>       at 
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
>       at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
>       at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
> I have seen, that in other SMX projects you add  the 
> com.ctc.wstx.stax;resolution:=optional import statement. 
> I'm using the Apache ServiceMix Specs :: STAX API 1.0 bundle

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