Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8156603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:00:13+00:00 2026-06-06T17:00:13+00:00

Scheduled the first java Quartz job successfully with the instructions mentioned in – http://quartz-scheduler.org/documentation/quartz-2.1.x/examples/Example1

  • 0

Scheduled the first java Quartz job successfully with the instructions mentioned in – http://quartz-scheduler.org/documentation/quartz-2.1.x/examples/Example1

Since its a standalone application, we are using main method. I want to make it a container managed one. So, i added the code as per the instructions in – http://quartz-scheduler.org/documentation/quartz-2.1.x/cookbook/ServletInitScheduler

But am unable to run the job automatically at the scheduled time, with in the container environment. I have to still use the main method and run the job manually.

Please suggest me a solution for this.

Here is the link for the quartz scheduler code.
https://gist.github.com/60b236e7fd1432c76248

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T17:00:15+00:00Added an answer on June 6, 2026 at 5:00 pm

    I think you have a couple of issues to sort out.

    1. Check the quartz docs and mod your web.xml to use either the listener or servlet approach. You currently have both.

    2. You need another servlet to run inside tomcat to create a job. Google for how to create a simple servlet or ask for more info. You must grab the scheduler factory created by the quartz init servlet – check the javadocs for the quartz init servlet for how to do this. They make it available on the servlet context for other servlets to grab

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The Heroku Scheduler documentation says: Scheduled jobs are meant to execute short running tasks
I am trying to set a scheduled task in java for running once in
I would like to write my first Android app using Java and I was
In the execution of the scheduled job itself i want to stop it from
For my job, I have to use Hibernate for the first time on a
This is my first time working with Quartz. I am trying out a sample
There is a peculiarity that I encountered while using Java scheduled executors and was
I am just starting to learn Quartz scheduling and in the first step of
I am using a Quartz Cron trigger in my java program. The Cron expression
I would like to use the WatchService API as mentioned in this link: http://download.oracle.com/javase/tutorial/essential/io/notification.html

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.