I have a java program, which uses the quartz library for running a cron job. The class that runs the scheduler is defined as the main class in the manifest file. When I deploy it to Tomcat as a war, nothing happens. Any ideas?
-
When running the program on my IDE (IntelliJ), the cron starts executing as expected.
-
Answer:
You need to create a web application, so i don't see any reason for having a main app. Basically, the cron job should be started from a Servlet Listener, which basically allows you to do different operations when your application is loaded by tomcat (this is in your case). Are you using a web app structure for your project? (WEB-INF folder with web.xml, different location for java files and static files?)
Dan Dobrescu at Quora Visit the source
Related Q & A:
- In Visual Studio 2012 or 2013, how can I register a DLL file on Windows 7 64-bit computer using a Custom Action command?Best solution by Stack Overflow
- How can I design a workout program for myself?Best solution by Yahoo! Answers
- Can i put a sim card of a blackberry curve from att on a blackberry bold?Best solution by Yahoo! Answers
- Why can I send a text to my email but not an email as a text to my phone?Best solution by Yahoo! Answers
- I want a knife for camping are there any knives that keep a sharp blade?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.