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 3D995EED3 for ; Wed, 13 Feb 2013 14:56:09 +0000 (UTC) Received: (qmail 45668 invoked by uid 500); 13 Feb 2013 14:56:08 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 45627 invoked by uid 500); 13 Feb 2013 14:56:08 -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 45615 invoked by uid 99); 13 Feb 2013 14:56:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2013 14:56:08 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.223.176 as permitted sender) Received: from [209.85.223.176] (HELO mail-ie0-f176.google.com) (209.85.223.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2013 14:56:02 +0000 Received: by mail-ie0-f176.google.com with SMTP id k13so1736475iea.35 for ; Wed, 13 Feb 2013 06:55:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=klRBo+kdfpBWKFSJQLWjGuIMUCWeArNCLy6fInXpCfw=; b=NJnRMSUxhhhYNtLrzGxVbw7cpU7zVusYXRrq74Q2oUCAQO5WgvNqzRx++LohNAjw7c QfPlChDDn+klaZKajLU4w639p92BmKIDH/4+o9bRkbUWcYcDNM0sCHVD0o6rgzoAihPU 8s+prkrDOAN7VSUwRe1Muj8HAs0RZesxmjB+aFx50O1/YZyFxJ/Q3dKEvIKHtBnjAs/R GJVKRaIosCP1bP58m5CPEiUBBkoHL0UaVOQaw2JJW+WYtm35/JqnHOTU9984yAgEFxHz 9+gy2z6dGtPE2sqdMSEIy80KlcDI34h2C3kOFVBLqyxNPhCDsjZyc1VkZvQ8+TeOCwTe StdQ== X-Received: by 10.42.33.196 with SMTP id j4mr30700965icd.4.1360767341793; Wed, 13 Feb 2013 06:55:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.53.232 with HTTP; Wed, 13 Feb 2013 06:55:21 -0800 (PST) In-Reply-To: References: <1360764261456-5727501.post@n5.nabble.com> <1360764373926-5727502.post@n5.nabble.com> <1360767063140-5727513.post@n5.nabble.com> From: Claus Ibsen Date: Wed, 13 Feb 2013 15:55:21 +0100 Message-ID: Subject: Re: Dynamic XSL source - with 2.8.6 To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Feb 13, 2013 at 3:54 PM, Claus Ibsen wrote: > On Wed, Feb 13, 2013 at 3:51 PM, sammm wrote: >> Claus, >> >> thanks for that - i'd seen it and hoped it would do what i wanted but if >> errored in use. >> >> If i do this: >> >> >> > resultType="java.lang.String">concat('META-INF/xsl/',local-name(/*[local-name(.)='Envelope']/*[local-name(.)='Body']/*),'.xsl') >> >> >> >> When i run the route (using 'camel:run' with maven) i get a >> BeanDefinitionStoreException: >> >> Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: >> Unexpected exception parsing XML document from file >> [c:\dev\Workspaces\camel-rxservices\target\classes\META-INF\spring\camel-context.xml]; >> nested exception is >> java.lang.NullPointerException >> at >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412) >> >> i.e. its erroring as it's trying to replace the header ref - is there a way >> to do this in XML config or does it need to be dne via Java DSL? >> > > This is another kind of error. Make sure to use same version of Camel > and Spring in the classpath. > And also mind if you add JAXB on the classpath, then there is a 2.2 > for Java7 and 2.1 for Java6 etc. > Ah mind that Camel 2.9 does not support Java7. So you need to use Java6. Camel 2.10 onwards support Java 7. > > >> Thanks >> >> Martin >> >> >> >> >> -- >> View this message in context: http://camel.465427.n5.nabble.com/Dynamic-XSL-source-with-2-8-6-tp5727501p5727513.html >> Sent from the Camel - Users mailing list archive at Nabble.com. > > > > -- > 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