Sorry the real cron.xml :

   <?xml version="1.0" encoding="UTF-8"?>

<cronentries>

<cron>

<url>/cron/nettoyagePings</url>

<description>Déconnecte les utilisateurs n'ayant pas répondu à 2 pings</
description>

<schedule>every 1 minutes</schedule>

</cron>

</cronentries>

On Tue, Jan 25, 2011 at 11:33 AM, g123k <[email protected]> wrote:

> Hello,
>
> When I try to deploy my code, I get this error :
>
> Closing update: new version is ready to start serving.
> Uploading index definitions.
> Uploading cron jobs.
> java.io.IOException: Error posting to URL:
>
> https://appengine.google.com/api/datastore/cron/update?app_id=ehitcchiker&version=1&;
> 500 Internal Server Error
>
> Server Error (500)
> A server error has occurred.
>
> I don't understand why.
> This is my code :
>
> cron.xml :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cronentries>
> <cron>
> <url>/cron/nettoyagePings</url>
> <description>Déconnecte les utilisateurs n'ayant pas répondu à 2
> pings</description>
> <schedule>every 1 minutele dépls</schedule>
> </cron>
> </cronentries>
>
> web.xml :
>
>        <servlet>
>                <servlet-name>NettoyagePings</servlet-name>
>
>  <servlet-class>fr.polytech.unice.ehitchhiker.NettoyagePings</servlet-
> class>
>        </servlet>
>        <servlet-mapping>
>                <servlet-name>NettoyagePings</servlet-name>
>                <url-pattern>/cron/nettoyagePings</url-pattern>
>        </servlet-mapping>
>
> NettoyagePings.xml :
>
>
> package fr.polytech.unice.ehitchhiker;
>
> import java.io.IOException;
> import java.util.logging.Logger;
>
> import javax.servlet.http.HttpServlet;
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
>
> @SuppressWarnings("serial")
> public class NettoyagePings extends HttpServlet {
>
>        private static final Logger log =
> Logger.getLogger(NettoyagePings.class.getName());
>
>        @Override
>        public void doGet(HttpServletRequest req, HttpServletResponse resp)
>        throws IOException {
>                System.out.println("ping");
>        }
>
> }

-- 
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