• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

SimpleThreadPool - Classcast exception

 
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using Quartz as scheduler for an application deployed on WebSphere 4.0 . I dont see any issues if WebSphere server is on Windows NT machine, but if I deploy it on an UNIX machine ( AIX ) I get SimpleThreadPool - Classcast exception

more specifically
========================


[3/16/05 14:47:32:927 GMT+00:00] 376e4a65 SystemOut U 2005-03-16 14:47:32,922 [ORB.thread.pool:2] ERROR com.honeywell.eac.admin.ejb.AdminGeneralManagerBean - ThreadPool class 'org.quartz.simpl.SimpleThreadPool' could not be instantiated.
org.quartz.SchedulerException: ThreadPool class 'org.quartz.simpl.SimpleThreadPool' could not be instantiated. [See nested exception: java.lang.ClassCastException: org.quartz.simpl.SimpleThreadPool]
at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:462)
at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:837)
at com.honeywell.eac.adhocquery.scheduler.AdhocQuerySchedulerManager.getAdhocQueryScheduler(AdhocQuerySchedulerManager.java:53)
at com.honeywell.eac.adhocquery.scheduler.AdhocQuerySchedulerManagerServlet.init(AdhocQuerySchedulerManagerServlet.java:64)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:802)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:141)
at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:254)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java(Inlined Compiled Code))
at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java(Compiled Code))
at javax.servlet.GenericServlet.init(GenericServlet.java(Inlined Compiled Code))
at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java(Compiled Code))
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java(Compiled Code))
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java(Compiled Code))
at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1217)
at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:145)
at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:259)
at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:168)
at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:857)
at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:43)
at com.ibm.ws.runtime.Server.startModule(Server.java:617)
at com.ibm.ejs.sm.active.ActiveModule.startModule(ActiveModule.java:511)
at com.ibm.ejs.sm.active.ActiveModule.startAction(ActiveModule.java:355)
at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:722)
at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:131)
at com.ibm.ejs.sm.active.ActiveObject.operateOnContainedObjects(ActiveObject.java:622)
at com.ibm.ejs.sm.active.ActiveEJBServer.startAction(ActiveEJBServer.java:735)
at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:722)
at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:131)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java:93)
at com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:62)
at com.ibm.ejs.sm.agent._AdminAgentImpl_Tie._invoke(_AdminAgentImpl_Tie.java:73)
at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:532)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:2450)
at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:186)
at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:104)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:144)
* Nested Exception (Underlying Cause) ---------------
java.lang.ClassCastException: org.quartz.simpl.SimpleThreadPool
at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:460)
at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:837)
at com.honeywell.eac.adhocquery.scheduler.AdhocQuerySchedulerManager.getAdhocQueryScheduler(AdhocQuerySchedulerManager.java:53)
at com.honeywell.eac.adhocquery.scheduler.AdhocQuerySchedulerManagerServlet.init(AdhocQuerySchedulerManagerServlet.java:64)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:802)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:141)
at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:254)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java(Inlined Compiled Code))
at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java(Compiled Code))
at javax.servlet.GenericServlet.init(GenericServlet.java(Inlined Compiled Code))
at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java(Compiled Code))
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java(Compiled Code))
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java(Compiled Code))
at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1217)
at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:145)
at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:259)
at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:168)
at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:857)
at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:43)
at com.ibm.ws.runtime.Server.startModule(Server.java:617)
at com.ibm.ejs.sm.active.ActiveModule.startModule(ActiveModule.java:511)
at com.ibm.ejs.sm.active.ActiveModule.startAction(ActiveModule.java:355)
at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:722)
at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:131)
at com.ibm.ejs.sm.active.ActiveObject.operateOnContainedObjects(ActiveObject.java:622)
at com.ibm.ejs.sm.active.ActiveEJBServer.startAction(ActiveEJBServer.java:735)
at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:722)
at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:131)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java:93)
at com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:62)
at com.ibm.ejs.sm.agent._AdminAgentImpl_Tie._invoke(_AdminAgentImpl_Tie.java:73)
at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:532)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:2450)
at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:186)
at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:104)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:144)




Is there a jdk or websphere specific class called SimpleThreadPool that conflicts with Quartz specific SimpleThreadPool and throwing classcast exception ?

To avoid this, where do I put quartz.jar file so that WebSphere always takes SimpleThreadPool inside Quartz jar and doesnt throw Class Cast Exception . Please help.

Thanks in advance
 
First, you drop a couch from the plane, THEN you surf it. Here, take this tiny ad with you:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic