Spring Javaconfig example not running in Fuse
jaderss Apr 16, 2014 4:03 PMHi all,
I'm trying to run the camel-example-spring-javaconfig in fuse, but it not working. Running outside, with mvn:camel run it works fine.
During the test phase in Maven, it's working:
..
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Camel :: Example :: Spring :: JavaConfig 2.13.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ camel-example-spring-javaconfig ---
[INFO] Deleting D:\...\workspace-esb\examples\camel-example-spring-javaconfig\target
[INFO]
[INFO] >>> maven-provision-plugin:1.31:provision (default-cli) @ camel-example-spring-javaconfig >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ camel-example-spring-javaconfig ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ camel-example-spring-javaconfig ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to D:\...\workspace-esb\examples\camel-example-spring-javaconfig\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ camel-example-spring-javaconfig ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\...\workspace-esb\examples\camel-example-spring-javaconfig\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @@ camel-example-spring-javaconfig ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to D:\...\workspace-esb\examples\camel-example-spring-javaconfig\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ camel-example-spring-javaconfig ---
[INFO] Surefire report directory: D:\...\workspace-esb\examples\camel-example-spring-javaconfig\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.camel.example.spring.javaconfig.IntegrationTest
2014-04-16 16:40:57,740 [main ] INFO ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@13ecbac8: startup date [Wed Apr 16 16:40:57 BRT 2014]; root of context hierarchy
2014-04-16 16:40:57,815 [main ] INFO XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/spring/camel-context.xml]
2014-04-16 16:40:58,250 [main ] INFO ClassPathXmlApplicationContext - Bean 'org.apache.camel.example.spring.javaconfig.MyRouteConfig#0' of type [class org.apache.camel.example.spring.javaconfig.MyRouteConfig$$EnhancerBySpringCGLIB$$82292e49] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2014-04-16 16:40:58,296 [main ] INFO DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5b518f00: defining beans [org.apache.camel.example.spring.javaconfig.MyRouteConfig#0,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,route,routes,camelBeanPostProcessor,camelContext]; root of factory hierarchy
2014-04-16 16:40:58,689 [main ] INFO SpringCamelContext - Apache Camel 2.13.0 (CamelContext: camel-1) is starting
2014-04-16 16:40:58,689 [main ] INFO ManagedManagementStrategy - JMX is enabled
2014-04-16 16:40:58,870 [main ] INFO DefaultTypeConverter - Loaded 176 type converters
2014-04-16 16:40:59,048 [main ] INFO SpringCamelContext - AllowUseOriginalMessage is enabled. If access to the original message is not needed, then its recommended to turn this option off as it may improve performance.
2014-04-16 16:40:59,048 [main ] INFO SpringCamelContext - StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
2014-04-16 16:40:59,052 [main ] INFO FileEndpoint - Endpoint is configured with noop=true so forcing endpoint to be idempotent as well
2014-04-16 16:40:59,052 [main ] INFO FileEndpoint - Using default memory based idempotent repository with cache max size: 1000
2014-04-16 16:40:59,109 [main ] INFO FileEndpoint - Endpoint is configured with noop=true so forcing endpoint to be idempotent as well
2014-04-16 16:40:59,109 [main ] INFO FileEndpoint - Using default memory based idempotent repository with cache max size: 1000
2014-04-16 16:40:59,134 [main ] INFO SpringCamelContext - Route: route1 started and consuming from: Endpoint[file://src/data?noop=true]
2014-04-16 16:40:59,192 [main ] INFO BrokerService - Using Persistence Adapter: MemoryPersistenceAdapter
2014-04-16 16:40:59,393 [main ] INFO BrokerService - Apache ActiveMQ 5.9.0 (localhost.spring.javaconfig, ID:JS-Dell-56351-1397677259201-0:1) is starting
2014-04-16 16:40:59,400 [main ] INFO BrokerService - Apache ActiveMQ 5.9.0 (localhost.spring.javaconfig, ID:JS-Dell-56351-1397677259201-0:1) started
2014-04-16 16:40:59,400 [main ] INFO BrokerService - For help or more information please see: http://activemq.apache.org
2014-04-16 16:40:59,428 [main ] INFO TransportConnector - Connector vm://localhost.spring.javaconfig started
2014-04-16 16:40:59,450 [main ] INFO SpringCamelContext - Route: route2 started and consuming from: Endpoint[jms://test.MyQueue]
2014-04-16 16:40:59,454 [main ] INFO SpringCamelContext - Route: route3 started and consuming from: Endpoint[file://target/test?noop=true]
2014-04-16 16:40:59,455 [main ] INFO SpringCamelContext - Total 3 routes, of which 3 is started.
2014-04-16 16:40:59,458 [main ] INFO SpringCamelContext - Apache Camel 2.13.0 (CamelContext: camel-1) started in 0.768 seconds
Received: <?xml version="1.0" encoding="UTF-8"?>
<person user="james">
<firstName>James</firstName>
<lastName>Strachan</lastName>
<city>London</city>
</person>
Received: <?xml version="1.0" encoding="UTF-8"?>
<person user="hiram">
<firstName>Hiram</firstName>
<lastName>Chirino</lastName>
<city>Tampa</city>
</person>
2014-04-16 16:41:01,461 [main ] INFO ClassPathXmlApplicationContext - Closing org.springframework.context.support.ClassPathXmlApplicationContext@13ecbac8: startup date [Wed Apr 16 16:40:57 BRT 2014]; root of context hierarchy
2014-04-16 16:41:01,462 [main ] INFO DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5b518f00: defining beans [org.apache.camel.example.spring.javaconfig.MyRouteConfig#0,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,route,routes,camelBeanPostProcessor,camelContext]; root of factory hierarchy
2014-04-16 16:41:01,463 [main ] INFO SpringCamelContext - Apache Camel 2.13.0 (CamelContext: camel-1) is shutting down
2014-04-16 16:41:01,465 [main ] INFO DefaultShutdownStrategy - Starting to graceful shutdown 3 routes (timeout 300 seconds)
2014-04-16 16:41:01,474 [ - ShutdownTask] INFO DefaultShutdownStrategy - Route: route3 shutdown complete, was consuming from: Endpoint[file://target/test?noop=true]
2014-04-16 16:41:02,328 [ - ShutdownTask] INFO TransportConnector - Connector vm://localhost.spring.javaconfig stopped
2014-04-16 16:41:02,328 [ - ShutdownTask] INFO BrokerService - Apache ActiveMQ 5.9.0 (localhost.spring.javaconfig, ID:JS-Dell-56351-1397677259201-0:1) is shutting down
2014-04-16 16:41:02,349 [ - ShutdownTask] INFO BrokerService - Apache ActiveMQ 5.9.0 (localhost.spring.javaconfig, ID:JS-Dell-56351-1397677259201-0:1) uptime 3.166 seconds
2014-04-16 16:41:02,350 [ - ShutdownTask] INFO BrokerService - Apache ActiveMQ 5.9.0 (localhost.spring.javaconfig, ID:JS-Dell-56351-1397677259201-0:1) is shutdown
2014-04-16 16:41:02,351 [ - ShutdownTask] INFO DefaultShutdownStrategy - Route: route2 shutdown complete, was consuming from: Endpoint[jms://test.MyQueue]
2014-04-16 16:41:02,352 [ - ShutdownTask] INFO DefaultShutdownStrategy - Route: route1 shutdown complete, was consuming from: Endpoint[file://src/data?noop=true]
2014-04-16 16:41:02,352 [main ] INFO DefaultShutdownStrategy - Graceful shutdown of 3 routes completed in 0 seconds
2014-04-16 16:41:02,363 [main ] INFO SpringCamelContext - Apache Camel 2.13.0 (CamelContext: camel-1) uptime 3.676 seconds
2014-04-16 16:41:02,363 [main ] INFO SpringCamelContext - Apache Camel 2.13.0 (CamelContext: camel-1) is shutdown in 0.900 seconds
2014-04-16 16:41:02,383 [main ] INFO MainSupport - Apache Camel 2.13.0 starting
2014-04-16 16:41:02,391 [main ] INFO tationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@40757f83: startup date [Wed Apr 16 16:41:02 BRT 2014]; root of context hierarchy
2014-04-16 16:41:02,400 [main ] INFO tationConfigApplicationContext - Bean 'myRouteConfig' of type [class org.apache.camel.example.spring.javaconfig.MyRouteConfig$$EnhancerBySpringCGLIB$$82292e49] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2014-04-16 16:41:02,406 [main ] INFO DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@570add96: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,myRouteConfig,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,route,routes,camelContext,camelBeanPostProcessor]; root of factory hierarchy
2014-04-16 16:41:02,419 [main ] INFO SpringCamelContext - Apache Camel 2.13.0 (CamelContext: camel-2) is starting
2014-04-16 16:41:02,419 [main ] INFO ManagedManagementStrategy - JMX is enabled
2014-04-16 16:41:02,451 [main ] INFO DefaultTypeConverter - Loaded 176 type converters
2014-04-16 16:41:02,498 [main ] INFO SpringCamelContext - AllowUseOriginalMessage is enabled. If access to the original message is not needed, then its recommended to turn this option off as it may improve performance.
2014-04-16 16:41:02,498 [main ] INFO SpringCamelContext - StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
2014-04-16 16:41:02,499 [main ] INFO FileEndpoint - Endpoint is configured with noop=true so forcing endpoint to be idempotent as well
2014-04-16 16:41:02,499 [main ] INFO FileEndpoint - Using default memory based idempotent repository with cache max size: 1000
2014-04-16 16:41:02,546 [main ] INFO FileEndpoint - Endpoint is configured with noop=true so forcing endpoint to be idempotent as well
2014-04-16 16:41:02,546 [main ] INFO FileEndpoint - Using default memory based idempotent repository with cache max size: 1000
2014-04-16 16:41:02,557 [main ] INFO SpringCamelContext - Route: route4 started and consuming from: Endpoint[file://src/data?noop=true]
2014-04-16 16:41:02,559 [main ] INFO BrokerService - Using Persistence Adapter: MemoryPersistenceAdapter
2014-04-16 16:41:02,560 [main ] INFO BrokerService - Apache ActiveMQ 5.9.0 (localhost.spring.javaconfig, ID:JS-Dell-56351-1397677259201-0:2) is starting
2014-04-16 16:41:02,560 [main ] INFO BrokerService - Apache ActiveMQ 5.9.0 (localhost.spring.javaconfig, ID:JS-Dell-56351-1397677259201-0:2) started
2014-04-16 16:41:02,560 [main ] INFO BrokerService - For help or more information please see: http://activemq.apache.org
2014-04-16 16:41:02,562 [main ] INFO TransportConnector - Connector vm://localhost.spring.javaconfig started
2014-04-16 16:41:02,565 [main ] INFO SpringCamelContext - Route: route5 started and consuming from: Endpoint[jms://test.MyQueue]
2014-04-16 16:41:02,568 [main ] INFO SpringCamelContext - Route: route6 started and consuming from: Endpoint[file://target/test?noop=true]
2014-04-16 16:41:02,569 [main ] INFO SpringCamelContext - Total 3 routes, of which 3 is started.
2014-04-16 16:41:02,569 [main ] INFO SpringCamelContext - Apache Camel 2.13.0 (CamelContext: camel-2) started in 0.151 seconds
2014-04-16 16:41:02,570 [main ] INFO MainSupport - Waiting for: 2 SECONDS
Received: <?xml version="1.0" encoding="UTF-8"?>
<person user="james">
<firstName>James</firstName>
<lastName>Strachan</lastName>
<city>London</city>
</person>
Received: <?xml version="1.0" encoding="UTF-8"?>
<person user="hiram">
<firstName>Hiram</firstName>
<lastName>Chirino</lastName>
<city>Tampa</city>
</person>
2014-04-16 16:41:04,571 [main ] INFO MainSupport - Apache Camel 2.13.0 stopping
2014-04-16 16:41:04,571 [main ] INFO tationConfigApplicationContext - Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@40757f83: startup date [Wed Apr 16 16:41:02 BRT 2014]; root of context hierarchy
2014-04-16 16:41:04,572 [main ] INFO DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@570add96: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,myRouteConfig,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,route,routes,camelContext,camelBeanPostProcessor]; root of factory hierarchy
2014-04-16 16:41:04,572 [main ] INFO SpringCamelContext - Apache Camel 2.13.0 (CamelContext: camel-2) is shutting down
2014-04-16 16:41:04,573 [main ] INFO DefaultShutdownStrategy - Starting to graceful shutdown 3 routes (timeout 300 seconds)
2014-04-16 16:41:04,575 [ - ShutdownTask] INFO DefaultShutdownStrategy - Route: route6 shutdown complete, was consuming from: Endpoint[file://target/test?noop=true]
2014-04-16 16:41:04,728 [ - ShutdownTask] INFO TransportConnector - Connector vm://localhost.spring.javaconfig stopped
2014-04-16 16:41:04,729 [ - ShutdownTask] INFO BrokerService - Apache ActiveMQ 5.9.0 (localhost.spring.javaconfig, ID:JS-Dell-56351-1397677259201-0:2) is shutting down
2014-04-16 16:41:04,729 [ - ShutdownTask] INFO BrokerService - Apache ActiveMQ 5.9.0 (localhost.spring.javaconfig, ID:JS-Dell-56351-1397677259201-0:2) uptime 2.170 seconds
2014-04-16 16:41:04,730 [ - ShutdownTask] INFO BrokerService - Apache ActiveMQ 5.9.0 (localhost.spring.javaconfig, ID:JS-Dell-56351-1397677259201-0:2) is shutdown
2014-04-16 16:41:04,730 [ - ShutdownTask] INFO DefaultShutdownStrategy - Route: route5 shutdown complete, was consuming from: Endpoint[jms://test.MyQueue]
2014-04-16 16:41:04,730 [ - ShutdownTask] INFO DefaultShutdownStrategy - Route: route4 shutdown complete, was consuming from: Endpoint[file://src/data?noop=true]
2014-04-16 16:41:04,731 [main ] INFO DefaultShutdownStrategy - Graceful shutdown of 3 routes completed in 0 seconds
2014-04-16 16:41:04,738 [main ] INFO SpringCamelContext - Apache Camel 2.13.0 (CamelContext: camel-2) uptime 2.320 seconds
2014-04-16 16:41:04,738 [main ] INFO SpringCamelContext - Apache Camel 2.13.0 (CamelContext: camel-2) is shutdown in 0.166 seconds
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.201 sec
2014-04-16 16:41:04,743 [Thread-3 ] INFO MainSupport$HangupInterceptor - Received hang up - stopping the main instance.
Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ camel-example-spring-javaconfig ---
[INFO] Building jar: D:\...\workspace-esb\examples\camel-example-spring-javaconfig\target\camel-example-spring-javaconfig-2.13.0.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ camel-example-spring-javaconfig ---
[INFO] Installing D:\...\workspace-esb\examples\camel-example-spring-javaconfig\target\camel-example-spring-javaconfig-2.13.0.jar to C:\Users\Jader\.m2\repository\org\apache\camel\camel-example-spring-javaconfig\2.13.0\camel-example-spring-javaconfig-2.13.0.jar
[INFO] Installing D:\...\workspace-esb\examples\camel-example-spring-javaconfig\pom.xml to C:\Users\Jader\.m2\repository\org\apache\camel\camel-example-spring-javaconfig\2.13.0\camel-example-spring-javaconfig-2.13.0.pom
[INFO]
[INFO] <<< maven-provision-plugin:1.31:provision (default-cli) @ camel-example-spring-javaconfig <<<
[INFO]
[INFO] --- maven-provision-plugin:1.31:provision (default-cli) @ camel-example-spring-javaconfig ---
[INFO] Copying camel-example-spring-javaconfig-2.13.0.jar to D:\...\server\jboss-fuse-6.0.0.redhat-024\deploy\camel-example-spring-javaconfig-2.13.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.346 s
[INFO] Finished at: 2014-04-16T16:41:05-03:00
[INFO] Final Memory: 18M/225M
[INFO] ------------------------------------------------------------------------
...but when deploy in Jboss Fuse 6.0.0
[ 252] [Active ] [ ] [Failed ] [ 60] camel-example-spring-javaconfig (2.13.0)
...and the exception in Jboss Fuse log is:
16:28:00,097 | ERROR | ExtenderThread-2 | ContextLoaderListener | 132 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=camel-example-spring-javaconfig, config=osgibundle:/META-INF/spring/*.xml))
java.lang.IllegalStateException: Cannot load configuration class: org.apache.camel.example.spring.javaconfig.MyRouteConfig
at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:371)[106:org.springframework.context:3.1.3.RELEASE]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:246)[106:org.springframework.context:3.1.3.RELEASE]
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:479)[133:org.springframework.osgi.core:1.2.1]
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:467)[133:org.springframework.osgi.core:1.2.1]
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:395)[133:org.springframework.osgi.core:1.2.1]
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:281)[133:org.springframework.osgi.core:1.2.1]
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[133:org.springframework.osgi.core:1.2.1]
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[133:org.springframework.osgi.core:1.2.1]
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)[132:org.springframework.osgi.extender:1.2.1]
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[132:org.springframework.osgi.extender:1.2.1]
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[133:org.springframework.osgi.core:1.2.1]
at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)[132:org.springframework.osgi.extender:1.2.1]
at java.lang.Thread.run(Thread.java:744)[:1.7.0_51]
Caused by: java.lang.NoClassDefFoundError: net/sf/cglib/core/ReflectUtils
at org.apache.camel.example.spring.javaconfig.MyRouteConfig$$EnhancerByCGLIB$$106bbaf7.CGLIB$STATICHOOK1(<generated>)[252:camel-example-spring-javaconfig:2.13.0]
at org.apache.camel.example.spring.javaconfig.MyRouteConfig$$EnhancerByCGLIB$$106bbaf7.<clinit>(<generated>)[252:camel-example-spring-javaconfig:2.13.0]
at java.lang.Class.forName0(Native Method)[:1.7.0_51]
at java.lang.Class.forName(Class.java:270)[:1.7.0_51]
at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:386)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219)
at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
at net.sf.cglib.proxy.Enhancer.createClass(Enhancer.java:317)
at org.springframework.context.annotation.ConfigurationClassEnhancer.createClass(ConfigurationClassEnhancer.java:149)[106:org.springframework.context:3.1.3.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer.enhance(ConfigurationClassEnhancer.java:108)[106:org.springframework.context:3.1.3.RELEASE]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:361)[106:org.springframework.context:3.1.3.RELEASE]
... 12 more
Caused by: java.lang.ClassNotFoundException: net.sf.cglib.core.ReflectUtils not found by camel-example-spring-javaconfig [252]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_51]
... 23 more
...if anyone can help, please.
I need to create a project with basic configuration using spring, and defining routes with Java DSL.
Thanks a lot!