Hi, It may relate to the class loader issue of ServiceMix3. Please check out this faq[1] for more information. [1] http://camel.apache.org/how-to-use-extra-camel-componets-in-servicemix-camel.html
Willem will mad wrote: > Hi, > > I work on a simple route using camel 1.6 : > > from("file://c://tmp/test/?delete=true").to("xquery:test.xquery"); > > Camel is deployed as a JBI component inside servicemix 3.3 > > When putting a file inside my “test” directory, I have sometimes the > following error: > > ERROR – DeadLetterChannel - Failed delivery for exchangeId: > ID-PARIS/3952-1239116022720/0-11. On delivery attempt: 0 caught: > org.apache.camel.RuntimeExpressionException: > java.lang.UnsupportedOperationException: *Saxon cannot write a DOMResult > unless saxon9-dom.jar is on the classpath* > > *org.apache.camel.RuntimeExpressionException: > java.lang.UnsupportedOperationException: Saxon cannot write a DOMResult > unless saxon9-dom.jar is on the classpath* > > at > org.apache.camel.component.xquery.XQueryBuilder.evaluate(XQueryBuilder.java:131) > > at > org.apache.camel.component.xquery.XQueryBuilder.process(XQueryBuilder.java:91) > > at > org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:92) > > at > org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:66) > > … > > > > I build my project using maven, and I have added the following dependencies: > > <dependency> > > <groupId>*org*.apache.servicemix</groupId> > > <artifactId>servicemix-camel</artifactId> > > <version>2009.01</version> > > </dependency> > > > > <dependency> > > <groupId>*org*.apache.camel</groupId> > > <artifactId>camel-*saxon*</artifactId> > > <version>${camel-version}</version> > > </dependency> > > > > <dependency> > > <groupId>*org*.apache.camel</groupId> > > <artifactId>camel-*jetty*</artifactId> > > <version>${camel-version}</version> > > </dependency> > > > > <dependency> > > <groupId>org.apache.camel</groupId> > > <artifactId>camel-spring</artifactId> > > <version>${camel-version}</version> > > </dependency> > > > > <dependency> > > <groupId>org.apache.camel</groupId> > > <artifactId>camel-*jms*</artifactId> > > <version>${camel-version}</version> > > </dependency> > > > > When I restart apache servicemix, I do not have the error anymore, but when > redeploying my archive, I have sometimes the issue again… > > Anyone has an idea on what can cause this error? > > > > Regards, > > William >