This is happening because you are trying to register the same name scheduler 
twice. You get this error during the second attempt. You need to figure out 
when is the Scheduler getting initialized prior to this second attempt.

-----Original Message-----
From: Filippo Balicchia [mailto:[email protected]]
Sent: Thursday, July 21, 2011 3:15 PM
To: [email protected]
Subject: DefaultQuartzScheduler' already exists

Hello,
I have installes two bundle in servicemix 4.3.0 that define use both
camel-quartz scheduler, and when they are installed  i receive the
following exception

Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'camel-2': Invocation of init method
failed; nested exception is org.quartz.SchedulerException: Scheduler
with name 'DefaultQuartzScheduler' already exists.
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)[59:org.springframework.beans:3.0.5.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[59:org.springframework.beans:3.0.5.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[59:org.springframework.beans:3.0.5.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[59:org.springframework.beans:3.0.5.RELEASE]
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[59:org.springframework.beans:3.0.5.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[59:org.springframework.beans:3.0.5.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[59:org.springframework.beans:3.0.5.RELEASE]
        at 
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)[61:org.springframework.context:3.0.5.RELEASE]
        at 
org.apache.camel.spring.CamelBeanPostProcessor.postProcessBeforeInitialization(CamelBeanPostProcessor.java:95)[75:org.apache.camel.camel-spring:2.6.0]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)[59:org.springframework.beans:3.0.5.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)[59:org.springframework.beans:3.0.5.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[59:org.springframework.beans:3.0.5.RELEASE]
        ... 23 more

The bundle start and work but how can i avoid this message

the version of camel that i use is 2.6.0

Cheers

--Filippo

***The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged material. 
Any review,retransmission,dissemination or other use of, or taking of any 
action in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete the material from any computer.***

Reply via email to