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: Problem 2 when compiling sample from Camel package
Date Thu, 29 Jul 2010 10:13:00 GMT

I just create a JIRA[1] and committed a quick fix for it.
Please verify it  in Camel 2.5.0-SNAPSHOT.

[1]https://issues.apache.org/activemq/browse/CAMEL-3010

Willem
----------------------------------
Apache Camel, Apache CXF committer
Open Source Integration http://www.fusesource.com
Blog http://willemjiang.blogspot.com
Tiwtter http://twitter.com/willemjiang 


benxs 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"
> 
> 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-tp2256111p2256719.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message