tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chakib <chakib.moham...@gmail.com>
Subject Wrong version of Quartz loaded when using tomee drop in war with spring application
Date Fri, 11 Apr 2014 18:00:02 GMT
*Hi all,

I'm stuck with an issue concerning the Tomee drop in war (i've tried 1.5.2
and 1.6.0) :

I have installed the tomee drop in war in tomcat 7.0.27, where there are
some spring based applications already deployed (spring 3.1.0). When the
server i have the above spring exception related to the version of Quartz
loaded needed by spring:*

Inconsistent Quartz 2.0 API: java.lang.NoSuchMethodException:
org.quartz.Scheduler.getTrigger(org.quartz.TriggerKey)]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at
org.springframework.context.support.DefaultLifecycleProcessor.getLifecycleBeans(DefaultLifecycleProcessor.java:274)
	at
org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:125)
	at
org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:108)
	at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:926)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:467)
	at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254)
	at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
	at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
	at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
	at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1603)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:722)
Caused by: org.quartz.SchedulerException: Registration of jobs and triggers
failed: Inconsistent Quartz 2.0 API: java.lang.NoSuchMethodException:
org.quartz.Scheduler.getTrigger(org.quartz.TriggerKey) [See nested
exception: java.lang.IllegalStateException: Inconsistent Quartz 2.0 API:
java.lang.NoSuchMethodException:
org.quartz.Scheduler.getTrigger(org.quartz.TriggerKey)]
	at
org.springframework.scheduling.quartz.SchedulerAccessor.registerJobsAndTriggers(SchedulerAccessor.java:322)
	at
org.springframework.scheduling.quartz.SchedulerFactoryBean.afterPropertiesSet(SchedulerFactoryBean.java:511)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
	... 28 more


*I have to resolve this exception without making any changes in spring
dependencies nor tommee's ones .. I've tried both putting 
openejb.classloader.forced-load = org.quartz in both system.properties and
as JVM option -Dopenejb.classloader.forced-load=org.quartz but i still have
the issue..

Thanks in advance*



--
View this message in context: http://openejb.979440.n4.nabble.com/Wrong-version-of-Quartz-loaded-when-using-tomee-drop-in-war-with-spring-application-tp4668723.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message