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: Camel 2.4.0 NoClassDefFoundError org/springframework/context/SmartLifecycle / appears in camel in action too.
Date Mon, 09 Aug 2010 08:13:28 GMT
In Camel 2.4.0 we switch to Spring 3.0.0RELEASE, and ActiveMQ-core is 
using spring context 2.5.6.
So you need to add dependency of spring-context 3.0.3 into to pom, not 
the camel-maven-plugin to override it.

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

Mark wrote:
> To reproduce:
> 
> mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes \
> -DarchetypeArtifactId=camel-archetype-activemq -DarchetypeVersion=2.4.0 \
> -DgroupId=myGroupId -DartifactId=myArtifactId
> 
> mvn clean camel:run
> ...
> Failed properties: Property 'brokerURL' threw exception; nested
> exception is java.lang.NoClassDefFoundError:
> org/springframework/context/SmartLifecycle
> ...
> 
> If you change the camel version property to 2.3.0 in pom then run:
> 
> mvn clean camel:run
> 
> It works.
> 
> What;s strange is that org/springframework/context/SmartLifecycle is
> on the classpath, as it's provided by
> 
> I tried to explicitly provide the class:
> 
> 			<plugin>
> 				<groupId>org.apache.camel</groupId>
> 				<artifactId>camel-maven-plugin</artifactId>
> 				<version>${camel-version}</version>
> 				<dependencies>
> 					<dependency>
> 						<groupId>org.springframework</groupId>
> 						<artifactId>spring-context</artifactId>
> 						<version>3.0.3.RELEASE</version>
> 					</dependency>
> 				</dependencies>
> 			</plugin>
> 
> 
> Still no joy;
> 
> I have also seen this issues with the examples for camel in action.
> 
> Any ideas / can someone else confirm?
> 
> Kind Regards
> 
> Mark
> 


Mime
View raw message