2 Replies Latest reply on Feb 17, 2009 6:40 PM by Joe Alex

    Error Adding camel routes

    Joe Alex Newbie

      I am trying to add a simple camel route to ServiceMix 4 (Fuse 4.0.0.3)

       

      Tried both org.apache.camel.component.jms.JmsComponent and

           org.apache.activemq.camel.component.ActiveMQComponent

      and keep getting class not found error

       

      Later I tried just a simple bean

      Exception in thread "SpringOsgiExtenderThread-65" org.springframework.beans.factory

      .BeanCreationException: Error creating bean with name 'org.apache.cxf.resource.ResourceManager' defi

      ned in URL bundle://92.0:1/META-INF/cxf/cxf.xml: Initialization of bean failed; nested exception i

      s org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.acti

      vemq.camel.component.ActiveMQComponent] for bean with name 'jms1' defined in URL [bundle://243.0:0/M

      ETA-INF/spring/beans.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.activemq

      .camel.component.ActiveMQComponent not found from bundle

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean

      (AbstractAutowireCapableBeanFactory.java:480)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(Abstra

      ctAutowireCapableBeanFactory.java:409)

              at java.security.AccessController.doPrivileged(Native Method)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(A

      bstractAutowireCapableBeanFactory.java:380)

              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFac

      tory.java:264)

              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(Defau

      ltSingletonBeanRegistry.java:221)

              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFacto

      ry.java:261)

              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory

      .java:185)

              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory

      .java:164)

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingle

      tons(DefaultListableBeanFactory.java:429)

              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitializ

      ation(AbstractApplicationContext.java:729)

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.com

      pleteRefresh(AbstractDelegatedExecutionApplicationContext.java:276)

              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicati

      onContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:145)

              at java.lang.Thread.run(Thread.java:595)

      Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.ap

      ache.activemq.camel.component.ActiveMQComponent] for bean with name 'jms1' defined in URL [bundle://

      243.0:0/META-INF/spring/beans.xml]; nested exception is java.lang.ClassNotFoundException: org.apache

      .activemq.camel.component.ActiveMQComponent not found from bundle

       

      I have installed the features

      camel-core

      camel-spring

      camel-jms

       

      Please help