Hi Yeah unfortunately class loading in OSGi and using 3rd party libraries that are NOT osgi friendly is a challenge, and you can hit these kind of issues here.
I am not sure if quartz offer an api where you can provide a custom classloader, so we can better control this when the store want's to load a class. On Thu, Nov 6, 2014 at 12:58 PM, lakshmi.prashant <lakshmi.prash...@gmail.com> wrote: > Hi, > > That does not help. > > If we have a shared scheduler instance (by exposing the > StdSchedulerFactory as a OSGi service) used by the different camel quartz > components / routes, we face the following issue: > > After 1 camel quartz route is un-deployed & removed, the scheduler > instance starts misfiring, due to ClassLoader issues in loading the CamelJob > class. > The other camel quartz routes / bundles sharing the scheduler instance > start misfiring after the CamelJob class in the I camel route bundle gets > uninstalled (when that bundle is undeployed). > When the scheduler instance tries to acquire the next triggers & load > the Job class, the Quartz CascadingClassLoaderHelper tries to remember the > scheme that was last used to load the CamelJob class & reports the following > exception. > > Caused by: java.lang.ClassNotFoundException: Unable to load class > org.apache.camel.component.quartz2.CamelJob by any known loaders. > at > org.quartz.simpl.CascadingClassLoadHelper.loadClass(CascadingClassLoadHelper.java:126) > at > org.quartz.simpl.CascadingClassLoadHelper.loadClass(CascadingClassLoadHelper.java:138) > at > org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectJobDetail(StdJDBCDelegate.java:852) > at > org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobStoreSupport.java:2824) > ... 5 common frames omitted > Caused by: java.lang.IllegalStateException: Bundle "Quartz2_Camel_Test_5Min" > has been uninstalled > > > I have raised this issue in Quartz forum > <https://groups.google.com/forum/#!topic/quartz-scheduler/Ptek0hAhQJw> as > well. > > > > Can you please let me know if I can configure in quartz.properties any > recommended value for the org.quartz.scheduler.classLoadHelper.class, so > that quartz will load the CamelJob class correctly, when multiple camel > quartz bundles share the same scheduler instance... > > <http://camel.465427.n5.nabble.com/file/n5758609/Acquire_Triggers_After_Undeploy_Route2.png> > > > Thanks, > Lakshmi > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Quartz-job-data-deletion-in-clustered-quartz2-tp5757508p5758609.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/