Re: java.lang.NoClassDefFoundError when running CamelJmsToFileExample

2009-03-05 Thread Claus Ibsen
On Thu, Mar 5, 2009 at 8:41 PM, m.s. wrote: > > Thanks for the clarification, working with Camel in a Maven project in > NetBeans works great. > Unfortunately, I have to use it in an Ant build project, so I have to care > for resolving the dependencies myself. Is there a way to help me doing this

Re: java.lang.NoClassDefFoundError when running CamelJmsToFileExample

2009-03-05 Thread m.s.
Thanks for the clarification, working with Camel in a Maven project in NetBeans works great. Unfortunately, I have to use it in an Ant build project, so I have to care for resolving the dependencies myself. Is there a way to help me doing this with Maven, e.g. by bundling all dependencies I need i

Re: java.lang.NoClassDefFoundError when running CamelJmsToFileExample

2009-03-05 Thread Willem Jiang
Yes. we don't ship all the dependencies in the binary distribution. Because Camel has lots of components if we ship all the dependency jars, the binary could be up to more than 100MB. Fortunately maven could help us to do that kind of work :) Willem m.s. wrote: > Thanks, it works when I use Maven

Re: java.lang.NoClassDefFoundError when running CamelJmsToFileExample

2009-03-05 Thread m.s.
Thanks, it works when I use Maven to download all the .jars listed in the dependency list and add them to the libraries in the NetBeans IDE. So is it correct that the binary distribution does not contain all dependencies if I use the JMS Component or aother component? M.S. -- View this message

Re: java.lang.NoClassDefFoundError when running CamelJmsToFileExample

2009-03-05 Thread Claus Ibsen
This is the dependecy reported by maven [INFO] [dependency:list] [INFO] [INFO] The following files have been resolved: [INFO]aopalliance:aopalliance:jar:1.0:compile [INFO]backport-util-concurrent:backport-util-concurrent:jar:2.1:compile [INFO]com.sun.xml.bind:jaxb-impl:jar:2.1.6:compil

Re: java.lang.NoClassDefFoundError when running CamelJmsToFileExample

2009-03-05 Thread Claus Ibsen
Hi Ah line 50 is the JMS component. You need the camel-jms on the classpath. And you also need activemq .jars as well. On Wed, Mar 4, 2009 at 11:48 PM, m.s. wrote: > > When I try to run the CamelJmsToFileExample, I get the exception below. Can > anyone help to figure out what went wrong? > > Ch

Re: java.lang.NoClassDefFoundError when running CamelJmsToFileExample

2009-03-05 Thread m.s.
I've downloaded the windows binaries for camel 1.6 and tried do run the example in the NetBeans IDE. I added the required jars to the libraries. I also tried to run the example with maven, but just got another error: [INFO]

Re: java.lang.NoClassDefFoundError when running CamelJmsToFileExample

2009-03-04 Thread willem.jiang
>From the stack trance you just need to the spring-tx into you class path. I just checked the camel 1.6 , we have the dependency of the spring-tx in the pom. Which version of camel are you using? And Did you use maven to run the test ? Willem m.s. wrote: > > When I try to run the CamelJmsToFil