dcsimg
CRONTAB
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   anusha_rao
Posted On:   Tuesday, June 26, 2001 02:21 AM

We are trying to send mails everyday using crontab, java, XML and XSL. We want to run the java program which does the actual sending of the mails daily at a particular time and we are unable to schedule the task using crontab,IT WORKS FINE IN THE CONSOLE AS WELL AS IN A SHELL SCRIPT (HENCE WE ASSUME THERE IS NO PROBLEM IN THE CLASSPATH). When we are trying the same using the scheduler (crontab) in LINUX 7.0.2 OS we end up facing NoClassDefFoundException /org/apache/xslt/XSLTProcessorFactory. Note: We are not able to find the crontab file under /var/spool/cron/ Note: the body of the mail has been created using XML and XSL and the corresponding jar files has been set properly.    More>>
			
We are trying to send mails everyday using crontab, java, XML and XSL.
We want to run the java program which does the actual sending of the mails daily at a

particular time and we are unable to schedule the task using crontab,IT WORKS FINE IN THE

CONSOLE AS WELL AS IN A SHELL SCRIPT (HENCE WE ASSUME THERE IS NO PROBLEM IN THE CLASSPATH). When we are trying the same using the scheduler (crontab) in LINUX 7.0.2 OS we end up facing NoClassDefFoundException /org/apache/xslt/XSLTProcessorFactory.

Note: We are not able to find the crontab file under /var/spool/cron/
Note: the body of the mail has been created using XML and XSL and the corresponding jar files has been set properly.
   <<Less

Re: CRONTAB

Posted By:   paresh_bhatia  
Posted On:   Wednesday, June 27, 2001 04:05 AM

try removing all System.out.println() from the java programm. It should work.
bhatiaparesh@rediffmail.com

Re: CRONTAB

Posted By:   Nathan_Meyers  
Posted On:   Tuesday, June 26, 2001 05:27 PM

How is the CLASSPATH set? If you set it in a shell startup
script like ~/.bash_profile, then you'll see it when you
log in but a crontab event - which doesn't create a login
shell - will not see it. Try having the crontab run a script
that sets and exports the CLASSPATH before running
the Java launcher.
About | Sitemap | Contact