Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 57163 invoked from network); 13 Nov 2008 13:20:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2008 13:20:40 -0000 Received: (qmail 14517 invoked by uid 500); 13 Nov 2008 13:20:48 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 14496 invoked by uid 500); 13 Nov 2008 13:20:48 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 14484 invoked by uid 99); 13 Nov 2008 13:20:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Nov 2008 05:20:48 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Nov 2008 13:19:27 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1L0c7E-0002cx-K0 for camel-user@activemq.apache.org; Thu, 13 Nov 2008 05:20:08 -0800 Message-ID: <20480671.post@talk.nabble.com> Date: Thu, 13 Nov 2008 05:20:08 -0800 (PST) From: Matteo Redaelli To: camel-user@activemq.apache.org Subject: Re: Xstream and missing jars In-Reply-To: <491BEC5D.2070508@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: matteo.redaelli@libero.it References: <20462398.post@talk.nabble.com> <20463050.post@talk.nabble.com> <5380c69c0811120933i17294ce2n610464be09d487ba@mail.gmail.com> <20476786.post@talk.nabble.com> <491BEC5D.2070508@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Yes, now the route works with the new dependency ... It could be useful to update the documentation/wiki with this information or include the dependency automatically in camel-xstream ... Do I have to open a ticket for it? Many Thanks willem.jiang wrote: > > Hi, > > It looks you are missing the stax implementation jars. > How about adding this dependency into you pom ? > > > org.codehaus.woodstox > wstx-asl > 3.2.7 > > > > Willem > > > Matteo Redaelli wrote: >> Yes, I use camel 1.5.0 and maven 2.0.9. And the project was created with >> >> mvn archetype:create \ >> -DarchetypeGroupId=org.apache.camel.archetypes \ >> -DarchetypeArtifactId=camel-archetype-activemq \ >> -DarchetypeVersion=1.5.0 \ >> -DgroupId=XX \ >> -DartifactId=XXXX >> >> >> >> org.apache.camel >> camel-xstream >> ${camel-version} >> >> >> org.apache.camel >> camel-jdbc >> ${camel-version} >> >> >> >> Claus Ibsen-2 wrote: >>> Hi >>> >>> You might need some more classes on your classpath. Are you using >>> maven or how do you resolve which .jars to use? >>> >>> >>> On Wed, Nov 12, 2008 at 4:50 PM, Matteo Redaelli >>> wrote: >>>> I have some problem with xstream >>>> >>>> "Provider com.bea.xml.stream.XMLOutputFactoryBase not found" >>>> >>>> With this configuration >>>> >>>> >>>> >>> uri="activemq:topic:pirelli.upms.sql.response" /> >>>> >>>> >>>> >>>> >>>> I get >>>> SEVERE: Failed delivery for exchangeId: >>>> ID-nowar.redaelli.org/42770-1226504836182/0-2. On delivery attempt: 1 >>>> caught: javax.xml.stream.FactoryConfigurationError: Provider >>>> com.bea.xml.stream.XMLOutputFactoryBase not found >>>> javax.xml.stream.FactoryConfigurationError: Provider >>>> com.bea.xml.stream.XMLOutputFactoryBase not found >>>> at >>>> javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72) >>>> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176) >>>> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92) >>>> at >>>> javax.xml.stream.XMLOutputFactory.newInstance(XMLOutputFactory.java:98) >>>> at >>>> org.apache.camel.converter.jaxp.StaxConverter.getOutputFactory(StaxConverter.java:127) >>>> at >>>> org.apache.camel.converter.jaxp.StaxConverter.createXMLStreamWriter(StaxConverter.java:63) >>>> at >>>> org.apache.camel.dataformat.xstream.XStreamDataFormat.createHierarchicalStreamWriter(XStreamDataFormat.java:125) >>>> at >>>> org.apache.camel.dataformat.xstream.XStreamDataFormat.marshal(XStreamDataFormat.java:81) >>>> at >>>> org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:49) >>>> at >>>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:75) >>>> at >>>> org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:172) >>>> at >>>> org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:93) >>>> at >>>> org.apache.camel.processor.Pipeline.process(Pipeline.java:115) >>>> at org.apache.camel.processor.Pipeline.process(Pipeline.java:89) >>>> at >>>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:63) >>>> at >>>> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:47) >>>> at >>>> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41) >>>> at >>>> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66) >>>> at >>>> org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:72) >>>> at >>>> org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:531) >>>> at >>>> org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:466) >>>> at >>>> org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:435) >>>> at >>>> org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:322) >>>> at >>>> org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:260) >>>> at >>>> org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:944) >>>> at >>>> org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:875) >>>> at java.lang.Thread.run(Thread.java:595) >>>> Nov 12, 2008 4:47:20 PM org.apache.camel.processor.Logger log >>>> >>>> >>>> >>>> >>>> RomKal wrote: >>>>> Hello Matteo! >>>>> >>>>> Isn't it enough to use >>>>> >>>>> marshal(xstream) >>>>> >>>>> in your flow? >>>>> >>>>> Romek >>>>> >>>>> 2008/11/12 Matteo Redaelli : >>>>>> According to the documentation, the output of camel-jdbc is >>>>>> ArrayList>. Is there a faster way to convert >>>>>> it >>>>>> into xml (es values...) than >>>>>> splitting it and use xpath/xquery ... >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> View this message in context: >>>>>> http://www.nabble.com/camel-jdbc%3A-converting-ArrayList%3CHashMap%3CString%2C-Object%3E%3E-to-xml--tp20462398s22882p20462398.html >>>>>> Sent from the Camel - Users mailing list archive at Nabble.com. >>>>>> >>>>>> >>>>> >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/camel-jdbc%3A-converting-ArrayList%3CHashMap%3CString%2C-Object%3E%3E-to-xml--tp20462398s22882p20463050.html >>>> Sent from the Camel - Users mailing list archive at Nabble.com. >>>> >>>> >>> >>> >>> -- >>> >>> /Claus Ibsen >>> Apache Camel Committer >>> Blog: http://davsclaus.blogspot.com/ >>> >>> >> > > > -- View this message in context: http://www.nabble.com/camel-jdbc%3A-converting-ArrayList%3CHashMap%3CString%2C-Object%3E%3E-to-xml--tp20462398s22882p20480671.html Sent from the Camel - Users mailing list archive at Nabble.com.