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 0402DD84E for ; Tue, 13 Nov 2012 16:19:22 +0000 (UTC) Received: (qmail 53689 invoked by uid 500); 13 Nov 2012 16:19:21 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 53577 invoked by uid 500); 13 Nov 2012 16:19:21 -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 53542 invoked by uid 99); 13 Nov 2012 16:19:19 -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 16:19:19 +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 (nike.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 16:19:13 +0000 Received: by mail-lb0-f173.google.com with SMTP id gj3so6631888lbb.32 for ; Tue, 13 Nov 2012 08:18:52 -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=a3saOcpfWkw35AbSmqiW76V+vIX9QwTQAIVIaFWBBlA=; b=esZOuVe8Yswe2xNUj+C8qQs0+x/uqGeHv4gisnSfJ2ziUVzq72ngz/rZdVUt5L2V6D RYAyNfU31TOEm+3MZVop0MIXQj5pPyH7RryWiZFcPKvaH/mPQUr+eGyCt+lIpr0iWwmy PfZlvvpPUgORsJdJqf/LVCGjyK6sQIb/jDvjBxo04yEdwfBakCZGFoOm2S33FSMXAyiM F7iBmb0S4N/mY2r9pcOCoymmp1UWQj2tiiQDeEDPory8rM70qR2u6FcW986Ve2qIgeCL 6oSxmujwWQjlI0CqNsWMi+rnC+e8giP6cVCZU+SmqjddTZ1AZmi4ugPOscP/o9Uz/oeW IZBg== Received: by 10.112.14.107 with SMTP id o11mr9460182lbc.98.1352823532749; Tue, 13 Nov 2012 08:18:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.103.129 with HTTP; Tue, 13 Nov 2012 08:18:32 -0800 (PST) In-Reply-To: References: From: Claus Ibsen Date: Tue, 13 Nov 2012 17:18:32 +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 Hi Bengt Please keep us posted with your findings. There may be something we need to fix / do / document to make this easier / work. On Tue, Nov 13, 2012 at 3:38 PM, Bengt Rodehav wrote: > OK - thanks for the hint, > > /Bengt > > > 2012/11/13 Claus Ibsen > >> On Tue, Nov 13, 2012 at 3:22 PM, Bengt Rodehav wrote: >> > Thanks Claus. >> > >> > You don't happen to know anything about using Camel's xpath language >> within >> > Karaf? Should it be possible without resorting to Saxon? I couldn't see >> any >> > osgi tests regarding this. >> > >> >> Maybe try using the cxf.jre.properties from the 2.2.x Karaf releases, >> or the one from SMX. >> They have been prepared for XML stuff. >> >> Its usually something with those packages which should either be >> exporter or not. >> >> >> > /Bengt >> > >> > >> > 2012/11/13 Claus Ibsen >> > >> >> 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 >> >> >> >> >> >> -- >> 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