I still have the same issue with this dependency : <dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId> <version>1.8.4</version> </dependency>
Arnaud Deprez -----Original Message----- From: Christian Müller [mailto:christian.muel...@gmail.com] Sent: mercredi 30 mai 2012 13:48 To: users@camel.apache.org Subject: Re: CronScheduledRoutePolicy in JUnit test Camel 2.6.0 use Quartz 1.8.4. Try this version. You do not have to define this dependency by the way... https://svn.apache.org/repos/asf/camel/tags/camel-2.6.0/parent/pom.xml Best, Christian Sent from a mobile device Am 30.05.2012 12:27 schrieb "DEPREZ Arnaud AWL-IT" <arnaud.dep...@atos.net>: > Hi all,**** > > ** ** > > I would like to test my CronScheduledRoutePolicy in my JUnit test using > org.apache.camel.test.junit4.CamelSpringTestSupport.**** > > ** ** > > When I try to run my test, I get the following exception : ** ** > > ** ** > > java.lang.NoSuchMethodError: org.quartz.Scheduler.isStarted()Z**** > > at > org.apache.camel.component.quartz.QuartzComponent.startScheduler(QuartzComponent.java:318) > **** > > at > org.apache.camel.component.quartz.QuartzComponent.onCamelContextStarted(QuartzComponent.java:174) > **** > > at > org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1534) > **** > > at > org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1420) > **** > > at > org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1321) > **** > > at > org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164) > **** > > at > org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)**** > > at > org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)**** > > at > org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1299) > **** > > at > org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:203) > **** > > at > org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101) > **** > > at > org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:238) > **** > > at > org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97) > **** > > at > org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303) > **** > > at > org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911) > **** > > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428) > **** > > at > org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) > **** > > at > org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) > **** > > at > com.ReconciliationTest.createApplicationContext(ReconciliationTest.java:37) > **** > > at > org.apache.camel.test.junit4.CamelSpringTestSupport.setUp(CamelSpringTestSupport.java:50) > **** > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method)**** > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > **** > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > **** > > at > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) > **** > > at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) > **** > > at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) > **** > > at > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27) > **** > > at > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) > **** > > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) > **** > > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) > **** > > at > org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)**** > > at > org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)**** > > at > org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)**** > > at > org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)**** > > at > org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)**** > > at > org.junit.runners.ParentRunner.run(ParentRunner.java:236)**** > > at org.junit.runner.JUnitCore.run(JUnitCore.java:157)**** > > at > com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:76) > **** > > at > com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195) > **** > > at > com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)*** > * > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method)**** > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > **** > > at > com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)**** > > ** ** > > The same route works fine in ServiceMix.**** > > ** ** > > I think I'm missing some dependencies but I don't know which one.**** > > ** ** > > I'm using : **** > > ** ** > > <dependency>**** > > <groupId>org.apache.camel</groupId>**** > > <artifactId>camel-quartz</artifactId>**** > > <version>2.6.0-fuse-02-05</version>**** > > </dependency>**** > > ** ** > > I tried to add the dependencies for quartz : **** > > <dependency>**** > > <groupId>quartz</groupId>**** > > <artifactId> quartz</artifactId>**** > > <version>1.5.2</version>**** > > </dependency>**** > > ** ** > > But it's still doesn't work.**** > > ** ** > > If someone has an idea, you're welcome !**** > > ** ** > > KR,**** > > ** ** > > [image: blue_strip] > *Arnaud Deprez* > > **** > > ** ** > > ------------------------------ > > Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg > - 1130 Brussels - Belgium > RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872 > Bankrekening-Compte Bancaire-Bank Account 310-0269424-44 > BIC BBRUBEBB - IBAN BE55 3100 2694 2444 > > "The information contained in this e-mail and any attachment thereto is > confidential and may contain information which is protected by intellectual > property rights. > This information is intended for the exclusive use of the recipient(s) > named above. > This e-mail does not constitute any binding relationship or offer toward > any of the addressees. > If you are not one of the addressees , one of their employees or a proxy > holder entitled to hand over this message to the addressee(s), any use of > the information contained herein (e.g. reproduction, divulgation, > communication or distribution,...) is prohibited. > If you have received this message in error, please notify the sender and > destroy it immediately after. > The integrity and security of this message cannot be guaranteed and it may > be subject to data corruption, interception and unauthorized amendment, for > which we accept no liability." > Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg - 1130 Brussels - Belgium RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872 Bankrekening-Compte Bancaire-Bank Account 310-0269424-44 BIC BBRUBEBB - IBAN BE55 3100 2694 2444 "The information contained in this e-mail and any attachment thereto is confidential and may contain information which is protected by intellectual property rights. This information is intended for the exclusive use of the recipient(s) named above. This e-mail does not constitute any binding relationship or offer toward any of the addressees. If you are not one of the addressees , one of their employees or a proxy holder entitled to hand over this message to the addressee(s), any use of the information contained herein (e.g. reproduction, divulgation, communication or distribution,...) is prohibited. If you have received this message in error, please notify the sender and destroy it immediately after. The integrity and security of this message cannot be guaranteed and it may be subject to data corruption, interception and unauthorized amendment, for which we accept no liability."