[opencms-dev] cron job problem

Antonio Reyes antonio_reyes_orta at yahoo.es
Thu Apr 21 15:31:38 CEST 2005


opencms dont start after reboot the tomcat, you must to login to start
opencms

-----Mensaje original-----
De: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]En nombre de Rafael Diaz Valdes
Enviado el: jueves, 21 de abril de 2005 13:08
Para: opencms-dev at opencms.org
Asunto: [opencms-dev] cron job problem



 Hi all

 I wrote a class file to export module information and put it as a cron job

 my entry on the Schedule task is:

 45 12 * * * admin Administrators com.opencms.aliceweb.aliceModuleExport
parameter

(all in one line)

and my aliceModuleExport class is:

public class aliceModuleExport implements I_CmsCronJob {

   public String launch(CmsObject cmso, String parameter)
throws Exception {
     String filename =
"/data/tomcat/webapps/ROOT/WEB-INF/export/modules/com.opencms.aliceweb.zip";

     String[] pathArray = new String[]{
              "/system/modules/com.opencms.aliceweb/classes/",
              "/system/modules/com.opencms.aliceweb/contenttemplates/",
              "/system/modules/com.opencms.aliceweb/default_bodies/",
              "/system/modules/com.opencms.aliceweb/elements/",
              "/system/modules/com.opencms.aliceweb/jsptemplates/",
              "/system/modules/com.opencms.aliceweb/lib/",
              "/system/modules/com.opencms.aliceweb/resources/",
              "/system/modules/com.opencms.aliceweb/templates/"};
     boolean includeSystem = false;
     boolean excludeUnchanged = false;
     cmso.exportResources(filename,pathArray,includeSystem,excludeUnchanged)
;
     return null;
   }
}

 I restart tomcat  but
 the cron task is not executed and there are not signal of this in the
logfile viewer

 Do you have some idea ?

 I'm using Tomcat 4.1.29 and opencms 5.0

 regards
 rafael


_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list