FYI, I just posted a question on the Camel list as well although it was more about how to get Saxon to work with Camel.
/Bengt 2012/11/13 Bengt Rodehav <[email protected]> > I'm trying to use xpath from Camel 2.10.2 in Karaf 2.3.0. I get the > following exception: > > *2012-11-13 13:20:38,307 | ERROR | rfaces/fundorder | DefaultErrorHandler > | rg.apache.camel.util.CamelLogger 215 | Failed delivery for > (MessageId: ID-IT-D-FQR815J-56524-1352809143728-0-1 on ExchangeId: > ID-IT-D-FQR815J-56524-1352809143728-0-2). Exhausted after delivery attempt: > 1 caught: org.apache.camel.RuntimeExpressionException: Cannot create xpath > expression. Processed by failure processor: > FatalFallbackErrorHandler[Channel[Wrap[se.digia.connect.service.fundorder.FundOrderService$NotificationProcessor@7a587427] > -> > se.digia.connect.service.fundorder.FundOrderService$NotificationProcessor@7a587427 > ]]* > *org.apache.camel.RuntimeExpressionException: Cannot create xpath > expression* > * at > org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:689)[114:org.apache.camel.camel-core:2.10.2] > * > *...* > * at java.lang.Thread.run(Thread.java:662)[:1.6.0_32]* > *Caused by: java.lang.RuntimeException: XPathFactory#newInstance() failed > to create an XPathFactory for the default object model: > http://java.sun.com/jaxp/xpath/dom with the > XPathFactoryConfigurationException: > javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory > implementation found for the object model: > http://java.sun.com/jaxp/xpath/dom* > * at javax.xml.xpath.XPathFactory.newInstance(Unknown Source)[:2.1.0]* > * at > org.apache.camel.builder.xml.XPathBuilder.initDefaultXPathFactory(XPathBuilder.java:1046)[114:org.apache.camel.camel-core:2.10.2] > * > * at > org.apache.camel.builder.xml.XPathBuilder.getXPathFactory(XPathBuilder.java:424)[114:org.apache.camel.camel-core:2.10.2] > * > * at > org.apache.camel.builder.xml.XPathBuilder.createXPathExpression(XPathBuilder.java:829)[114:org.apache.camel.camel-core:2.10.2] > * > * at > org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:685)[114:org.apache.camel.camel-core:2.10.2] > * > * ... 44 more* > > I haven't posted this on the Camel list yet because I have a hunch that > this is about OSGi/Karaf. > > What xpath implementation should be used under Karaf? Am I required to do > something in a bundle that uses xpath (like importing certain packages?) > > /Bengt >
