Using a differnent version of a jar than the one supplied with Tomee

假装没事ソ 提交于 2020-01-05 06:55:42

问题


I am trying to port a web-application to Tomee (Apache TomEE 1.5.2) but I have hit a major hurdle.

The version of quartz our application uses clashes with the bundled version of quartz.

Tomee comes with quartz-2.1.6.jar which is loaded as part of the container set-up as far as I can tell, But our application relies on a very old version of Quartz and we are unable to update at this point in time.

From research I had assumed it would be enough to place the older quarts jar in the WEB-INF/lib of my web-app and as per the Tomcat class loading information here it would be looked up before the quartz-2.1.6.jar in the ${catalina.home}/lib directory, this doesn't seem to be the case.

Is it possible for Tomee to use the bundled version of Quartz and my web-app to use a different version of Quartz?


回答1:


Thanks to Romain Manni-Bucau.

The solution was to add

openejb.classloader.forced-load=org.quartz

please see Tomee Users Mailing List



来源:https://stackoverflow.com/questions/18952652/using-a-differnent-version-of-a-jar-than-the-one-supplied-with-tomee

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!