It's my fault, I forgot to escape the xml letters in case using it in spring/blueprint! Thanks Claus!
-----Original Message----- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Thursday, April 10, 2014 2:49 PM To: users@camel.apache.org Subject: Re: Weather component uri problem in case using it in spring/blueprint Hi Is it because & must be escaped as & in XML ? eg &mode=xml On Thu, Apr 10, 2014 at 8:42 AM, XiLai Dai <xl...@talend.com> wrote: > Hi, > > With this blueprint configuration: > > <camelContext id="sample-context" > xmlns="http://camel.apache.org/schema/blueprint"> > <route id="sample-route"> > <from uri="weather:foo?location=London&mode=xml" /> > ....... > </route> > </camelContext> > > Will get build error: > [ERROR] Bundle org.talend.ipaas:camel-example-simple:bundle:0.0.1-SNAPSHOT : > Unexpected exception in processing spring r > esources(OSGI-INF/blueprint/blueprint.xml): > javax.xml.transform.TransformerException: javax.xml.transform.TransformerExc > eption: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: the > reference to "mode" must end with ";" > > but the same uri will work in java code without spring/blueprint. > > Is it an known issue or I'm missing something? Thanks > > Xilai Dai > -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/