[opencms-dev] cron job problem

Rafael Diaz Valdes Rafael.Diaz.Valdes at cern.ch
Thu Apr 21 16:10:03 CEST 2005


do you say login the pc or login the workplace ? 
rafael

	-----Original Message----- 
	From: opencms-dev-bounces at opencms.org on behalf of Antonio Reyes 
	Sent: Thu 4/21/2005 3:31 PM 
	To: The OpenCms mailing list 
	Cc: 
	Subject: RE: [opencms-dev] cron job problem
	
	

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 6570 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050421/1c219c11/attachment.bin>


More information about the opencms-dev mailing list