dcsimg
Restart Tomcat from a cgi script
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, July 29, 2004 02:47 PM

I need to start Tomcat from a cgi script which is located in /var/www/cgi-bin and is executed by Apache (on Linux RH9). This script is named restart.sh and contains the call to the shutdown.sh and startup.sh scripts for tomcat. the restart.sh script works ok if i run it from a terminal. the enviroment variables JAVA_HOME and CLASSPATH are defined at boot time(I edited the /etc/profile for this), but in the script restart.sh i have to define them because if i don't, the script doesn't run. when i execute the script from a navigator (like ie) i can stop the service but it doesn't start again. It doesn't show any error message (even when i stop it or start it). know anyone why????

Re: Restart Tomcat from a cgi script

Posted By:   Anonymous  
Posted On:   Saturday, September 18, 2004 04:20 PM

you may need to check the owner or permission of $TOMAT_HOME and restart.sh. Is it owned by Nobody or Root? And also whose profile has been loaded when trying to run the script?

Hope this helps.


Tien-Chih Wang
About | Sitemap | Contact