I checked it out again and this time there were some warnings in the
Logs that said," No handlers matched this URL" . But the web.xml and
cron.xml seem to be okay.So I don't understand what the issue is.

On May 28, 2:26 pm, RockyWolf <[email protected]> wrote:
> I am testing acronjob. It gets uploaded fine,butfailson the
> dashboard. Can't really figure out what the problem is.
>
> I created acron.xml file in WEB-INF and put this in :
> <cronentries>
>         <cron>
>         <url>/cron/mycronjob</url>
>         <description>SimpleCronJobthat announces that it got invoked</
> description>
>         <schedule>every 1 minutes</schedule>
>         </cron>
> </cronentries>
>
> In the web.xml  I included this:
>
>         <servlet>
>                 <servlet-name>ScrapCronServlet</servlet-name>
>                 <servlet-class>com.scrapbook.ScrapCronServlet</servlet-class>
>                </servlet>
>         <servlet-mapping>
>                 <servlet-name>ScrapCronServlet</servlet-name>
>                 <url-pattern>/cron/mycronjob</url-pattern>
>         </servlet-mapping>
>
> And in thecronservlet:
> public class ScrapCronServlet extends HttpServlet{
>          public void doGet(HttpServletRequest req, HttpServletResponse resp)
> throws IOException {
>
>           try {
>          // _logger.info("CronJobhas been executed");
>           String mesg="Cronjobwas executed ";
>           ScrapMailServlet.sendEmail(mesg);
>             //Put your logic here
>           //BEGIN
>           //END
>             }
>           catch (Exception ex) {
>           //Log any exceptions in yourCronJob
>                   //_logger.info("Cronjobhasnt worked");
>                   }
>          }
>
>   @Override
>   public void doPost(HttpServletRequest req, HttpServletResponse resp)
> throws ServletException, IOException {
>   doGet(req, resp);
>   }
>
> }
>
> Has anyone else had this problem?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to