Java – Google Apps Engine cron.xml does not work

Google Apps Engine cron.xml does not work… Here is a solution to the problem.

Google Apps Engine cron.xml does not work

cron.xml GAE does not select <cron> the servlet <cronentries> specified in . The cron configuration link is also missing from the administrative console. If anyone is experiencing the same problem, please tell me the solution. By the way. I’m using GAE 1.4.3 with Eclipse plugin.

cron.xml:

  <?xml version="1.0" encoding="UTF-8"?>
  <cronentries>
  <cron>
  <url>/schedulerServlet</url>
  <description>triggered every 2 minutes</description>
  <schedule>every 2 minutes</schedule>
  </cron>
  </cronentries>

servlet code:

  public class SchedulerServlet extends HttpServlet {
     // doGet method definition{
        // things to do 
     }
  }

Best Solution

Are you testing this in your local development environment? If so, I’m afraid to tell you that your local development server doesn’t support it.

Once you’ve uploaded your code to GAE, you’ll see that it works fantastically.

Regarding java – Google App Engine cron.xml not working, we found a similar issue on Stack Overflow:

https://stackoverflow.com/questions/5534627/