[
https://issues.apache.org/activemq/browse/SMXCOMP-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50023#action_50023
]
Volodymyr Zhabiuk commented on SMXCOMP-465:
-------------------------------------------
About the woodstox implementation:
in the javax.xml.stream.XMLInputFactory
{code}
public static XMLInputFactory newInstance()
throws FactoryConfigurationError {
// We'll assume the XMLInputFactory from the RI as a backup.
return
(XMLInputFactory)FactoryLocator.locate("javax.xml.stream.XMLInputFactory",
"com.ctc.wstx.stax.WstxInputFactory");
}
{code}
"com.ctc.wstx.stax.WstxInputFactory" is used if there is no system property
javax.xml.stream.XMLInputFactory or the
META-INF/services/javax.xml.stream.XMLInputFactory file can not be located in
the classpath
about: Did you deploy that bundle and removed it later ?
Sorry, but didn't understand the question. I deployed the http bundle. Run the
sample and saw the ClassNoDefFoundError. After that I performed exit command in
equinox, modified http bundle, restarted osgi env and run the sample again
> 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.