• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

spring with quartz example

 
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 https://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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure to have this schedule.xml in your classpath
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(I've removed the duplicate from the other thread)
 
Acetylsalicylic acid is aspirin. This could be handy too:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!