I guess this should be added to camel-xstream as a dependency. I'll do this
now.
On Thu, Nov 13, 2008 at 9:50 AM, Matteo Redaelli
<[EMAIL PROTECTED]>wrote:
>
> 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 ?
> >
> > <dependency>
> > <groupId>org.codehaus.woodstox</groupId>
> > <artifactId>wstx-asl</artifactId>
> > <version>3.2.7</version>
> > </dependency>
> >
> >
> > 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
> >>
> >>
> >> <dependency>
> >> <groupId>org.apache.camel</groupId>
> >> <artifactId>camel-xstream</artifactId>
> >> <version>${camel-version}</version>
> >> </dependency>
> >> <dependency>
> >> <groupId>org.apache.camel</groupId>
> >> <artifactId>camel-jdbc</artifactId>
> >> <version>${camel-version}</version>
> >> </dependency>
> >>
> >>
> >> 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
> >>> <[EMAIL PROTECTED]> wrote:
> >>>> I have some problem with xstream
> >>>>
> >>>> "Provider com.bea.xml.stream.XMLOutputFactoryBase not found"
> >>>>
> >>>> With this configuration
> >>>>
> >>>> <route>
> >>>> <from
> >>>> uri="activemq:topic:pirelli.upms.sql.response" />
> >>>> <marshal><xstream /></marshal>
> >>>> <to uri="log:upmsDB" />
> >>>> </route>
> >>>>
> >>>> 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 <[EMAIL PROTECTED]>:
> >>>>>> According to the documentation, the output of camel-jdbc is
> >>>>>> ArrayList<HashMap<String, Object>>. Is there a faster way to
> convert
> >>>>>> it
> >>>>>> into xml (es <rows><row><field1>values</field1>...</row></rows>)
> 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.
>
>
--
Cheers,
Jon
http://janstey.blogspot.com/