camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "willem.jiang" <willem.ji...@gmail.com>
Subject Re: java.lang.NoClassDefFoundError when running CamelJmsToFileExample
Date Thu, 05 Mar 2009 02:37:43 GMT

>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 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-tp22341345p22344204.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.


Mime
View raw message