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 7752ED0D4 for ; Tue, 13 Nov 2012 14:06:45 +0000 (UTC) Received: (qmail 76179 invoked by uid 500); 13 Nov 2012 14:06:45 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 76154 invoked by uid 500); 13 Nov 2012 14:06:44 -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 76141 invoked by uid 99); 13 Nov 2012 14:06:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2012 14:06:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2012 14:06:40 +0000 Received: by mail-lb0-f173.google.com with SMTP id gj3so6490221lbb.32 for ; Tue, 13 Nov 2012 06:06:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=PFmVIo0AHtos2nuHchThbcy63K4WvF2ljGx6+PMY5VI=; b=sCQnRjCd2K+2H+Sc4uQmE592bxzd+eGQewMzpVzufTKFyS0tNw/dMqas7cD8tWWKxT PdBt4lnlFnRrFYI2D8FW0F+29IQYtOEftuGvLBGQExMGfjdcWiHMPzkbxz2YouNet6fm PUeWOc1KWizM/m/+3g9ahDjdHbsrIthqDZXZ3/i8O90gd0GDck2Dmua3DlVav/bcBfb7 R3AIVxSvv5/ejoktnnPB1Nf4GJ/4+sj/53dfw8Vh6UshOop/E4qttzP7T9rCGIA3DWjN rbLJdcPYJNFM/x3gRPLkEqnAv3ueDQGFhV8Zz5+fPavwqOcDLxtUukzhBLdyTpzZ3ntp kPOg== Received: by 10.152.135.41 with SMTP id pp9mr21898655lab.7.1352815578884; Tue, 13 Nov 2012 06:06:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.103.129 with HTTP; Tue, 13 Nov 2012 06:05:58 -0800 (PST) In-Reply-To: References: From: Claus Ibsen Date: Tue, 13 Nov 2012 15:05:58 +0100 Message-ID: Subject: Re: Saxon and saxon9he To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Though there is a SMX bundle as well http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.saxon/9.4.0.4_1/ The problem is that the SMX bundle doesn't contain all the files that the official JAR has. Its approx 9mb and the SMX bundle is much smaller. Though don't know what may or may not work in OSGi land then due the left out stuff. On Tue, Nov 13, 2012 at 3:02 PM, Claus Ibsen wrote: > The JAR is in SMX repo at > http://svn.apache.org/repos/asf/servicemix/m2-repo > > On Tue, Nov 13, 2012 at 2:39 PM, Bengt Rodehav wrote: >> 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* > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > FuseSource is now part of Red Hat > Email: cibsen@redhat.com > Web: http://fusesource.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cibsen@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen