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:compile
[INFO]    commons-logging:commons-logging:jar:1.1.1:compile
[INFO]    commons-logging:commons-logging-api:jar:1.1:compile
[INFO]    commons-pool:commons-pool:jar:1.4:compile
[INFO]    javax.activation:activation:jar:1.1:compile
[INFO]    javax.xml.bind:jaxb-api:jar:2.1:compile
[INFO]    javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO]    junit:junit:jar:3.8.2:test
[INFO]    org.apache.activemq:activeio-core:jar:3.1.0:compile
[INFO]    org.apache.activemq:activemq-core:jar:5.2.0:compile
[INFO]    org.apache.camel:camel-core:jar:1.6.1-SNAPSHOT:compile
[INFO]    org.apache.camel:camel-jms:jar:1.6.1-SNAPSHOT:compile
[INFO]    org.apache.camel:camel-spring:jar:1.6.1-SNAPSHOT:compile
[INFO]    
org.apache.geronimo.specs:geronimo-j2ee-management_1.0_spec:jar:1.1:compile
[INFO]    org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1:compile
[INFO]    org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile
[INFO]    org.springframework:spring-aop:jar:2.5.6:compile
[INFO]    org.springframework:spring-beans:jar:2.5.6:compile
[INFO]    org.springframework:spring-context:jar:2.5.6:compile
[INFO]    org.springframework:spring-context-support:jar:2.5.6:compile
[INFO]    org.springframework:spring-core:jar:2.5.6:compile
[INFO]    org.springframework:spring-jms:jar:2.5.6:compile
[INFO]    org.springframework:spring-tx:jar:2.5.6:compile

On Thu, Mar 5, 2009 at 9:53 AM, Claus Ibsen <claus.ib...@gmail.com> wrote:
> 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. <mathis.schwuc...@web.de> wrote:
>>
>> When I try to run the CamelJmsToFileExample, I get the exception below. Can
>> anyone help to figure out what went wrong?
>>
>> Cheers,
>> M.S:
>>
>> 04.03.2009 16:40:02 org.apache.camel.impl.DefaultCamelContext <init>
>> INFO: JMX enabled. Using InstrumentationLifecycleStrategy.
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/springframework/transaction/PlatformTransactionManager
>>        at
>> cameltest.CamelJmsToFileExample.main(CamelJmsToFileExample.java:50)
>> Caused by: java.lang.ClassNotFoundException:
>> org.springframework.transaction.PlatformTransactionManager
>>        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>        at java.security.AccessController.doPrivileged(Native Method)
>>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>        ... 1 more
>>
>> --
>> View this message in context: 
>> http://www.nabble.com/java.lang.NoClassDefFoundError-when-running-CamelJmsToFileExample-tp22341345p22341345.html
>> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/

Reply via email to