ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Scheduling Jobs in a Java Web Application
Subject:   Problem with missing variables and classes
Date:   2009-05-04 20:46:07
From:   Phyo Phyo
Response to: Problem with missing variables and classes

I need help.

I'm new to struts application and also in scheduler.
Like you said in the article, I've combined the struts with quartz.
In my web.xml I have struts action servlet, my custom servelt and the quartz servlet.
These are the following.


<servlet-class>org.quartz.ee.servlet.QuartzInitializerServlet </servlet-class>

load-on-startup of action is 1.
load-on-startup of initServlet is 2.
load-on-startup of QuartzInitializer is 3.

When I started the tomcat server, the value of factory is null.
StdSchedulerFactory factory = (StdSchedulerFactory)
when i call this statement.

So I change the load-on-startup of QuartzInitializer to 1, action to 2 and initServlet to 3.
Than the action is not working although the plugin is working.
It showing 404-Servlet action is not available.

Could you please help me to find out that problem?
and if possible I want to know the source of SchedulerPlugIn and DelayedSchedulerStarted.
Thanks and best regards.