Hi All,
I had similar issue. Originally I was running
apache-servicemix-4.3.0-fuse-02-00, and using org.quartz.ScheduleBuilder
included in the quartz-2.0.1.jar to create scheduler jobs in our project.
Everything is fine.
Now I wanted to upgrade to apache-servicemix-4.4.1-fuse-03-06, but my
scheduler can not start. Here are the logs:
Caused by: java.lang.NoClassDefFoundError: org/quartz/ScheduleBuilder
at com.ooma.vm.mongoapi.Activator.<init>(Activator.java:9)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)[:1.6.0_20]
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:57)[:1.6.0_20]
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:45)[:1.6.0_20]
at
java.lang.reflect.Constructor.newInstance(Constructor.java:532)[:1.6.0_20]
at java.lang.Class.newInstance0(Class.java:372)[:1.6.0_20]
at java.lang.Class.newInstance(Class.java:325)[:1.6.0_20]
at
org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3716)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1848)
... 16 more
Caused by: java.lang.ClassNotFoundException: org.quartz.ScheduleBuilder not
found by org.apache.servicemix.bundles.quartz [196]
at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(Module
Impl.java:845)
at
org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:74)
at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl
.java:1839)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)[:1.6.0_20]
at
org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:7
03)
at
org.apache.felix.framework.resolver.WireImpl.getClass(WireImpl.java:102)
at
org.apache.felix.framework.ModuleImpl.searchImports(ModuleImpl.java:1458)
at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(Module
Impl.java:780)
at
org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:74)
at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl
.java:1839)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)[:1.6.0_20]
... 25 more
I built the project with
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<version>2.0.1</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
And quartz-2.0.1.jar also installed as a bundle
[ 218] [Active ] [ ] [ ] [ 70] quartz-2.0.1 (0)
What should I do to solve this issue?
In apache-servicemix-4.4.1-fuse-03-06, Apache ServiceMix :: Bundles ::
quartz (1.8.5.1) is running as default. In
apache-servicemix-4.3.0-fuse-02-00, it does not run.
[ 196] [Active ] [ ] [ ] [ 50] Apache ServiceMix ::
Bundles :: quartz (1.8.5.1)
[ 197] [Active ] [ ] [ ] [ 50] Apache ServiceMix ::
Bundles :: drools (5.1.1.1)
[ 198] [Active ] [Created ] [ ] [ 50] Apache ServiceMix ::
Components :: EIP Service Engine (2011.02.1.fuse-04-06)
[ 199] [Active ] [Created ] [ ] [ 50] Apache ServiceMix ::
Components :: OSWorkflow Service Engine (2011.02.1.fuse-04-06)
[ 200] [Active ] [ ] [ ] [ 50] Apache ServiceMix ::
Bundles :: oscore (2.2.4.4)
[ 201] [Active ] [ ] [ ] [ 50] Apache ServiceMix ::
Bundles :: osworkflow (2.7.0.4)
[ 202] [Active ] [ ] [ ] [ 50] Apache ServiceMix ::
Bundles :: propertyset (1.3.0.4)
[ 203] [Active ] [Created ] [ ] [ 50] Apache ServiceMix ::
Components :: Quartz Service Engine (2011.02.1.fuse-04-06)
How can I disable Apache ServiceMix :: Bundles :: quartz (1.8.5.1) from the
start?
Thanks,
Hao
-----Original Message-----
From: mahrob [mailto:[email protected]]
Sent: Wednesday, May 02, 2012 1:49 PM
To: [email protected]
Subject: ClassNotFoundException: org/quartz/JobDetail
Hi All,
I have a quartz service assembly that is throwing classnotfound exception:
nested exception is java.lang.NoClassDefFoundError: org/quartz/JobDetail
I have the servicemix-quartz (version 2010.01, I have tried with other
versions as well, but no success with either) component installed properly,
and it has the quartz lib in the folder as well. Still the SA is unable to
find it.
Can someone help with me this error?
Thanks
Noman A.
--
View this message in context:
http://servicemix.396122.n5.nabble.com/ClassNotFoundException-org-quartz-Job
Detail-tp5681212.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.