wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes spring with quartz example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "spring with quartz example" Watch "spring with quartz example" New topic
Author

spring with quartz example

Gopu Akraju
Ranch Hand

Joined: Jan 13, 2008
Posts: 242
Hi,

I did go through one of the tutorial at http://www.javaranch.com/journal/200711/combining_spring_and_quartz.html.

I am trying an example on how to integrate spring with quartz and tried your example. I am using netbeans to run my applicationa nd following are my files.




schedule.xml

I have added all apring, quartz, commons etc.. jar files. When I try to run the application, I get the exception as follows:



I tried giving the absolute path to the xml and still get the same exception. I also tried another example as found in the thread at http://www.coderanch.com/t/60679/oa/sample-application-example-Scheduler-Scheduling and I get the same exception. Could you please tell me what went wrong? It is not able to open the xml file.
Thanks in advance.
Rick Shaw
Greenhorn

Joined: Feb 04, 2009
Posts: 1
Make sure to have this schedule.xml in your classpath
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Yes, as Rick says, and as stated in the article :
I use ClassPathXmlApplicationContext here, so "schedule.xml" must be somewhere in the classpath.


In Netbeans, configure the execution of the application so that the xml is in the classpath. See this page.


[My Blog]
All roads lead to JavaRanch
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

(I've removed the duplicate from the other thread)
 
 
subject: spring with quartz example