camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Problem 2 when compiling sample from Camel package
Date Wed, 28 Jul 2010 03:58:39 GMT
On Tue, Jul 27, 2010 at 7:40 PM, benxs <bxstover@yahoo.co.uk> wrote:
>
> I tried to compile a second example from the Camel package.
> I setup Java SE 1.6 for this. Anyway it gives an error with
> "NoClassDefFoundError: org/springframework/asm/ClassVisitor"
>

You need a spring jar on the classpath, most likely its named
spring-asm.jar or something like that.


> See below
>
> What does the warning at the top ("'includeantruntime' was not set") mean?
>
> Thank you
>
> Ben
>
> C:\Camel\v2.4.0\examples\camel-example-pojo-messaging>ant
> Buildfile: C:\Camel\v2.4.0\examples\camel-example-pojo-messaging\build.xml
>
> build.classes:
>    [javac] C:\Camel\v2.4.0\examples\common_build.xml:143: warning:
> 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
> to false for repeatable builds
>
> build.test:
>
> build:
>
> run:
>     [java] Exception in thread "main" java.lang.NoClassDefFoundError:
> org/springframework/asm/ClassVisitor
>     [java]     at org.springframework.context[
> main] MainSupport                    INFO  Apache Camel 2.4.0 starting
>     [java]
> .support.AbstractRefreshableApplicationContext.customizeBeanFactory(AbstractRefreshableApplicationContext.java:218)
>     [java]     at
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
>     [java]     at
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
>     [java]     at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
>     [java]     at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
>     [java]     at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
>     [java]     at
> org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:219)
>     [java]     at org.apache.camel.spring.Main.doStart(Main.java:173)
>     [java]     at
> org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:56)
>     [java]     at
> org.apache.camel.impl.MainSupport.run(MainSupport.java:114)
>     [java]     at
> org.apache.camel.impl.MainSupport.run(MainSupport.java:291)
>     [java]     at org.apache.camel.spring.Main.main(Main.java:97)
>     [java] Caused by: java.lang.ClassNotFoundException:
> org.springframework.asm.ClassVisitor
>     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>     [java]     at java.security.AccessController.doPrivileged(Native
> Method)
>     [java]     at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>     [java]     at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>     [java]     at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>     [java]     ... 12 more
>     [java] [                      Thread-0] Main$HangupInterceptor
> INFO  Received hang up - stopping the main instance.
>     [java] [                      Thread-0] MainSupport
> INFO  Apache Camel 2.4.0 stopping
>
> BUILD FAILED
> C:\Camel\v2.4.0\examples\camel-example-pojo-messaging\build.xml:41: The
> following error occurred while executing this line:
> C:\Camel\v2.4.0\examples\common_build.xml:185: Java returned: 1
>
> Total time: 1 second
> C:\Camel\v2.4.0\examples\camel-example-pojo-messaging>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Problem-2-when-compiling-sample-from-Camel-package-tp2256111p2256111.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message