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

Reply via email to