Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 21E88DEC2 for ; Tue, 13 Nov 2012 13:40:05 +0000 (UTC) Received: (qmail 75653 invoked by uid 500); 13 Nov 2012 13:40:04 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 75305 invoked by uid 500); 13 Nov 2012 13:40:03 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 75262 invoked by uid 99); 13 Nov 2012 13:40:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2012 13:40:01 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bengt.rodehav@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-wg0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2012 13:39:52 +0000 Received: by mail-wg0-f51.google.com with SMTP id ed3so3694471wgb.20 for ; Tue, 13 Nov 2012 05:39:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=6FJMWFi7NDGUkaOitB8dMsmymuNzTPZOJong5W0h2lE=; b=qmWLIav8fPpHu2kaDWuiTlN7tGRPRFUXuMKZFrp6EV1yh2TIgzTRNAZZFG8O01ll8l cwVS07q/OpcoTjCem3SNkviqlwwnLdQ8G/di0WjIFLSzYzvxzsN+rppAlE4GOIClyBO2 D5/ANmc6Y8q9uYlp2DvN8fgce1zUQ74jIulUEqEegduf3STuhblTJX4ATl7eWmaVmQDZ m/hxgpu7dR9188mruLNOl3dtvnMwjCQzJ1dSktbJzrndVmiRBSTf8HAr/nkb3fq2zQbw JPnWDdU6QppzShMIXZ0OWsRPSCyBnzSu663NiD0dxUew+vQWIfp44NuL54ukFSPKajcb 0z/g== MIME-Version: 1.0 Received: by 10.180.99.97 with SMTP id ep1mr671080wib.12.1352813972770; Tue, 13 Nov 2012 05:39:32 -0800 (PST) Sender: bengt.rodehav@gmail.com Received: by 10.194.7.169 with HTTP; Tue, 13 Nov 2012 05:39:32 -0800 (PST) Date: Tue, 13 Nov 2012 14:39:32 +0100 X-Google-Sender-Auth: 65SEXS_QcxhQckuzWEB7nf94zzE Message-ID: Subject: Saxon and saxon9he From: Bengt Rodehav To: users@camel.apache.org Content-Type: multipart/alternative; boundary=f46d04428e764b4e2e04ce608c4e X-Virus-Checked: Checked by ClamAV on apache.org --f46d04428e764b4e2e04ce608c4e Content-Type: text/plain; charset=ISO-8859-1 I'm using Camel 2.10.2 on Karaf 2.3.0. I'm trying to use xpath but 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 have also posted a question regarding this on the Karaf mailing list to find out what xpath implementation should be used on Karaf (and how). However, looking at the Camel documentation, it seems like I can choose to use the Saxon implementation of xpath. So, I added camel-saxon as a dependency to my project. But, then I can't build because maven cannot find the artifact net.sf.saxon/saxon9he/9.3.0.11. I've searched maven central and it's not there. Do I have to configure any other repositories than maven central? * * */Bengt* --f46d04428e764b4e2e04ce608c4e--