Hi Richard, It seems that the bundle Apache ActiveMq Camel is not here or not well deployed on Karaf. Could you provide the list of bundles deployed on karaf please ?
Kind regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com twitter : http://twitter.com/cmoulliard Linkedlin : http://www.linkedin.com/in/charlesmoulliard Apache Camel Group : http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm On Tue, Mar 30, 2010 at 5:32 PM, Richard Slide <[email protected]>wrote: > Hello, > > I have downloaded the tutorial-osgi-camel-part2 and after modify > the camel version from <camel-version>2.1-SNAPSHOT</camel-version> > <camel-version>2.0.0</camel-version> > it compile. > > I have add org.apache.camel.example.reportincident.datasource.cfg in > C:\apache-felix-karaf-1.4.0\etc > > the file looks like this > driverClassName=com.mysql.jdbc.Driver > url=jdbc:mysql:///report > username=report > password=report > > the i following the online manual but after i have startup karaf Log say to > me the following things > org.springframework.beans.factory.CannotLoadBeanClassException: Error > loading class [org.apache.activemq.camel.component.ActiveMQComponent] for > bean with name 'active-mq' defined in URL > [bundle://57.0:0/META-INF/spring/osgi-queuingservice.xml]: problem with > class file or dependent class; nested exception is > java.lang.NoClassDefFoundError: > org.apache.activemq.camel.component.ActiveMQComponent not found from bundle > [Camel Queuing Service (reportincident.queueservice)] > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1144) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:758) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:422) > at > > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) > at > > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69) > at > > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355) > at > > org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) > at > > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320) > at > > org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136) > at java.lang.Thread.run(Thread.java:619) > Caused by: java.lang.NoClassDefFoundError: > org.apache.activemq.camel.component.ActiveMQComponent not found from bundle > [Camel Queuing Service (reportincident.queueservice)] > at > > org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:112) > at > > org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at org.springframework.util.ClassUtils.forName(ClassUtils.java:211) > at > > org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138) > > Could you tell me please what can I do for run the example ? > > Cheers > > --Richard >
