You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Charles Moulliard <cm...@gmail.com> on 2010/09/14 15:33:23 UTC
Strange issue with camel-2.5-SNASPOT
I redeploy the last snapshot of camel-2.5 on Karaf 2.5.0 and get this error :
karaf@root> Exception in thread "SpringOsgiExtenderThread-6"
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'formRequestREST' defi
ned in URL [bundle://202.0:0/META-INF/spring/camel-context.xml]:
Initialization of bean failed; nested exception is
org.apache.camel.ResolveEndpointFailedException: Faile
d to resolve endpoint: direct://webservice due to: No component found
with scheme: direct
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
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(DependencyWaiterApplicationC
ontextExecutor.java:136)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
resolve endpoint: direct://webservice due to: No component found with
scheme: direct
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:437)
at org.apache.camel.util.CamelContextHelper.getEndpointInjection(CamelContextHelper.java:138)
at org.apache.camel.impl.CamelPostProcessorHelper.getEndpointInjection(CamelPostProcessorHelper.java:137)
at org.apache.camel.impl.CamelPostProcessorHelper.createInjectionProducerTemplate(CamelPostProcessorHelper.java:180)
at org.apache.camel.impl.CamelPostProcessorHelper.getInjectionValue(CamelPostProcessorHelper.java:147)
at org.apache.camel.spring.CamelBeanPostProcessor.injectField(CamelBeanPostProcessor.java:246)
at org.apache.camel.spring.CamelBeanPostProcessor$2.doWith(CamelBeanPostProcessor.java:234)
at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:513)
at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:490)
at org.apache.camel.spring.CamelBeanPostProcessor.injectFields(CamelBeanPostProcessor.java:230)
at org.apache.camel.spring.CamelBeanPostProcessor.postProcessBeforeInitialization(CamelBeanPostProcessor.java:98)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.jav
a:394)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
I have stop / start and refresh the bundle where my camel route is
defined without success.
Remark : spring 3.0.4 bundles are installed
ID State Blueprint Spring Level Name
[ 21] [Active ] [Created ] [ ] [ 30] Apache Karaf ::
Spring Deployer (2.0.0)
[ 34] [Active ] [ ] [ ] [ 60] Spring ASM (3.0.4.RELEASE)
[ 35] [Active ] [ ] [ ] [ 60] Spring AOP (3.0.4.RELEASE)
[ 36] [Active ] [ ] [ ] [ 60] Spring Aspects
(3.0.4.RELEASE)
[ 37] [Active ] [ ] [ ] [ 60] Spring Core
(3.0.4.RELEASE)
[ 38] [Active ] [ ] [ ] [ 60] Spring Beans
(3.0.4.RELEASE)
[ 39] [Active ] [ ] [ ] [ 60] Spring Context
(3.0.4.RELEASE)
[ 40] [Active ] [ ] [ ] [ 60] Spring Context
Support (3.0.4.RELEASE)
[ 41] [Active ] [ ] [ ] [ 60] Spring
Expression Language (3.0.4.RELEASE)
[ 70] [Active ] [ ] [ ] [ 60] Spring
Transaction (3.0.4.RELEASE)
[ 167] [Active ] [ ] [ ] [ 60] Spring JMS (3.0.4.RELEASE)
[ 139] [Resolved ] [ ] [ ] [ 60] camel-core
(2.5.0.SNAPSHOT)
[ 147] [Active ] [ ] [ ] [ 60] camel-spring
(2.5.0.SNAPSHOT)
[ 148] [Active ] [ ] [ ] [ 60] camel-jaxb
(2.5.0.SNAPSHOT)
[ 151] [Active ] [ ] [ ] [ 60] camel-http
(2.5.0.SNAPSHOT)
[ 164] [Active ] [ ] [ ] [ 60] camel-jetty
(2.5.0.SNAPSHOT)
[ 201] [Active ] [ ] [ ] [ 60] camel-cxf (2.5.0.SNAPSHOT)
[ 202] [Active ] [ ] [Failed ] [ 60] camel-rest-soap
:: osgi (1.0)
Any idea is welcome ?
Re: Strange issue with camel-2.5-SNASPOT
Posted by Charles Moulliard <cm...@gmail.com>.
Forget my email. My camel-core bundle was not started. Shame on me.
On Tue, Sep 14, 2010 at 3:33 PM, Charles Moulliard <cm...@gmail.com> wrote:
> I redeploy the last snapshot of camel-2.5 on Karaf 2.5.0 and get this error :
>
> karaf@root> Exception in thread "SpringOsgiExtenderThread-6"
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'formRequestREST' defi
> ned in URL [bundle://202.0:0/META-INF/spring/camel-context.xml]:
> Initialization of bean failed; nested exception is
> org.apache.camel.ResolveEndpointFailedException: Faile
> d to resolve endpoint: direct://webservice due to: No component found
> with scheme: direct
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
> at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
> at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
> 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(DependencyWaiterApplicationC
> ontextExecutor.java:136)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
> resolve endpoint: direct://webservice due to: No component found with
> scheme: direct
> at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:437)
> at org.apache.camel.util.CamelContextHelper.getEndpointInjection(CamelContextHelper.java:138)
> at org.apache.camel.impl.CamelPostProcessorHelper.getEndpointInjection(CamelPostProcessorHelper.java:137)
> at org.apache.camel.impl.CamelPostProcessorHelper.createInjectionProducerTemplate(CamelPostProcessorHelper.java:180)
> at org.apache.camel.impl.CamelPostProcessorHelper.getInjectionValue(CamelPostProcessorHelper.java:147)
> at org.apache.camel.spring.CamelBeanPostProcessor.injectField(CamelBeanPostProcessor.java:246)
> at org.apache.camel.spring.CamelBeanPostProcessor$2.doWith(CamelBeanPostProcessor.java:234)
> at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:513)
> at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:490)
> at org.apache.camel.spring.CamelBeanPostProcessor.injectFields(CamelBeanPostProcessor.java:230)
> at org.apache.camel.spring.CamelBeanPostProcessor.postProcessBeforeInitialization(CamelBeanPostProcessor.java:98)
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.jav
> a:394)
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>
> I have stop / start and refresh the bundle where my camel route is
> defined without success.
>
> Remark : spring 3.0.4 bundles are installed
>
> ID State Blueprint Spring Level Name
> [ 21] [Active ] [Created ] [ ] [ 30] Apache Karaf ::
> Spring Deployer (2.0.0)
> [ 34] [Active ] [ ] [ ] [ 60] Spring ASM (3.0.4.RELEASE)
> [ 35] [Active ] [ ] [ ] [ 60] Spring AOP (3.0.4.RELEASE)
> [ 36] [Active ] [ ] [ ] [ 60] Spring Aspects
> (3.0.4.RELEASE)
> [ 37] [Active ] [ ] [ ] [ 60] Spring Core
> (3.0.4.RELEASE)
> [ 38] [Active ] [ ] [ ] [ 60] Spring Beans
> (3.0.4.RELEASE)
> [ 39] [Active ] [ ] [ ] [ 60] Spring Context
> (3.0.4.RELEASE)
> [ 40] [Active ] [ ] [ ] [ 60] Spring Context
> Support (3.0.4.RELEASE)
> [ 41] [Active ] [ ] [ ] [ 60] Spring
> Expression Language (3.0.4.RELEASE)
> [ 70] [Active ] [ ] [ ] [ 60] Spring
> Transaction (3.0.4.RELEASE)
> [ 167] [Active ] [ ] [ ] [ 60] Spring JMS (3.0.4.RELEASE)
> [ 139] [Resolved ] [ ] [ ] [ 60] camel-core
> (2.5.0.SNAPSHOT)
> [ 147] [Active ] [ ] [ ] [ 60] camel-spring
> (2.5.0.SNAPSHOT)
> [ 148] [Active ] [ ] [ ] [ 60] camel-jaxb
> (2.5.0.SNAPSHOT)
> [ 151] [Active ] [ ] [ ] [ 60] camel-http
> (2.5.0.SNAPSHOT)
> [ 164] [Active ] [ ] [ ] [ 60] camel-jetty
> (2.5.0.SNAPSHOT)
> [ 201] [Active ] [ ] [ ] [ 60] camel-cxf (2.5.0.SNAPSHOT)
> [ 202] [Active ] [ ] [Failed ] [ 60] camel-rest-soap
> :: osgi (1.0)
>
> Any idea is welcome ?
>