3 Replies Latest reply on Dec 9, 2009 8:35 PM by Willem Jiang

    Erro while starting a camel cxf application

    Lekan Omotayo Expert

      I had the error below while trying to install a camel cxf bundle.

       

      karaf@root> Exception in thread "SpringOsgiExtenderThread-64" java.lang.IllegalS

      tateException: BeanFactory not initialized or already closed - call 'refresh' be

      fore accessing beans via the ApplicationContext

              at org.springframework.context.support.AbstractRefreshableApplicationCon

      text.getBeanFactory(AbstractRefreshableApplicationContext.java:153)

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

      dencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextEx

      ecutor.java:345)

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

      dencyWaiterApplicationContextExecutor.fail(DependencyWaiterApplicationContextExe

      cutor.java:401)

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

      dencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContex

      tExecutor.java:287)

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

      dencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContext

      Executor.java:175)

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionAp

      plicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)

              at org.springframework.osgi.extender.internal.activator.ContextLoaderLis

      tener$2.run(ContextLoaderListener.java:718)

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

       

      Here is my camel-context.xml

       

       

         

       

      Any suggestion will be appreciated.