Re: Rc3.d startup scripts
That really depends on the operating system. You may also want to have a look at google On Jun 17, 2005, at 8:34 PM, [EMAIL PROTECTED] wrote: I am trying to create a startup script for Solaris for both Tomcat 5.5.9 and Apache 2.0.52. Can anyone tell me how to do that, so that when the box is rebooted it automatically starts Tomcat and Apache.
Rc3.d startup scripts
I am trying to create a startup script for Solaris for both Tomcat 5.5.9 and Apache 2.0.52. Can anyone tell me how to do that, so that when the box is rebooted it automatically starts Tomcat and Apache. Thank you for your help. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rc3.d startup scripts
For Apache 2.0.52, unless you need SSL, you can do worse than: ln -s /usr/local/apache2/bin/apachectl S35apache If you don't mind running as root, you can do the same thing for Tomcat: ln -s /path/to/tomcat/bin/catalina.sh S34tomcat If you are using jsvc, then the Tomcat5.sh script that ships with it is meant to be the start of an rcx.d script. Even if you're not using jsvc, you could always unpack the distro and look at the script as a pattern to start from. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am trying to create a startup script for Solaris for both Tomcat 5.5.9 and Apache 2.0.52. Can anyone tell me how to do that, so that when the box is rebooted it automatically starts Tomcat and Apache. Thank you for your help. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where are the UNIX-type scripts?
OK, I think I found out why or at least how it happens and repeatedly reproduced it step-by-step. If you use knoppix + Konqueror, and open the .gz file directly as you downloaded with 'ark', it shows you repeated windows .bat files instead of the .sh ones. Maybe it is a 'knoppix + Konqueror + ark' issue and it does not apparently happen with the .zip version of the file. This is a weird one and I am curious as t what the heck could be possibly going on Albretch Quoting Mark Thomas [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: I recently downloaded the latest jakarta-tomcat-5.5.9.tar.gz installation files and set them up, but I can not find the startup.sh, catalina.sh, ... file. This is all I see: [EMAIL PROTECTED] bin]$ ls -l total 500 snip So, where are the UNIX-type scripts? I have just downloaded jakarta-tomcat-5.5.9.tar.gz and confirmed the *.sh files are all present in the tar ball. Did you use GNU tar to extract the files? Some verisons of tar do not do extract all of the files. I think there is some issue to do with path length. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where are the UNIX-type scripts?
Here are the savesets I used and I have all the scripts: jakarta-tomcat-5.5.9.tar.gz jakarta-tomcat-5.5.9-compat.tar.gz These files I grabbed were a binary distribution - already compiled and built. I'll bet the difference is, you built yours from source. Here are the files I have. I set this up on a Linux FC3 host: [EMAIL PROTECTED] bin]# cd $CATALINA_HOME/bin [EMAIL PROTECTED] bin]# ls -la total 1072 drwxr-xr-x 3 root root 4096 May 17 17:56 . drwxr-xr-x 11 root root 4096 May 17 17:56 .. -rw-r--r-- 1 root root 22547 Mar 26 13:22 bootstrap.jar -rw-r--r-- 1 root root 7684 Mar 26 13:22 catalina.bat -rwxr-xr-x 1 root root 10921 Mar 26 13:22 catalina.sh -rw-r--r-- 1 root root 9386 Mar 26 13:22 commons-daemon.jar -rw-r--r-- 1 root root 26202 Mar 26 13:22 commons-logging-api.jar -rw-r--r-- 1 root root511 Mar 26 13:22 cpappend.bat -rw-r--r-- 1 root root 1284 Mar 26 13:22 digest.bat -rwxr-xr-x 1 root root848 Mar 26 13:22 digest.sh -rw-r--r-- 1 root root 408051 Mar 26 13:22 jmx.jar -rwxr-xr-x 1 root root 76244 May 17 17:33 jsvc drwxr-xr-x 5 root root 4096 May 17 17:33 jsvc-src -rw-r--r-- 1 root root 73008 Mar 26 13:22 jsvc.tar.gz -rw-r--r-- 1 root root 3956 Mar 26 13:22 service.bat -rw-r--r-- 1 root root 2013 Mar 26 13:22 setclasspath.bat -rwxr-xr-x 1 root root 2788 Mar 26 13:22 setclasspath.sh -rw-r--r-- 1 root root 1273 Mar 26 13:22 shutdown.bat -rwxr-xr-x 1 root root787 Mar 26 13:22 shutdown.sh -rw-r--r-- 1 root root 1274 Mar 26 13:22 startup.bat -rwxr-xr-x 1 root root 1141 Mar 26 13:22 startup.sh -rw-r--r-- 1 root root 102400 Mar 26 13:23 tomcat5.exe -rw-r--r-- 1 root root 131072 Mar 26 13:23 tomcat5w.exe -rw-r--r-- 1 root root 12104 Mar 26 13:22 tomcat-juli.jar -rw-r--r-- 1 root root 2235 Mar 26 13:22 tool-wrapper.bat -rwxr-xr-x 1 root root 2549 Mar 26 13:22 tool-wrapper.sh -rw-r--r-- 1 root root 1280 Mar 26 13:22 version.bat -rw-r--r-- 1 root root790 Mar 26 13:22 version.sh [EMAIL PROTECTED] bin]# - Greg Scott -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, June 11, 2005 4:23 PM To: Tomcat Users List Subject: Where are the UNIX-type scripts? I recently downloaded the latest jakarta-tomcat-5.5.9.tar.gz installation files and set them up, but I can not find the startup.sh, catalina.sh, ... file. This is all I see: [EMAIL PROTECTED] bin]$ ls -l total 500 -rw-r--r-- 1 tcbox00 tcbox00 22547 Jun 11 09:10 bootstrap.jar -rw-r--r-- 1 tcbox00 tcbox00 7684 Jun 11 09:10 catalina.bat -rw-r--r-- 1 tcbox00 tcbox00 9386 Jun 11 09:10 commons-daemon.jar -rw-r--r-- 1 tcbox00 tcbox00 26202 Jun 11 09:10 commons-logging-api.jar -rw-r--r-- 1 tcbox00 tcbox00511 Jun 11 09:10 cpappend.bat -rw-r--r-- 1 tcbox00 tcbox00 1284 Jun 11 09:10 digest.bat -rw-r--r-- 1 tcbox00 tcbox00 73008 Jun 11 09:10 jsvc.tar.gz -rw-r--r-- 1 tcbox00 tcbox00 3956 Jun 11 09:10 service.bat -rw-r--r-- 1 tcbox00 tcbox00 2013 Jun 11 09:10 setclasspath.bat -rw-r--r-- 1 tcbox00 tcbox00 1273 Jun 11 09:10 shutdown.bat -rw-r--r-- 1 tcbox00 tcbox00 1274 Jun 11 09:10 startup.bat -rw-r--r-- 1 tcbox00 tcbox00 102400 Jun 11 09:10 tomcat5.exe -rw-r--r-- 1 tcbox00 tcbox00 131072 Jun 11 09:10 tomcat5w.exe -rw-r--r-- 1 tcbox00 tcbox00 12104 Jun 11 09:10 tomcat-juli.jar -rw-r--r-- 1 tcbox00 tcbox00 2235 Jun 11 09:10 tool-wrapper.bat -rw-r--r-- 1 tcbox00 tcbox00 1280 Jun 11 09:10 version.bat -rwxr-xr-x 1 tcbox00 tcbox00790 Jun 11 09:10 version.sh So, where are the UNIX-type scripts? Thanks Albretch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where are the UNIX-type scripts?
Let's try this again. I don't know why the list bounced my reply... - Greg Scott -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, June 12, 2005 3:35 AM To: Greg Scott Subject: failure delivery Unable to deliver message to the following address(es) Tomcat Users List tomcat-user@jakarta.apache.org. Remote host said: 554 delivery error: This user doesn't have an account --- Original message follows. Here are the savesets I used and I have all the scripts: jakarta-tomcat-5.5.9.tar.gz jakarta-tomcat-5.5.9-compat.tar.gz These files I grabbed were a binary distribution - already compiled and built. I'll bet the difference is, you built yours from source. Here are the files I have. I set this up on a Linux FC3 host: [EMAIL PROTECTED] bin]# cd $CATALINA_HOME/bin [EMAIL PROTECTED] bin]# ls -la total 1072 drwxr-xr-x 3 root root 4096 May 17 17:56 . drwxr-xr-x 11 root root 4096 May 17 17:56 .. -rw-r--r-- 1 root root 22547 Mar 26 13:22 bootstrap.jar -rw-r--r-- 1 root root 7684 Mar 26 13:22 catalina.bat -rwxr-xr-x 1 root root 10921 Mar 26 13:22 catalina.sh -rw-r--r-- 1 root root 9386 Mar 26 13:22 commons-daemon.jar -rw-r--r-- 1 root root 26202 Mar 26 13:22 commons-logging-api.jar -rw-r--r-- 1 root root511 Mar 26 13:22 cpappend.bat -rw-r--r-- 1 root root 1284 Mar 26 13:22 digest.bat -rwxr-xr-x 1 root root848 Mar 26 13:22 digest.sh -rw-r--r-- 1 root root 408051 Mar 26 13:22 jmx.jar -rwxr-xr-x 1 root root 76244 May 17 17:33 jsvc drwxr-xr-x 5 root root 4096 May 17 17:33 jsvc-src -rw-r--r-- 1 root root 73008 Mar 26 13:22 jsvc.tar.gz -rw-r--r-- 1 root root 3956 Mar 26 13:22 service.bat -rw-r--r-- 1 root root 2013 Mar 26 13:22 setclasspath.bat -rwxr-xr-x 1 root root 2788 Mar 26 13:22 setclasspath.sh -rw-r--r-- 1 root root 1273 Mar 26 13:22 shutdown.bat -rwxr-xr-x 1 root root787 Mar 26 13:22 shutdown.sh -rw-r--r-- 1 root root 1274 Mar 26 13:22 startup.bat -rwxr-xr-x 1 root root 1141 Mar 26 13:22 startup.sh -rw-r--r-- 1 root root 102400 Mar 26 13:23 tomcat5.exe -rw-r--r-- 1 root root 131072 Mar 26 13:23 tomcat5w.exe -rw-r--r-- 1 root root 12104 Mar 26 13:22 tomcat-juli.jar -rw-r--r-- 1 root root 2235 Mar 26 13:22 tool-wrapper.bat -rwxr-xr-x 1 root root 2549 Mar 26 13:22 tool-wrapper.sh -rw-r--r-- 1 root root 1280 Mar 26 13:22 version.bat -rw-r--r-- 1 root root790 Mar 26 13:22 version.sh [EMAIL PROTECTED] bin]# - Greg Scott -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, June 11, 2005 4:23 PM To: Tomcat Users List Subject: Where are the UNIX-type scripts? I recently downloaded the latest jakarta-tomcat-5.5.9.tar.gz installation files and set them up, but I can not find the startup.sh, catalina.sh, ... file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where are the UNIX-type scripts?
Its not the list bouncing your mail as I did get your mail as well as you would have. just ignore it and dont resend --- Greg Scott [EMAIL PROTECTED] wrote: Let's try this again. I don't know why the list bounced my reply... - Greg Scott -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, June 12, 2005 3:35 AM To: Greg Scott Subject: failure delivery Unable to deliver message to the following address(es) Tomcat Users List tomcat-user@jakarta.apache.org. Remote host said: 554 delivery error: This user doesn't have an account --- Original message follows. Here are the savesets I used and I have all the scripts: jakarta-tomcat-5.5.9.tar.gz jakarta-tomcat-5.5.9-compat.tar.gz These files I grabbed were a binary distribution - already compiled and built. I'll bet the difference is, you built yours from source. Here are the files I have. I set this up on a Linux FC3 host: [EMAIL PROTECTED] bin]# cd $CATALINA_HOME/bin [EMAIL PROTECTED] bin]# ls -la total 1072 drwxr-xr-x 3 root root 4096 May 17 17:56 . drwxr-xr-x 11 root root 4096 May 17 17:56 .. -rw-r--r-- 1 root root 22547 Mar 26 13:22 bootstrap.jar -rw-r--r-- 1 root root 7684 Mar 26 13:22 catalina.bat -rwxr-xr-x 1 root root 10921 Mar 26 13:22 catalina.sh -rw-r--r-- 1 root root 9386 Mar 26 13:22 commons-daemon.jar -rw-r--r-- 1 root root 26202 Mar 26 13:22 commons-logging-api.jar -rw-r--r-- 1 root root511 Mar 26 13:22 cpappend.bat -rw-r--r-- 1 root root 1284 Mar 26 13:22 digest.bat -rwxr-xr-x 1 root root848 Mar 26 13:22 digest.sh -rw-r--r-- 1 root root 408051 Mar 26 13:22 jmx.jar -rwxr-xr-x 1 root root 76244 May 17 17:33 jsvc drwxr-xr-x 5 root root 4096 May 17 17:33 jsvc-src -rw-r--r-- 1 root root 73008 Mar 26 13:22 jsvc.tar.gz -rw-r--r-- 1 root root 3956 Mar 26 13:22 service.bat -rw-r--r-- 1 root root 2013 Mar 26 13:22 setclasspath.bat -rwxr-xr-x 1 root root 2788 Mar 26 13:22 setclasspath.sh -rw-r--r-- 1 root root 1273 Mar 26 13:22 shutdown.bat -rwxr-xr-x 1 root root787 Mar 26 13:22 shutdown.sh -rw-r--r-- 1 root root 1274 Mar 26 13:22 startup.bat -rwxr-xr-x 1 root root 1141 Mar 26 13:22 startup.sh -rw-r--r-- 1 root root 102400 Mar 26 13:23 tomcat5.exe -rw-r--r-- 1 root root 131072 Mar 26 13:23 tomcat5w.exe -rw-r--r-- 1 root root 12104 Mar 26 13:22 tomcat-juli.jar -rw-r--r-- 1 root root 2235 Mar 26 13:22 tool-wrapper.bat -rwxr-xr-x 1 root root 2549 Mar 26 13:22 tool-wrapper.sh -rw-r--r-- 1 root root 1280 Mar 26 13:22 version.bat -rw-r--r-- 1 root root790 Mar 26 13:22 version.sh [EMAIL PROTECTED] bin]# - Greg Scott -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, June 11, 2005 4:23 PM To: Tomcat Users List Subject: Where are the UNIX-type scripts? I recently downloaded the latest jakarta-tomcat-5.5.9.tar.gz installation files and set them up, but I can not find the startup.sh, catalina.sh, ... file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Send instant messages to your online friends http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where are the UNIX-type scripts?
FYI. I didn't build mine from source Thanks Quoting Greg Scott [EMAIL PROTECTED]: Here are the savesets I used and I have all the scripts: jakarta-tomcat-5.5.9.tar.gz jakarta-tomcat-5.5.9-compat.tar.gz These files I grabbed were a binary distribution - already compiled and built. I'll bet the difference is, you built yours from source. Here are the files I have. I set this up on a Linux FC3 host: [EMAIL PROTECTED] bin]# cd $CATALINA_HOME/bin [EMAIL PROTECTED] bin]# ls -la total 1072 drwxr-xr-x 3 root root 4096 May 17 17:56 . drwxr-xr-x 11 root root 4096 May 17 17:56 .. -rw-r--r-- 1 root root 22547 Mar 26 13:22 bootstrap.jar -rw-r--r-- 1 root root 7684 Mar 26 13:22 catalina.bat -rwxr-xr-x 1 root root 10921 Mar 26 13:22 catalina.sh -rw-r--r-- 1 root root 9386 Mar 26 13:22 commons-daemon.jar -rw-r--r-- 1 root root 26202 Mar 26 13:22 commons-logging-api.jar -rw-r--r-- 1 root root511 Mar 26 13:22 cpappend.bat -rw-r--r-- 1 root root 1284 Mar 26 13:22 digest.bat -rwxr-xr-x 1 root root848 Mar 26 13:22 digest.sh -rw-r--r-- 1 root root 408051 Mar 26 13:22 jmx.jar -rwxr-xr-x 1 root root 76244 May 17 17:33 jsvc drwxr-xr-x 5 root root 4096 May 17 17:33 jsvc-src -rw-r--r-- 1 root root 73008 Mar 26 13:22 jsvc.tar.gz -rw-r--r-- 1 root root 3956 Mar 26 13:22 service.bat -rw-r--r-- 1 root root 2013 Mar 26 13:22 setclasspath.bat -rwxr-xr-x 1 root root 2788 Mar 26 13:22 setclasspath.sh -rw-r--r-- 1 root root 1273 Mar 26 13:22 shutdown.bat -rwxr-xr-x 1 root root787 Mar 26 13:22 shutdown.sh -rw-r--r-- 1 root root 1274 Mar 26 13:22 startup.bat -rwxr-xr-x 1 root root 1141 Mar 26 13:22 startup.sh -rw-r--r-- 1 root root 102400 Mar 26 13:23 tomcat5.exe -rw-r--r-- 1 root root 131072 Mar 26 13:23 tomcat5w.exe -rw-r--r-- 1 root root 12104 Mar 26 13:22 tomcat-juli.jar -rw-r--r-- 1 root root 2235 Mar 26 13:22 tool-wrapper.bat -rwxr-xr-x 1 root root 2549 Mar 26 13:22 tool-wrapper.sh -rw-r--r-- 1 root root 1280 Mar 26 13:22 version.bat -rw-r--r-- 1 root root790 Mar 26 13:22 version.sh [EMAIL PROTECTED] bin]# - Greg Scott -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, June 11, 2005 4:23 PM To: Tomcat Users List Subject: Where are the UNIX-type scripts? I recently downloaded the latest jakarta-tomcat-5.5.9.tar.gz installation files and set them up, but I can not find the startup.sh, catalina.sh, ... file. This is all I see: [EMAIL PROTECTED] bin]$ ls -l total 500 -rw-r--r-- 1 tcbox00 tcbox00 22547 Jun 11 09:10 bootstrap.jar -rw-r--r-- 1 tcbox00 tcbox00 7684 Jun 11 09:10 catalina.bat -rw-r--r-- 1 tcbox00 tcbox00 9386 Jun 11 09:10 commons-daemon.jar -rw-r--r-- 1 tcbox00 tcbox00 26202 Jun 11 09:10 commons-logging-api.jar -rw-r--r-- 1 tcbox00 tcbox00511 Jun 11 09:10 cpappend.bat -rw-r--r-- 1 tcbox00 tcbox00 1284 Jun 11 09:10 digest.bat -rw-r--r-- 1 tcbox00 tcbox00 73008 Jun 11 09:10 jsvc.tar.gz -rw-r--r-- 1 tcbox00 tcbox00 3956 Jun 11 09:10 service.bat -rw-r--r-- 1 tcbox00 tcbox00 2013 Jun 11 09:10 setclasspath.bat -rw-r--r-- 1 tcbox00 tcbox00 1273 Jun 11 09:10 shutdown.bat -rw-r--r-- 1 tcbox00 tcbox00 1274 Jun 11 09:10 startup.bat -rw-r--r-- 1 tcbox00 tcbox00 102400 Jun 11 09:10 tomcat5.exe -rw-r--r-- 1 tcbox00 tcbox00 131072 Jun 11 09:10 tomcat5w.exe -rw-r--r-- 1 tcbox00 tcbox00 12104 Jun 11 09:10 tomcat-juli.jar -rw-r--r-- 1 tcbox00 tcbox00 2235 Jun 11 09:10 tool-wrapper.bat -rw-r--r-- 1 tcbox00 tcbox00 1280 Jun 11 09:10 version.bat -rwxr-xr-x 1 tcbox00 tcbox00790 Jun 11 09:10 version.sh So, where are the UNIX-type scripts? Thanks Albretch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where are the UNIX-type scripts?
But the dates on your files are June 11 and the dates on mine are March 26. I don't have the exact URL where I downloaded mine, just navigated there from the Jakarta home page. - Greg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, June 12, 2005 1:39 PM To: Tomcat Users List Subject: RE: Where are the UNIX-type scripts? FYI. I didn't build mine from source Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where are the UNIX-type scripts?
[EMAIL PROTECTED] wrote: I recently downloaded the latest jakarta-tomcat-5.5.9.tar.gz installation files and set them up, but I can not find the startup.sh, catalina.sh, ... file. This is all I see: [EMAIL PROTECTED] bin]$ ls -l total 500 snip So, where are the UNIX-type scripts? I have just downloaded jakarta-tomcat-5.5.9.tar.gz and confirmed the *.sh files are all present in the tar ball. Did you use GNU tar to extract the files? Some verisons of tar do not do extract all of the files. I think there is some issue to do with path length. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where are the UNIX-type scripts?
I recently downloaded the latest jakarta-tomcat-5.5.9.tar.gz installation files and set them up, but I can not find the startup.sh, catalina.sh, ... file. This is all I see: [EMAIL PROTECTED] bin]$ ls -l total 500 -rw-r--r-- 1 tcbox00 tcbox00 22547 Jun 11 09:10 bootstrap.jar -rw-r--r-- 1 tcbox00 tcbox00 7684 Jun 11 09:10 catalina.bat -rw-r--r-- 1 tcbox00 tcbox00 9386 Jun 11 09:10 commons-daemon.jar -rw-r--r-- 1 tcbox00 tcbox00 26202 Jun 11 09:10 commons-logging-api.jar -rw-r--r-- 1 tcbox00 tcbox00511 Jun 11 09:10 cpappend.bat -rw-r--r-- 1 tcbox00 tcbox00 1284 Jun 11 09:10 digest.bat -rw-r--r-- 1 tcbox00 tcbox00 73008 Jun 11 09:10 jsvc.tar.gz -rw-r--r-- 1 tcbox00 tcbox00 3956 Jun 11 09:10 service.bat -rw-r--r-- 1 tcbox00 tcbox00 2013 Jun 11 09:10 setclasspath.bat -rw-r--r-- 1 tcbox00 tcbox00 1273 Jun 11 09:10 shutdown.bat -rw-r--r-- 1 tcbox00 tcbox00 1274 Jun 11 09:10 startup.bat -rw-r--r-- 1 tcbox00 tcbox00 102400 Jun 11 09:10 tomcat5.exe -rw-r--r-- 1 tcbox00 tcbox00 131072 Jun 11 09:10 tomcat5w.exe -rw-r--r-- 1 tcbox00 tcbox00 12104 Jun 11 09:10 tomcat-juli.jar -rw-r--r-- 1 tcbox00 tcbox00 2235 Jun 11 09:10 tool-wrapper.bat -rw-r--r-- 1 tcbox00 tcbox00 1280 Jun 11 09:10 version.bat -rwxr-xr-x 1 tcbox00 tcbox00790 Jun 11 09:10 version.sh So, where are the UNIX-type scripts? Thanks Albretch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where are the UNIX-type scripts?
Also if I try the only unix-like script, namely, version.sh, it looks for the other ones: [EMAIL PROTECTED] bin]$ ./version.sh Cannot find ./catalina.sh Albretch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where are the UNIX-type scripts?
Hi, 11Jun2005 @ 17:22 [EMAIL PROTECTED] thusly spake I recently downloaded the latest jakarta-tomcat-5.5.9.tar.gz installation files and set them up, but I can not find the startup.sh, catalina.sh, ... file. This is all I see: [EMAIL PROTECTED] bin]$ ls -l total 500 -rw-r--r-- 1 tcbox00 tcbox00 22547 Jun 11 09:10 bootstrap.jar -rw-r--r-- 1 tcbox00 tcbox00 7684 Jun 11 09:10 catalina.bat -rw-r--r-- 1 tcbox00 tcbox00 9386 Jun 11 09:10 commons-daemon.jar -rw-r--r-- 1 tcbox00 tcbox00 26202 Jun 11 09:10 commons-logging-api.jar -rw-r--r-- 1 tcbox00 tcbox00511 Jun 11 09:10 cpappend.bat -rw-r--r-- 1 tcbox00 tcbox00 1284 Jun 11 09:10 digest.bat -rw-r--r-- 1 tcbox00 tcbox00 73008 Jun 11 09:10 jsvc.tar.gz -rw-r--r-- 1 tcbox00 tcbox00 3956 Jun 11 09:10 service.bat -rw-r--r-- 1 tcbox00 tcbox00 2013 Jun 11 09:10 setclasspath.bat -rw-r--r-- 1 tcbox00 tcbox00 1273 Jun 11 09:10 shutdown.bat -rw-r--r-- 1 tcbox00 tcbox00 1274 Jun 11 09:10 startup.bat -rw-r--r-- 1 tcbox00 tcbox00 102400 Jun 11 09:10 tomcat5.exe -rw-r--r-- 1 tcbox00 tcbox00 131072 Jun 11 09:10 tomcat5w.exe -rw-r--r-- 1 tcbox00 tcbox00 12104 Jun 11 09:10 tomcat-juli.jar -rw-r--r-- 1 tcbox00 tcbox00 2235 Jun 11 09:10 tool-wrapper.bat -rw-r--r-- 1 tcbox00 tcbox00 1280 Jun 11 09:10 version.bat -rwxr-xr-x 1 tcbox00 tcbox00790 Jun 11 09:10 version.sh that's weird, I'd download it again and be sure you have the right tar.gz file. this is my bin directory: /~~~ 10:32:18|luke @bench [bin] ls -l total 452 -rw-r--r-- 1 luke luke 22547 Mar 27 04:52 bootstrap.jar -rwxr-xr-x 1 luke luke 2667 May 11 12:58 catalina.bat -rwxr-xr-x 1 luke luke 2311 May 11 12:58 catalina.sh -rw-r--r-- 1 luke luke 9386 Mar 27 04:52 commons-daemon.jar -rw-r--r-- 1 luke luke 26202 Mar 27 04:52 commons-logging-api.jar -rwxr-xr-x 1 luke luke511 Mar 27 04:52 cpappend.bat -rwxr-xr-x 1 luke luke 1284 Mar 27 04:52 digest.bat -rwxr-xr-x 1 luke luke848 Mar 27 04:52 digest.sh -rw-r--r-- 1 luke luke 73008 Mar 27 04:52 jsvc.tar.gz -rwxr-xr-x 1 luke luke 3956 Mar 27 04:52 service.bat -rwxr-xr-x 1 luke luke 2013 Mar 27 04:52 setclasspath.bat -rwxr-xr-x 1 luke luke 2788 Mar 27 04:52 setclasspath.sh -rwxr-xr-x 1 luke luke 1273 Mar 27 04:52 shutdown.bat -rwxr-xr-x 1 luke luke787 Mar 27 04:52 shutdown.sh -rwxr-xr-x 1 luke luke 1274 Mar 27 04:52 startup.bat -rwxr-xr-x 1 luke luke 1141 Mar 27 04:52 startup.sh -rw-r--r-- 1 luke luke 102400 Mar 27 04:53 tomcat5.exe -rw-r--r-- 1 luke luke 131072 Mar 27 04:53 tomcat5w.exe -rw-r--r-- 1 luke luke 12104 Mar 27 04:52 tomcat-juli.jar -rwxr-xr-x 1 luke luke 2235 Mar 27 04:52 tool-wrapper.bat -rwxr-xr-x 1 luke luke 2549 Mar 27 04:52 tool-wrapper.sh -rwxr-xr-x 1 luke luke 1280 Mar 27 04:52 version.bat -rwxr-xr-x 1 luke luke790 Mar 27 04:52 version.sh \ kind regards, Luke -- ._.. .| .| |.|/.|_ . .|__.|_|.|\.|_ . :61 421 276 282: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat monitoring scripts
Another simple way is to have start a tomcat once in 2 min using a shell script. If tomcat instance is already running then the ports are in use which prevents the another tomcat instance running. But in this case If the tomcat hangs and the port is in use by other application, there is no means to restart it and monitoring of tomcat is not attached here. Regards Rajaneesh -Original Message- From: Faisal Abdullah [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 9:29 AM To: Tomcat Users List Subject: Re: Tomcat monitoring scripts On demand restarts with: http://wrapper.tanukisoftware.org On Wed, 12 Jan 2005 16:50:54 +, Didier McGillis [EMAIL PROTECTED] wrote: btw the script I would use as a starting point, it doesnt work quite right on my system but I was looking for a starting point. From: Didier McGillis [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: [EMAIL PROTECTED], tomcat-user@jakarta.apache.org Subject: Re: Tomcat monitoring scripts Date: Wed, 12 Jan 2005 16:22:52 + Ch-Check this out. Shell script http://www.wespoke.com/archives/000728.php From: Edd Dawson [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Tomcat monitoring scripts Date: Wed, 12 Jan 2005 15:20:53 + I'm looking more for something that sits on the actual servers and probes at set intervals and takes remedial action if necessary.. i just wondered if anyone had documented doing such a thing before. Peter Lin wrote: JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with tomcat4 or older. in terms of restarting, you're probably going to have to write a shell script to do that. Typically, on unix a cron job is used. peter On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson [EMAIL PROTECTED] wrote: Hi Does anyone know of the location of any scripts (for Linux) that will monitor tomcat every x minutes and if it finds it not running will restart it automatically? Any suggestions would be appreciated. thanks Edd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Edd Dawson Head of Development MitchellConnerSearson 3-5 High Pavement The Lace Market Nottingham NG1 1HF Tel +44 (0)115 959 6455 Fax +44 (0)115 959 6456 Direct +44 (0)115 959 6463 www.choosemcs.co.uk http://www.choosemcs.co.uk/ Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this e-mail and highlight the error. Security Warning: Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- There are many ways of going forward, but there is only one way of standing still. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat monitoring scripts
I have this running on my dev, and so far i have not had any issues with it. From: Faisal Abdullah [EMAIL PROTECTED] Reply-To: Faisal Abdullah [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Tomcat monitoring scripts Date: Thu, 13 Jan 2005 11:59:03 +0800 On demand restarts with: http://wrapper.tanukisoftware.org On Wed, 12 Jan 2005 16:50:54 +, Didier McGillis [EMAIL PROTECTED] wrote: btw the script I would use as a starting point, it doesnt work quite right on my system but I was looking for a starting point. From: Didier McGillis [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: [EMAIL PROTECTED], tomcat-user@jakarta.apache.org Subject: Re: Tomcat monitoring scripts Date: Wed, 12 Jan 2005 16:22:52 + Ch-Check this out. Shell script http://www.wespoke.com/archives/000728.php From: Edd Dawson [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Tomcat monitoring scripts Date: Wed, 12 Jan 2005 15:20:53 + I'm looking more for something that sits on the actual servers and probes at set intervals and takes remedial action if necessary.. i just wondered if anyone had documented doing such a thing before. Peter Lin wrote: JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with tomcat4 or older. in terms of restarting, you're probably going to have to write a shell script to do that. Typically, on unix a cron job is used. peter On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson [EMAIL PROTECTED] wrote: Hi Does anyone know of the location of any scripts (for Linux) that will monitor tomcat every x minutes and if it finds it not running will restart it automatically? Any suggestions would be appreciated. thanks Edd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Edd Dawson Head of Development MitchellConnerSearson 3-5 High Pavement The Lace Market Nottingham NG1 1HF Tel +44 (0)115 959 6455 Fax +44 (0)115 959 6456 Direct +44 (0)115 959 6463 www.choosemcs.co.uk http://www.choosemcs.co.uk/ Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this e-mail and highlight the error. Security Warning: Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- There are many ways of going forward, but there is only one way of standing still. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat monitoring scripts
Hi Does anyone know of the location of any scripts (for Linux) that will monitor tomcat every x minutes and if it finds it not running will restart it automatically? Any suggestions would be appreciated. thanks Edd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat monitoring scripts
JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with tomcat4 or older. in terms of restarting, you're probably going to have to write a shell script to do that. Typically, on unix a cron job is used. peter On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson [EMAIL PROTECTED] wrote: Hi Does anyone know of the location of any scripts (for Linux) that will monitor tomcat every x minutes and if it finds it not running will restart it automatically? Any suggestions would be appreciated. thanks Edd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat monitoring scripts
I'm looking more for something that sits on the actual servers and probes at set intervals and takes remedial action if necessary.. i just wondered if anyone had documented doing such a thing before. Peter Lin wrote: JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with tomcat4 or older. in terms of restarting, you're probably going to have to write a shell script to do that. Typically, on unix a cron job is used. peter On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson [EMAIL PROTECTED] wrote: Hi Does anyone know of the location of any scripts (for Linux) that will monitor tomcat every x minutes and if it finds it not running will restart it automatically? Any suggestions would be appreciated. thanks Edd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Edd Dawson Head of Development MitchellConnerSearson 3-5 High Pavement The Lace Market Nottingham NG1 1HF Tel +44 (0)115 959 6455 Fax +44 (0)115 959 6456 Direct +44 (0)115 959 6463 www.choosemcs.co.uk http://www.choosemcs.co.uk/ Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this e-mail and highlight the error. Security Warning: Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat monitoring scripts
most people use Perl or shell scripts to do that. There's plenty of scripts on the net for doing that by the process id. sorry, I don't have any links handy. google is your friend. peter On Wed, 12 Jan 2005 15:20:53 +, Edd Dawson [EMAIL PROTECTED] wrote: I'm looking more for something that sits on the actual servers and probes at set intervals and takes remedial action if necessary.. i just wondered if anyone had documented doing such a thing before. Peter Lin wrote: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat monitoring scripts
From: Edd Dawson [mailto:[EMAIL PROTECTED] I'm looking more for something that sits on the actual servers and probes at set intervals and takes remedial action if necessary. One trick that might work and takes almost no effort is to start Tomcat from [x]inetd - if it stops, the next request will restart it (albeit probably slowly). This fails if you have Tomcat listening on multiple ports, or if your Tomcat hangs but doesn't stop. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat monitoring scripts
My googling skills are letting me down today.. i haven't managed to find any examples online (and i've been trying most of the day!) Peter Lin wrote: most people use Perl or shell scripts to do that. There's plenty of scripts on the net for doing that by the process id. sorry, I don't have any links handy. google is your friend. peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat monitoring scripts
how about these http://www.kernel.org/software/mon/ http://www.eveandersson.com/arsdigita/free-tools/keepalive.html hope one of them helps. peter On Wed, 12 Jan 2005 15:47:37 +, Edd Dawson [EMAIL PROTECTED] wrote: My googling skills are letting me down today.. i haven't managed to find any examples online (and i've been trying most of the day!) Peter Lin wrote: most people use Perl or shell scripts to do that. There's plenty of scripts on the net for doing that by the process id. sorry, I don't have any links handy. google is your friend. peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat monitoring scripts
Ch-Check this out. Shell script http://www.wespoke.com/archives/000728.php From: Edd Dawson [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Tomcat monitoring scripts Date: Wed, 12 Jan 2005 15:20:53 + I'm looking more for something that sits on the actual servers and probes at set intervals and takes remedial action if necessary.. i just wondered if anyone had documented doing such a thing before. Peter Lin wrote: JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with tomcat4 or older. in terms of restarting, you're probably going to have to write a shell script to do that. Typically, on unix a cron job is used. peter On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson [EMAIL PROTECTED] wrote: Hi Does anyone know of the location of any scripts (for Linux) that will monitor tomcat every x minutes and if it finds it not running will restart it automatically? Any suggestions would be appreciated. thanks Edd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Edd Dawson Head of Development MitchellConnerSearson 3-5 High Pavement The Lace Market Nottingham NG1 1HF Tel +44 (0)115 959 6455 Fax +44 (0)115 959 6456 Direct +44 (0)115 959 6463 www.choosemcs.co.uk http://www.choosemcs.co.uk/ Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this e-mail and highlight the error. Security Warning: Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat monitoring scripts
btw the script I would use as a starting point, it doesnt work quite right on my system but I was looking for a starting point. From: Didier McGillis [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: [EMAIL PROTECTED], tomcat-user@jakarta.apache.org Subject: Re: Tomcat monitoring scripts Date: Wed, 12 Jan 2005 16:22:52 + Ch-Check this out. Shell script http://www.wespoke.com/archives/000728.php From: Edd Dawson [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Tomcat monitoring scripts Date: Wed, 12 Jan 2005 15:20:53 + I'm looking more for something that sits on the actual servers and probes at set intervals and takes remedial action if necessary.. i just wondered if anyone had documented doing such a thing before. Peter Lin wrote: JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with tomcat4 or older. in terms of restarting, you're probably going to have to write a shell script to do that. Typically, on unix a cron job is used. peter On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson [EMAIL PROTECTED] wrote: Hi Does anyone know of the location of any scripts (for Linux) that will monitor tomcat every x minutes and if it finds it not running will restart it automatically? Any suggestions would be appreciated. thanks Edd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Edd Dawson Head of Development MitchellConnerSearson 3-5 High Pavement The Lace Market Nottingham NG1 1HF Tel +44 (0)115 959 6455 Fax +44 (0)115 959 6456 Direct +44 (0)115 959 6463 www.choosemcs.co.uk http://www.choosemcs.co.uk/ Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this e-mail and highlight the error. Security Warning: Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat monitoring scripts
On demand restarts with: http://wrapper.tanukisoftware.org On Wed, 12 Jan 2005 16:50:54 +, Didier McGillis [EMAIL PROTECTED] wrote: btw the script I would use as a starting point, it doesnt work quite right on my system but I was looking for a starting point. From: Didier McGillis [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: [EMAIL PROTECTED], tomcat-user@jakarta.apache.org Subject: Re: Tomcat monitoring scripts Date: Wed, 12 Jan 2005 16:22:52 + Ch-Check this out. Shell script http://www.wespoke.com/archives/000728.php From: Edd Dawson [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Tomcat monitoring scripts Date: Wed, 12 Jan 2005 15:20:53 + I'm looking more for something that sits on the actual servers and probes at set intervals and takes remedial action if necessary.. i just wondered if anyone had documented doing such a thing before. Peter Lin wrote: JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with tomcat4 or older. in terms of restarting, you're probably going to have to write a shell script to do that. Typically, on unix a cron job is used. peter On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson [EMAIL PROTECTED] wrote: Hi Does anyone know of the location of any scripts (for Linux) that will monitor tomcat every x minutes and if it finds it not running will restart it automatically? Any suggestions would be appreciated. thanks Edd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Edd Dawson Head of Development MitchellConnerSearson 3-5 High Pavement The Lace Market Nottingham NG1 1HF Tel +44 (0)115 959 6455 Fax +44 (0)115 959 6456 Direct +44 (0)115 959 6463 www.choosemcs.co.uk http://www.choosemcs.co.uk/ Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this e-mail and highlight the error. Security Warning: Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- There are many ways of going forward, but there is only one way of standing still. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Scripts
I am trying to write a function in a script file and having a lot of trouble. % function String test() { return test; } out.print(test()); % Is there a way to do this without using a class? Also along these lines would something like this be possible. % function void test() { % This should just be echoed to the screen. % } test(); % Thanks for any help Charles Killmer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Scripts
try: %! public String test(){ return test; } % Note the exclamation point in the tag.. On Wed, 2004-12-22 at 14:05, Charles P. Killmer wrote: I am trying to write a function in a script file and having a lot of trouble. % function String test() { return test; } out.print(test()); % Is there a way to do this without using a class? Also along these lines would something like this be possible. % function void test() { % This should just be echoed to the screen. % } test(); % Thanks for any help Charles Killmer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Scripts
Charles P. Killmer wrote: I am trying to write a function in a script file and having a lot of trouble. % function String test() { return test; } out.print(test()); % Is there a way to do this without using a class? Also along these lines would something like this be possible. % function void test() { % This should just be echoed to the screen. % } test(); % Thanks for any help Charles Killmer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Don't confuse java/jsp with javascript. Unless you have a special container that supports java script in the language parameter for the page context. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Scripts
Thanks I got that working. Another thing though. %@ include file=file.jsp% %! public String test() { testClass temp = new testClass(); } Test(); % This results in an error about testClass being an invalid type. Any idea how I can use the testClass that is defined in file.jsp within this test function? Thank you Charles Killmer -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 22, 2004 1:10 PM To: Tomcat Users List Subject: Re: Scripts try: %! public String test(){ return test; } % Note the exclamation point in the tag.. On Wed, 2004-12-22 at 14:05, Charles P. Killmer wrote: I am trying to write a function in a script file and having a lot of trouble. % function String test() { return test; } out.print(test()); % Is there a way to do this without using a class? Also along these lines would something like this be possible. % function void test() { % This should just be echoed to the screen. % } test(); % Thanks for any help Charles Killmer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Scripts
Is 'testClass' a valid class? Is it accessible to your JSPs? http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html Have you imported it to the JSP? %@ page import=package.class % If you're new to Java/JSP, you'll probably save yourself a lot of headaches by finding either a JSP/Servlet book or an online tutorial. There are hundreds out there (GIYF). Also, your naming/capitalization convention hints that you are new to Java as well. Like with JSP/Servlets, there are lots of books and tutorials on Java available. On the surface, JSPs look a lot like PHP or ASP pages but there are some critical concepts (threading being on the top of the list) that you should understand before writing any production code with them. Best of Luck, -Ben On Wed, 2004-12-22 at 15:14, Charles P. Killmer wrote: Thanks I got that working. Another thing though. %@ include file=file.jsp% %! public String test() { testClass temp = new testClass(); } Test(); % This results in an error about testClass being an invalid type. Any idea how I can use the testClass that is defined in file.jsp within this test function? Thank you Charles Killmer -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 22, 2004 1:10 PM To: Tomcat Users List Subject: Re: Scripts try: %! public String test(){ return test; } % Note the exclamation point in the tag.. On Wed, 2004-12-22 at 14:05, Charles P. Killmer wrote: I am trying to write a function in a script file and having a lot of trouble. % function String test() { return test; } out.print(test()); % Is there a way to do this without using a class? Also along these lines would something like this be possible. % function void test() { % This should just be echoed to the screen. % } test(); % Thanks for any help Charles Killmer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Suggestion - upgrade scripts.
Ok, I have been playing around with this idea. What I would use most would not so much be an upgrade script between versions but an upgrade script between sub-version. Or maybe even just a list of the files that have changed in a sub-version upgrade, and a copy of each one. Like an upgrade version of Tomcat. You only download the files that have changed! I know this is recoverable from the release notes but it would be made simpler if there was just a zip file with only the changed jars etc. Yes / No / Not useful ? Andoni. - Original Message - From: QM [EMAIL PROTECTED] Newsgroups: gmane.comp.jakarta.tomcat.user Sent: Thursday, November 18, 2004 12:07 AM Subject: Re: Suggestion - upgrade scripts. On Wed, Nov 17, 2004 at 03:15:46PM +, Andoni wrote: : Ever since a recent conversation about the status of the 4.1.xx branch of the Tomcat tree I have been wondering about the best route for upgrading the servers which I manage. Having browsed the Tocmat website and seen the differences between the different versions I have noticed what's missing. I have a link on my site for upgrading from 4.1.x - 5.0.x. http://www.brandxdev.net/misc/tomcat_upgrade.site The 5.0.x - 5.5.x guide is on the way. : I think there should be some development effort put into scripts for upgrading from the previous version of Tomcat. Have at it! Where I'm from, such a statement is considered a statement that you volunteer your time to do this. ;) In all seriousness, how could there be such a tool? Most of what Tomcat does and provides is detailed in the servlet/JSP specs: it must handle WAR files, it must service JSPs, and so on. In turn, most of the upgrade process involves you, the developer, testing and adjusting your app to fit the new specs. Looking at the upgrade guide I've assembled, there were only a couple of changes to Tomcat config files. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Suggestion - upgrade scripts.
On Thu, Nov 18, 2004 at 10:32:33AM +, Andoni wrote: : Ok, I have been playing around with this idea. What I would use most would : not so much be an upgrade script between versions but an upgrade script : between sub-version. Or maybe even just a list of the files that have : changed in a sub-version upgrade, and a copy of each one. Given the Apache license, you're more than able to create and distribute such an upgrade package yourself. As there are no roadblocks between you and your goal, why not give ti a shot? I personally prefer a different upgrade philosophy, but this certainly is a situation in which we can all do what we want without affecting anyone else. ;) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Suggestion - upgrade scripts.
I would agree with this from most applications both open source and commercial license software they will provide infromation on how to upgrade and new features, and of course the software, but its still up to those maintaining their sites that are using the software to do the upgrading and test and to fix any errors that may crop up due to differences from one version to the next. One upgrade we did was where the company changes significently the javascript processor embedded in the system, so if you developed the site in JavaScript Pages instead of JavaServer Pages, guess what, you had a lot of work to do. BTW we learned that information from other developers and connections we had in their online community, not from the company itself. In all seriousness, how could there be such a tool? Most of what Tomcat does and provides is detailed in the servlet/JSP specs: it must handle WAR files, it must service JSPs, and so on. In turn, most of the upgrade process involves you, the developer, testing and adjusting your app to fit the new specs. Looking at the upgrade guide I've assembled, there were only a couple of changes to Tomcat config files. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Suggestion - upgrade scripts.
Hello, Ever since a recent conversation about the status of the 4.1.xx branch of the Tomcat tree I have been wondering about the best route for upgrading the servers which I manage. Having browsed the Tocmat website and seen the differences between the different versions I have noticed what's missing. I think there should be some development effort put into scripts for upgrading from the previous version of Tomcat. If these scripts could also download from the website then the simplest answer to I'm running 4.1.27 and it crashes when I ... would be Then run the upgrade script and call back! I actually hope the user list never becomes this rude but you get my gist. At least a lot more people would have the option to upgrade if they didn't have to know exactly what was involved (i.e. a script could know for them). Anyone got any free development time? Just a suggestion. Andoni.
Re: Suggestion - upgrade scripts.
On Wed, Nov 17, 2004 at 03:15:46PM +, Andoni wrote: : Ever since a recent conversation about the status of the 4.1.xx branch of the Tomcat tree I have been wondering about the best route for upgrading the servers which I manage. Having browsed the Tocmat website and seen the differences between the different versions I have noticed what's missing. I have a link on my site for upgrading from 4.1.x - 5.0.x. http://www.brandxdev.net/misc/tomcat_upgrade.site The 5.0.x - 5.5.x guide is on the way. : I think there should be some development effort put into scripts for upgrading from the previous version of Tomcat. Have at it! Where I'm from, such a statement is considered a statement that you volunteer your time to do this. ;) In all seriousness, how could there be such a tool? Most of what Tomcat does and provides is detailed in the servlet/JSP specs: it must handle WAR files, it must service JSPs, and so on. In turn, most of the upgrade process involves you, the developer, testing and adjusting your app to fit the new specs. Looking at the upgrade guide I've assembled, there were only a couple of changes to Tomcat config files. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring Tomcat 5.0.27 to run PHP 5.0.1 scripts
I may be in a minority here .. very sparse information found so far on this .. I would like to configure Tomcat 5.0.27 to run PHP 5.0.1 scripts on Tomcat server (in addition to PHP running on Apache server). I do understand that PHP usually runs on Apache server (I have that combination working already). I need a hybrid configuration. __ My configuration:- Two servers running on same Windows XP Pro platform (localhost testing mode) .. * Apache 2 running PHP 5.0.1 (port 88) * Tomcat 5.0.27 running some webapps (port 8080) Also, Apache server is connected to Tomcat server via mod_jk2 connector but I also require PHP 5.0.1 scripts to run on Tomcat 5.0.27.. .. for PHP (Apache) --- PHP (Tomcat) inter-server communications. __ Searching around I found this single reference:- http://wiki.apache.org/jakarta-tomcat/Tomcat/UsingPhp note: on that site I read this .. 3. Patch for PHP configure Script This is a patch for PHP's configure script to account for the servlet jar name change (from servlet.jar in Servlet Spec 2.3 and previous [tomcat 4 and previous] to servlet-api.jar in Servlet Spec 2.4 and above [tomcat 5 and later]): I do have servlet-api.jar in my Tomcat 5.0.27 configuration .. \common\lib\ Does this mean I need to compile PHP 5.0.1 from source (I have used the PHP binary installer, not a build)? I have in c:\Tomcat5\common\lib\ phpsrvlt.jar(copied from PHP) servlet-api.jar __ Here is what I have setup so far in Tomcat 5.0.27 .. (1) copied phpsrvlt.jar from c:\php\ext\ intoc:\Tomcat5\common\lib\ (2) enabled php_java.dll extension (from this link .. http://uk2.php.net/java/ ) not sure if I really need this .. but enabled it anyway extension=php_java.dll (3) in C:\Tomcat5\conf\web.xml .. mime-mapping extensionphp/extension mime-typeapplication/x-httpd-php/mime-type /mime-mapping welcome-file-list welcome-fileindex.php/welcome-file welcome-file-list But note ... no PHP 5.0.1 servlet mapping has yet been created in Tomcat web.xml. Is there a PHP 5.0.1 servlet mapping definition somewhere? __ Summary:- Is there a configuration guide anywhere for configuring PHP 5.0.1 to run on Tomcat 5.0.27 ... showing php.ini settings, and other settings in Tomcat? __ Thanks d~l
scripts for Workers
Hi ! I'm looking for scripts that work like startup.sh and shutdown.sh but with multi tomcat targets (workers). those scripts are for linux. Thanks, Arnaud - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: scripts for Workers
If you are talking about workers on the same machine, simply hit each startup.sh et al in turn. If you are talking about workers on many different machines : (On a central PC) Do an array of server IP's with a common username (i.e. tomcat) - (and tomcat directory - i.e. /usr/local/tomcat). The workers must have the ssh key of the central PC in each known_hosts file. Simply iterate round your workers array (for each IP) and use ssh to execure a remote command, $IP $TOMCAT_HOME/bin/startup.sh Pete. Boulay Arnaud wrote: Hi ! I'm looking for scripts that work like startup.sh and shutdown.sh but with multi tomcat targets (workers). those scripts are for linux. Thanks, Arnaud - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Startup scripts not executable?
I downloaded Tomcat-5.0.18 onto my Mac OSX-10.3.2 system. The scripts in $CATALINA_HOME/bin (startup.sh, catalina.sh, etc) all got unpacked without the execute bit set. I had to do chmod +x *.sh to get things to work. Is this a bug? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Startup scripts not executable?
No, sometimes this problem occours (it is also reported in several HowTo's related to Apache and Cocoon :- G == Date: Wed, 18 Feb 2004 16:09:16 -0500 From: Roy Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Roy Smith [EMAIL PROTECTED] Subject: Startup scripts not executable? == I downloaded Tomcat-5.0.18 onto my Mac OSX-10.3.2 system. The scripts in $CATALINA_HOME/bin (startup.sh, catalina.sh, etc) all got unpacked without the execute bit set. I had to do chmod +x *.sh to get things to work. Is this a bug? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Giuseppe Briotti [EMAIL PROTECTED] Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius. (Orazio) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Startup scripts not executable?
Roy Smith wrote: I downloaded Tomcat-5.0.18 onto my Mac OSX-10.3.2 system. The scripts in $CATALINA_HOME/bin (startup.sh, catalina.sh, etc) all got unpacked without the execute bit set. I had to do chmod +x *.sh to get things to work. Is this a bug? You probably downloaded the zipped version. AFAIK, ZIP format does not support permissions. The tarred and gzipped version is OK. Antonio Fiol smime.p7s Description: S/MIME Cryptographic Signature
Tomcat 5.0.16 executes binary CGI scripts as Perl scripts
I am new to 5.0.16 but I have used Tomcat before in the Past. I think I configured my CGI settings correctly according to the documentation, I uncommented the servlet and servlet-mappings sections, renamed the Jar file. I also have .exe MIME mapped as an Application (the default values I didn't muck with any of these). I am running on Windows 2000. My script is installed into ..\Root\WEB-INF\cgi\cgi.exe I am trying to run a binary C-Style CGI script. It appears that tomcat is treating my .exe file as a Perl script. The 500 Error Output reads... java.io.IOException: CreateProcess: perl C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\cgi\cgi.exe error=2 I am not sure how to resolve this issue, it looks like from the error Tomcat thinks me exe is a perl script. I didn't know there was a specific configuration for how scripts are handled, it appears the MIME mappings are being ignored or are not used in script execution. Any ideas, is there a way to unmap .exe to perl? I know Tomcat is designed primarily for servlets, this is a special scenario where Tomcat cannot be substituted for Apache (and Apache runs the script A-OK). -- Below are specific details about the error msg and web.xml config settings - Entire error: 2003-12-17 18:41:25 StandardContext[]cgi: findCGI: currentLoc=C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\cgi 2003-12-17 18:41:25 StandardContext[]cgi: findCGI: FOUND cgi at C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\cgi\cgi.exe 2003-12-17 18:41:25 StandardContext[]cgi: findCGI calc: name=cgi.exe, path=C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\cgi\cgi.exe, scriptname=/cgi-bin\cgi.exe, cginame=\cgi.exe 2003-12-17 18:41:25 StandardContext[]cgi: runCGI(envp=[{HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iOpus-I-M; .NET CLR 1.0.3705; .NET CLR 1.1.4322), HTTP_ACCEPT_ENCODING=gzip, deflate, REQUEST_METHOD=GET, AUTH_TYPE=, HTTP_ACCEPT_LANGUAGE=en-us,de;q=0.5, SERVER_NAME=pinecone, SERVER_SOFTWARE=TOMCAT, HTTP_HOST=pinecone, GATEWAY_INTERFACE=CGI/1.1, X_TOMCAT_SCRIPT_PATH=C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\cgi\cgi.exe, REMOTE_ADDR=192.168.1.144, SERVER_PROTOCOL=HTTP/1.1, PATH_INFO=, REMOTE_HOST=192.168.1.144, QUERY_STRING=command=LoginScreen, HTTP_CONNECTION=Keep-Alive, SERVER_PORT=8080, CONTENT_TYPE=, CONTENT_LENGTH=, SCRIPT_NAME=/cgi-bin\cgi.exe, HTTP_ACCEPT=*/*, REMOTE_USER=, REMOTE_IDENT=}], command=C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\cgi\cgi.exe) 2003-12-17 18:41:25 StandardWrapperValve[cgi]: Servlet.service() for servlet cgi threw exception java.io.IOException: CreateProcess: perl C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\cgi\cgi.exe error=2 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.init(Win32Process.java:66) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:566) at java.lang.Runtime.exec(Runtime.java:428) at org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java:1578) at org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:626) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156
Auto start scripts
Have very limited experience of Linux or Tomcat. Not even really sure if this is a Tomcat issue or a Linux issue. Main question: How do I run a Tomcat4 script from /etc/rc.d/init.d so that Tomcat starts automatically? Tomcat works fine when I run startup.sh as root. However, common sense and many passing references on the mailing list suggest that root is not the best choice. - What user do people normally use? - Should I create a user for the purpose? - What attributes and permissions should it have? - Is this related to the tomcat tomcat element in the default tomcat-users.xml? I read somewhere that tar preserves file and directory permissions when unpacking .tar.gz files. However, everything now seems to be owned by root (group also root), possibly because I unpacked it as root. So when I run Tomcat as tomcat, it dies of 'access denied'. I have changed the owner and group to tomcat for the logs and conf directories (so that Tomcat can rewrite tomcat-users.xml ???) but I am very reluctant to do too much of this without fully understanding why and what the downstream consequences might be. Most things now work but not the admin application. - What is the best practiced with regard to permissions? Tomcat documentation seems to stop firmly at startup.sh and shutdown.sh (unless I simply have not found the right page). I have found FAQs and tutorials that give sample scripts for various Linux distributions (none so far for Fedora) but none of them work if the user and permissions are not good. - Can anyone please summarise what I need to do? Best practice, even? :-) - Should it be documented? - Would all this go away if there was an RPM? - Is there an RPM? :-) Many thanks Robin Rigby - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Auto start scripts
Robin Rigby wrote: Have very limited experience of Linux or Tomcat. Not even really sure if this is a Tomcat issue or a Linux issue. Main question: How do I run a Tomcat4 script from /etc/rc.d/init.d so that Tomcat starts automatically? Tomcat works fine when I run startup.sh as root. However, common sense and many passing references on the mailing list suggest that root is not the best choice. - What user do people normally use? - Should I create a user for the purpose? - What attributes and permissions should it have? - Is this related to the tomcat tomcat element in the default tomcat-users.xml? I'd sugest: - download TC-4.1.24 RPMs and install them - study it, see how it arranges files, permissions, etc... - configure your own TC 4.1.29 accordingly - or just (carefully) paste 4.1.29 over existing 4.1.24 RPM install Setting up TC correctly or, even more, building your own RPMs can be very time consuming. The layout of 4.1.24 RPMs seams OK to me. There is a site, JPackage, I think, which has newer RPMs, but they have moved other packages from TC into separate ones (JavaMail, JDBC-ext,...), so getting it all together is not easy. Plus they have their own dependencies, which I couldn't provide on Mandrake. Nixie. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Auto start scripts
Thanks. I tried to to find the 4.1.24 RPM under http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/ but this redirects me to http://jakarta.apache.org/site/binindex.cgi which offers 4.1.29 and no RPM. Where should I really be looking? Robin -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Sent: 03 December 2003 13:01 To: Tomcat Users List Subject: Re: Auto start scripts Robin Rigby wrote: Have very limited experience of Linux or Tomcat. Not even really sure if this is a Tomcat issue or a Linux issue. Main question: How do I run a Tomcat4 script from /etc/rc.d/init.d so that Tomcat starts automatically? Tomcat works fine when I run startup.sh as root. However, common sense and many passing references on the mailing list suggest that root is not the best choice. - What user do people normally use? - Should I create a user for the purpose? - What attributes and permissions should it have? - Is this related to the tomcat tomcat element in the default tomcat-users.xml? I'd sugest: - download TC-4.1.24 RPMs and install them - study it, see how it arranges files, permissions, etc... - configure your own TC 4.1.29 accordingly - or just (carefully) paste 4.1.29 over existing 4.1.24 RPM install Setting up TC correctly or, even more, building your own RPMs can be very time consuming. The layout of 4.1.24 RPMs seams OK to me. There is a site, JPackage, I think, which has newer RPMs, but they have moved other packages from TC into separate ones (JavaMail, JDBC-ext,...), so getting it all together is not easy. Plus they have their own dependencies, which I couldn't provide on Mandrake. Nixie. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Auto start scripts
Howdy, RPMs are not packaged on the jakarta site for tomcat. They're done by external parties on their sites. Google ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Robin Rigby [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 9:16 AM To: Tomcat Users List Subject: RE: Auto start scripts Thanks. I tried to to find the 4.1.24 RPM under http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/ but this redirects me to http://jakarta.apache.org/site/binindex.cgi which offers 4.1.29 and no RPM. Where should I really be looking? Robin -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Sent: 03 December 2003 13:01 To: Tomcat Users List Subject: Re: Auto start scripts Robin Rigby wrote: Have very limited experience of Linux or Tomcat. Not even really sure if this is a Tomcat issue or a Linux issue. Main question: How do I run a Tomcat4 script from /etc/rc.d/init.d so that Tomcat starts automatically? Tomcat works fine when I run startup.sh as root. However, common sense and many passing references on the mailing list suggest that root is not the best choice. - What user do people normally use? - Should I create a user for the purpose? - What attributes and permissions should it have? - Is this related to the tomcat tomcat element in the default tomcat-users.xml? I'd sugest: - download TC-4.1.24 RPMs and install them - study it, see how it arranges files, permissions, etc... - configure your own TC 4.1.29 accordingly - or just (carefully) paste 4.1.29 over existing 4.1.24 RPM install Setting up TC correctly or, even more, building your own RPMs can be very time consuming. The layout of 4.1.24 RPMs seams OK to me. There is a site, JPackage, I think, which has newer RPMs, but they have moved other packages from TC into separate ones (JavaMail, JDBC-ext,...), so getting it all together is not easy. Plus they have their own dependencies, which I couldn't provide on Mandrake. Nixie. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Auto start scripts
Robin Rigby wrote: Thanks. I tried to to find the 4.1.24 RPM under http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/ but this redirects me to http://jakarta.apache.org/site/binindex.cgi which offers 4.1.29 and no RPM. Where should I really be looking? Robin Try this... http://archive.apache.org/dist/jakarta/tomcat-4/archive/v4.1.24/rpms/ -- Tomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Auto start scripts
Got it. Thank you. :-) -Original Message- From: Tomas Wredendal [mailto:[EMAIL PROTECTED] Sent: 03 December 2003 14:40 To: Tomcat Users List Subject: Re: Auto start scripts Robin Rigby wrote: Thanks. I tried to to find the 4.1.24 RPM under http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/ but this redirects me to http://jakarta.apache.org/site/binindex.cgi which offers 4.1.29 and no RPM. Where should I really be looking? Robin Try this... http://archive.apache.org/dist/jakarta/tomcat-4/archive/v4.1.24/rpms/ -- Tomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Auto start scripts
Robin Rigby wrote: Thanks. I tried to to find the 4.1.24 RPM under http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/ but this redirects me to http://jakarta.apache.org/site/binindex.cgi which offers 4.1.29 and no RPM. Where should I really be looking? Robin, I don't think you really need to have tomcat installed by rpm just to get the daemon working. From what I have managed to work out by a quick look today, if you want to run tomcat as a non-root user, and you want tomcat 4, you have to do some extra steps because it won't bind to port 80 unless it's running as root. Check out the thread mentioned in the tomcat website: http://jakarta.apache.org/tomcat/faq/security.html#root Adam -- struts 1.1 + tomcat 5.0.14 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can Tomcat really run cgi scripts?
Well my head is really a bloody mess now but after seeing that other IOException: CreateProcess errors for other applications often referred to both path and pathext environmental variables I decided to add .pl and .cgi to pathext. Path was already corrected and I tinkered with it endlessly. That still didn't work. Until I rebooted system. I assume that once I did so Tomcat figured out the .pl/.cgi extensions and processed the cgi file properly. Sending this just in case anyone else runs into the problem. I've found a number of references to the problem on google but no answers. -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 3:21 PM To: Tomcat Users List Subject: RE: Can Tomcat really run cgi scripts? Beat my head against wall for another couple hours and still end up with this error. Anyone have any other ideas? java.io.IOException: CreateProcess: perl C:\Tomcat4112\webapps\examples\WEB-INF\cgi\exp.pl lname=januski fname=ken error=2 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.(Win32Process.java:63) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:550) at java.lang.Runtime.exec(Runtime.java:416) at org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java:1583) at org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:635) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:471) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:536) -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 1:01 PM To: Tomcat Users List Subject: RE: Can Tomcat really run cgi scripts? Thanks Chris, I've tried !#c:\perl\bin\perl.exe, #!c:\perl\bin, #!perl, and #!/usr/bin/perl and get same error on each. I've also added perl to the path environmental PATH variable. I do think that you're right about
Can Tomcat really run cgi scripts?
I've been trying for last day to get Tomcat 4.1.12 to run a perl cgi script. I've done most of it based on this article: http://www.fawcette.com/javapro/2003_03/online/perl_teden_03_18_03/default_p f.aspx. But now I'm stuck with this error: java.io.IOException: CreateProcess: perl C:\Tomcat4112\webapps\examples\WEB-INF\cgi\exp.cgi In researching this on google I've found that a number of people have run into siimilar problems. Some of them solved it by adding Apache to the mix. I don't want to add Apache if I don't have to. So what I'm wondering is if anyone has had much success running perl scripts from cgi directory without using Apache? And also does anyone know how to get around the above error? Thanks, Ken P.S. The only reason I'm having to run perl is that I need to add iptc info to jpeg files and I've only found perl methods for doing so. If anyone can point me to a Java method of doing so I could avoid this problem for the time being.
Re: Can Tomcat really run cgi scripts?
Ken, But now I'm stuck with this error: java.io.IOException: CreateProcess: perl C:\Tomcat4112\webapps\examples\WEB-INF\cgi\exp.cgi This is likely to be due to the lack of PATH information available to the script itself. Try using #!/usr/bin/perl in your script instead of #!perl I've heard some complains about sub-process permissions, but my initial reaction is that they are errant complaints. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can Tomcat really run cgi scripts?
Thanks Chris, I've tried !#c:\perl\bin\perl.exe, #!c:\perl\bin, #!perl, and #!/usr/bin/perl and get same error on each. I've also added perl to the path environmental PATH variable. I do think that you're right about missing PATH information so I'll keep experimenting. I just can't figure out what additional paths to try. Ken -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 12:53 PM To: Tomcat Users List Subject: Re: Can Tomcat really run cgi scripts? Ken, But now I'm stuck with this error: java.io.IOException: CreateProcess: perl C:\Tomcat4112\webapps\examples\WEB-INF\cgi\exp.cgi This is likely to be due to the lack of PATH information available to the script itself. Try using #!/usr/bin/perl in your script instead of #!perl I've heard some complains about sub-process permissions, but my initial reaction is that they are errant complaints. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can Tomcat really run cgi scripts?
Beat my head against wall for another couple hours and still end up with this error. Anyone have any other ideas? java.io.IOException: CreateProcess: perl C:\Tomcat4112\webapps\examples\WEB-INF\cgi\exp.pl lname=januski fname=ken error=2 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.(Win32Process.java:63) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:550) at java.lang.Runtime.exec(Runtime.java:416) at org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java:1583) at org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:635) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:471) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:536) -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 1:01 PM To: Tomcat Users List Subject: RE: Can Tomcat really run cgi scripts? Thanks Chris, I've tried !#c:\perl\bin\perl.exe, #!c:\perl\bin, #!perl, and #!/usr/bin/perl and get same error on each. I've also added perl to the path environmental PATH variable. I do think that you're right about missing PATH information so I'll keep experimenting. I just can't figure out what additional paths to try. Ken -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 12:53 PM To: Tomcat Users List Subject: Re: Can Tomcat really run cgi scripts? Ken, But now I'm stuck with this error: java.io.IOException: CreateProcess: perl C:\Tomcat4112\webapps\examples\WEB-INF\cgi\exp.cgi This is likely to be due to the lack of PATH information available to the script itself. Try using #!/usr/bin/perl in your script instead of #!perl I've heard some complains about sub-process permissions, but my initial reaction is that they are errant complaints. -chris
RE: Configuring and using cgi scripts in Tomcat
I have the j2ee.jar file in the classpath...should that not provide the current jdk. Allen -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:12 PM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat In the stack trace, root cause, you'll find: java.lang.NoSuchMethodError: java.lang.Runtime: method exec(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava/lang/Proc ess; not found So something (org.apache.catalina.servlets.CGIServlet$CGIRunner.run) is trying to find a method called: java.langRuntime.exec(String, String[] File) But cannot find it. There is such a method, but only since JDK 1.3 So.. are you running at least 1.3? -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 5:22 PM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Okay... Found out that I did not have the mapping correct but when I changed it to go the ROOT/WEB-INF/cgi-bin. I have now getting the following error. Any help would be highly appreciate (even to the point of naming my next born after you.:-) ) Allen (error msg) HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContext.invoke(Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.AccessLogValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter. java:223) at org.apache.coyote.http11.Http11Processor.process(Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle r.processC onnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) root cause java.lang.NoSuchMethodError: java.lang.Runtime: method exec(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava /lang/Proc ess; not found at org.apache.catalina.servlets.CGIServlet
RE: Configuring and using cgi scripts in Tomcat
Howdy, All j2ee.jar provides in the tomcat classpath is a headache. J2ee.jar contains the servlet classes, which is bad (http://jakarta.apache.org/tomcat/faq/classnotfound.html#filter). Also search the list archives on this... Yoav Shapira Millennium ChemInformatics -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:54 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat I have the j2ee.jar file in the classpath...should that not provide the current jdk. Allen -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:12 PM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat In the stack trace, root cause, you'll find: java.lang.NoSuchMethodError: java.lang.Runtime: method exec(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava/lang/Pro c ess; not found So something (org.apache.catalina.servlets.CGIServlet$CGIRunner.run) is trying to find a method called: java.langRuntime.exec(String, String[] File) But cannot find it. There is such a method, but only since JDK 1.3 So.. are you running at least 1.3? -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 5:22 PM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Okay... Found out that I did not have the mapping correct but when I changed it to go the ROOT/WEB-INF/cgi-bin. I have now getting the following error. Any help would be highly appreciate (even to the point of naming my next born after you.:-) ) Allen (error msg) HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContext.invoke(Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.AccessLogValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter. java:223) at org.apache.coyote.http11.Http11Processor.process(Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle r.processC onnection(Http11Protocol.java:386
RE: Configuring and using cgi scripts in Tomcat
-Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:54 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat I have the j2ee.jar file in the classpath...should that not provide the current jdk. Well, no. j2ee.jar is just a library. It happens to be quite large and covers a LOT of functionality. But it is not a java runtime, and it doesn't contain any of the core java (j2se) classes. From the docs on j2ee 1.3.1: Supported Operating Systems and Required Software This release relies on the Java 2 SDK, Standard Edition (J2SE). The reason Yoav recommends you dump j2ee.jar is that it contains a number of classes that Tomcat *already* has, and it's easier to avoid conflicts between different class versions by just removing the entirely un-necessary j2ee.jar from Tomcat's view. Where does JAVA_HOME point to? It should point to an installation of the J2SE JDK version 1.3.x or above. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:12 PM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat In the stack trace, root cause, you'll find: java.lang.NoSuchMethodError: java.lang.Runtime: method exec(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava /lang/Proc ess; not found So something (org.apache.catalina.servlets.CGIServlet$CGIRunner.run) is trying to find a method called: java.langRuntime.exec(String, String[] File) But cannot find it. There is such a method, but only since JDK 1.3 So.. are you running at least 1.3? -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 5:22 PM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Okay... Found out that I did not have the mapping correct but when I changed it to go the ROOT/WEB-INF/cgi-bin. I have now getting the following error. Any help would be highly appreciate (even to the point of naming my next born after you.:-) ) Allen (error msg) HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContext.invoke(Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.AccessLogValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve. java
RE: Configuring and using cgi scripts in Tomcat
JAVA_HOME points to /usr/java1.2. In that directory I have the j2ee and it information. I am currently downloading the Java 2 SDK, Standard Edition 1.4.2_01. If I install this and put the information in the class path..will it provide me with what I need. Allen -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:26 AM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:54 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat I have the j2ee.jar file in the classpath...should that not provide the current jdk. Well, no. j2ee.jar is just a library. It happens to be quite large and covers a LOT of functionality. But it is not a java runtime, and it doesn't contain any of the core java (j2se) classes. From the docs on j2ee 1.3.1: Supported Operating Systems and Required Software This release relies on the Java 2 SDK, Standard Edition (J2SE). The reason Yoav recommends you dump j2ee.jar is that it contains a number of classes that Tomcat *already* has, and it's easier to avoid conflicts between different class versions by just removing the entirely un-necessary j2ee.jar from Tomcat's view. Where does JAVA_HOME point to? It should point to an installation of the J2SE JDK version 1.3.x or above. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:12 PM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat In the stack trace, root cause, you'll find: java.lang.NoSuchMethodError: java.lang.Runtime: method exec(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava /lang/Proc ess; not found So something (org.apache.catalina.servlets.CGIServlet$CGIRunner.run) is trying to find a method called: java.langRuntime.exec(String, String[] File) But cannot find it. There is such a method, but only since JDK 1.3 So.. are you running at least 1.3? -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 5:22 PM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Okay... Found out that I did not have the mapping correct but when I changed it to go the ROOT/WEB-INF/cgi-bin. I have now getting the following error. Any help would be highly appreciate (even to the point of naming my next born after you.:-) ) Allen (error msg) HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContext.invoke(Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled
RE: Configuring and using cgi scripts in Tomcat
It's probably called /usr/java1.2. because it : a) had j2ee1.2 in it? b) it had jdk 1.2 in it? If it's a), you don't even have a JDK. If it's b), then then JDK is too old. Either way, you don't have what you need. putting it in the classpath. That really is only important if you're compiling servlets or other java programs, and using the system classpath variable to do the compiling. Tomcat does not use system classpath variables. It uses JAVA_HOME. So just be sure to update JAVA_HOME to the newest JDK, and restart Tomcat. You should be good after that. -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:49 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat JAVA_HOME points to /usr/java1.2. In that directory I have the j2ee and it information. I am currently downloading the Java 2 SDK, Standard Edition 1.4.2_01. If I install this and put the information in the class path..will it provide me with what I need. Allen -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:26 AM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:54 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat I have the j2ee.jar file in the classpath...should that not provide the current jdk. Well, no. j2ee.jar is just a library. It happens to be quite large and covers a LOT of functionality. But it is not a java runtime, and it doesn't contain any of the core java (j2se) classes. From the docs on j2ee 1.3.1: Supported Operating Systems and Required Software This release relies on the Java 2 SDK, Standard Edition (J2SE). The reason Yoav recommends you dump j2ee.jar is that it contains a number of classes that Tomcat *already* has, and it's easier to avoid conflicts between different class versions by just removing the entirely un-necessary j2ee.jar from Tomcat's view. Where does JAVA_HOME point to? It should point to an installation of the J2SE JDK version 1.3.x or above. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:12 PM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat In the stack trace, root cause, you'll find: java.lang.NoSuchMethodError: java.lang.Runtime: method exec(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava /lang/Proc ess; not found So something (org.apache.catalina.servlets.CGIServlet$CGIRunner.run) is trying to find a method called: java.langRuntime.exec(String, String[] File) But cannot find it. There is such a method, but only since JDK 1.3 So.. are you running at least 1.3? -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 5:22 PM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Okay... Found out that I did not have the mapping correct but when I changed it to go the ROOT/WEB-INF/cgi-bin. I have now getting the following error. Any help would be highly appreciate (even to the point of naming my next born after you.:-) ) Allen (error msg) HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv
RE: Configuring and using cgi scripts in Tomcat
It is A... The machine this is on is a Sun with the 2.8 OS. The java directory was /usr/java1.2 and I add the current J2EE to it (at the time j2sdkee1.3.1) and I did not add a JDK. But this should be taken care of by adding Java 2 SDK, Standard Edition 1.4.2_01. I will try that and see what happens. Mike and Yoav..thanks for the help hopefully I can get this installed without any problems and everything works Allen -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:57 AM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat It's probably called /usr/java1.2. because it : a) had j2ee1.2 in it? b) it had jdk 1.2 in it? If it's a), you don't even have a JDK. If it's b), then then JDK is too old. Either way, you don't have what you need. putting it in the classpath. That really is only important if you're compiling servlets or other java programs, and using the system classpath variable to do the compiling. Tomcat does not use system classpath variables. It uses JAVA_HOME. So just be sure to update JAVA_HOME to the newest JDK, and restart Tomcat. You should be good after that. -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:49 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat JAVA_HOME points to /usr/java1.2. In that directory I have the j2ee and it information. I am currently downloading the Java 2 SDK, Standard Edition 1.4.2_01. If I install this and put the information in the class path..will it provide me with what I need. Allen -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:26 AM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:54 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat I have the j2ee.jar file in the classpath...should that not provide the current jdk. Well, no. j2ee.jar is just a library. It happens to be quite large and covers a LOT of functionality. But it is not a java runtime, and it doesn't contain any of the core java (j2se) classes. From the docs on j2ee 1.3.1: Supported Operating Systems and Required Software This release relies on the Java 2 SDK, Standard Edition (J2SE). The reason Yoav recommends you dump j2ee.jar is that it contains a number of classes that Tomcat *already* has, and it's easier to avoid conflicts between different class versions by just removing the entirely un-necessary j2ee.jar from Tomcat's view. Where does JAVA_HOME point to? It should point to an installation of the J2SE JDK version 1.3.x or above. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:12 PM To: 'Tomcat Users List' Subject: RE: Configuring and using cgi scripts in Tomcat In the stack trace, root cause, you'll find: java.lang.NoSuchMethodError: java.lang.Runtime: method exec(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava /lang/Proc ess; not found So something (org.apache.catalina.servlets.CGIServlet$CGIRunner.run) is trying to find a method called: java.langRuntime.exec(String, String[] File) But cannot find it. There is such a method, but only since JDK 1.3 So.. are you running at least 1.3? -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 5:22 PM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Okay... Found out that I did not have the mapping correct but when I changed it to go the ROOT/WEB-INF/cgi-bin. I have now getting the following error. Any help would be highly appreciate (even to the point of naming my next born after you.:-) ) Allen (error msg) HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Applica tionFilterChain.java:269
RE: Configuring and using cgi scripts in Tomcat
Howdy, Read the comments for the CGI servlet in $CATALINA_HOME/conf/web.xml. Yoav Shapira Millennium ChemInformatics -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 5:06 PM To: Tomcat Users List Subject: Configuring and using cgi scripts in Tomcat Hello... I am trying to configure Tomcat to run a perl script that is part of an application I am moving over from another server. Since this is one script I do not want to rewrite it so I thought that I could set the server to run CGI scripts. I have put the entries in the web.xml file and restarted the server but I cannot get the script to run. Has anyone had any success in doing this? Allen This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring and using cgi scripts in Tomcat
I've read those comments and uncommented the lines specified but when I try to run the script it gives me that it is not available. Allen -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 7:55 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Howdy, Read the comments for the CGI servlet in $CATALINA_HOME/conf/web.xml. Yoav Shapira Millennium ChemInformatics -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 5:06 PM To: Tomcat Users List Subject: Configuring and using cgi scripts in Tomcat Hello... I am trying to configure Tomcat to run a perl script that is part of an application I am moving over from another server. Since this is one script I do not want to rewrite it so I thought that I could set the server to run CGI scripts. I have put the entries in the web.xml file and restarted the server but I cannot get the script to run. Has anyone had any success in doing this? Allen This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message may contain proprietary or confidential company information. Any unauthorized use or disclosure is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring and using cgi scripts in Tomcat
Howdy, There's more than uncommenting involved. You have to follow all the instructions in those comments, including the jar file rename and tomcat restart. Then you have to give us much more information about what errors you're seeing. Yoav Shapira Millennium ChemInformatics -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 12:45 PM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat I've read those comments and uncommented the lines specified but when I try to run the script it gives me that it is not available. Allen -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 7:55 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Howdy, Read the comments for the CGI servlet in $CATALINA_HOME/conf/web.xml. Yoav Shapira Millennium ChemInformatics -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 5:06 PM To: Tomcat Users List Subject: Configuring and using cgi scripts in Tomcat Hello... I am trying to configure Tomcat to run a perl script that is part of an application I am moving over from another server. Since this is one script I do not want to rewrite it so I thought that I could set the server to run CGI scripts. I have put the entries in the web.xml file and restarted the server but I cannot get the script to run. Has anyone had any success in doing this? Allen This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring and using cgi scripts in Tomcat
Okay I did all that 1 - Uncommented the lines for the servlet container 2 - Uncommented the lines for the servlet-mapping 3 - renamed the servlets-cgi.renametojar file to servlets-cgi.jar Here are those listings: servlet servlet-namecgi/servlet-name servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class init-param param-nameclientInputTimeout/param-name param-value100/param-value /init-param init-param param-namedebug/param-name param-value6/param-value /init-param init-param param-namecgiPathPrefix/param-name param-valueWEB-INF/cgi-bin/param-value /init-param /servlet servlet-mapping servlet-namecgi/servlet-name url-pattern/cgi-bin/*/url-pattern /servlet-mapping When I places a cgi script out there to just show a statement, I get the following error HTTP Status 404 - /resporta/cgi-bin/animal.cgi type Status report message /resporta/cgi-bin/animal.cgi description The requested resource (/resporta/cgi-bin/animal.cgi) is not available. Apache Tomcat/4.1.18 -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 11:47 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Howdy, There's more than uncommenting involved. You have to follow all the instructions in those comments, including the jar file rename and tomcat restart. Then you have to give us much more information about what errors you're seeing. Yoav Shapira Millennium ChemInformatics -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 12:45 PM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat I've read those comments and uncommented the lines specified but when I try to run the script it gives me that it is not available. Allen -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 7:55 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Howdy, Read the comments for the CGI servlet in $CATALINA_HOME/conf/web.xml. Yoav Shapira Millennium ChemInformatics -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 5:06 PM To: Tomcat Users List Subject: Configuring and using cgi scripts in Tomcat Hello... I am trying to configure Tomcat to run a perl script that is part of an application I am moving over from another server. Since this is one script I do not want to rewrite it so I thought that I could set the server to run CGI scripts. I have put the entries in the web.xml file and restarted the server but I cannot get the script to run. Has anyone had any success in doing this? Allen This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message may contain proprietary or confidential company information. Any unauthorized use or disclosure is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring and using cgi scripts in Tomcat
/resporta/cgi-bin/animal.cgi does not map to /cgi-bin/* I'm guessing resporta is the name of your webapp? Where did you place the script? As I read it, you need to put it in /ROOT/WEB-INF/cgi (I could be wrong). HTH, Jon Wilson, Allen wrote: Okay I did all that 1 - Uncommented the lines for the servlet container 2 - Uncommented the lines for the servlet-mapping 3 - renamed the servlets-cgi.renametojar file to servlets-cgi.jar Here are those listings: servlet servlet-namecgi/servlet-name servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class init-param param-nameclientInputTimeout/param-name param-value100/param-value /init-param init-param param-namedebug/param-name param-value6/param-value /init-param init-param param-namecgiPathPrefix/param-name param-valueWEB-INF/cgi-bin/param-value /init-param /servlet servlet-mapping servlet-namecgi/servlet-name url-pattern/cgi-bin/*/url-pattern /servlet-mapping When I places a cgi script out there to just show a statement, I get the following error HTTP Status 404 - /resporta/cgi-bin/animal.cgi type Status report message /resporta/cgi-bin/animal.cgi description The requested resource (/resporta/cgi-bin/animal.cgi) is not available. Apache Tomcat/4.1.18 -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 11:47 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Howdy, There's more than uncommenting involved. You have to follow all the instructions in those comments, including the jar file rename and tomcat restart. Then you have to give us much more information about what errors you're seeing. Yoav Shapira Millennium ChemInformatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring and using cgi scripts in Tomcat
You mean /ROOT/WEB-INF/cgi-bin... And that is what I thought but when I made a directory at that position. I still was not able to get to the script. Allen -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 12:47 PM To: Tomcat Users List Subject: Re: Configuring and using cgi scripts in Tomcat /resporta/cgi-bin/animal.cgi does not map to /cgi-bin/* I'm guessing resporta is the name of your webapp? Where did you place the script? As I read it, you need to put it in /ROOT/WEB-INF/cgi (I could be wrong). HTH, Jon Wilson, Allen wrote: Okay I did all that 1 - Uncommented the lines for the servlet container 2 - Uncommented the lines for the servlet-mapping 3 - renamed the servlets-cgi.renametojar file to servlets-cgi.jar Here are those listings: servlet servlet-namecgi/servlet-name servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class init-param param-nameclientInputTimeout/param-name param-value100/param-value /init-param init-param param-namedebug/param-name param-value6/param-value /init-param init-param param-namecgiPathPrefix/param-name param-valueWEB-INF/cgi-bin/param-value /init-param /servlet servlet-mapping servlet-namecgi/servlet-name url-pattern/cgi-bin/*/url-pattern /servlet-mapping When I places a cgi script out there to just show a statement, I get the following error HTTP Status 404 - /resporta/cgi-bin/animal.cgi type Status report message /resporta/cgi-bin/animal.cgi description The requested resource (/resporta/cgi-bin/animal.cgi) is not available. Apache Tomcat/4.1.18 -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 11:47 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Howdy, There's more than uncommenting involved. You have to follow all the instructions in those comments, including the jar file rename and tomcat restart. Then you have to give us much more information about what errors you're seeing. Yoav Shapira Millennium ChemInformatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message may contain proprietary or confidential company information. Any unauthorized use or disclosure is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring and using cgi scripts in Tomcat
Okay... I think I have the mapping correct because it now finds the file but tries to download it. I am trying to add a listing to the mime type so that it will process the file as a script. I added the following entry to the mime types mappings list mime-mapping extensioncgi/extension mime-typeapplication/x-httpd-cgi/mime-type /mime-mapping But it stills tries to download the file. Does anyone know of another mime list for CGI Scripts Allen -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 12:47 PM To: Tomcat Users List Subject: Re: Configuring and using cgi scripts in Tomcat /resporta/cgi-bin/animal.cgi does not map to /cgi-bin/* I'm guessing resporta is the name of your webapp? Where did you place the script? As I read it, you need to put it in /ROOT/WEB-INF/cgi (I could be wrong). HTH, Jon Wilson, Allen wrote: Okay I did all that 1 - Uncommented the lines for the servlet container 2 - Uncommented the lines for the servlet-mapping 3 - renamed the servlets-cgi.renametojar file to servlets-cgi.jar Here are those listings: servlet servlet-namecgi/servlet-name servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class init-param param-nameclientInputTimeout/param-name param-value100/param-value /init-param init-param param-namedebug/param-name param-value6/param-value /init-param init-param param-namecgiPathPrefix/param-name param-valueWEB-INF/cgi-bin/param-value /init-param /servlet servlet-mapping servlet-namecgi/servlet-name url-pattern/cgi-bin/*/url-pattern /servlet-mapping When I places a cgi script out there to just show a statement, I get the following error HTTP Status 404 - /resporta/cgi-bin/animal.cgi type Status report message /resporta/cgi-bin/animal.cgi description The requested resource (/resporta/cgi-bin/animal.cgi) is not available. Apache Tomcat/4.1.18 -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 11:47 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Howdy, There's more than uncommenting involved. You have to follow all the instructions in those comments, including the jar file rename and tomcat restart. Then you have to give us much more information about what errors you're seeing. Yoav Shapira Millennium ChemInformatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message may contain proprietary or confidential company information. Any unauthorized use or disclosure is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring and using cgi scripts in Tomcat
) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContext.invoke(Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.AccessLogValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) Apache Tomcat/4.1.18 -Original Message- From: Wilson, Allen Sent: Tuesday, September 23, 2003 3:35 PM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Okay... I think I have the mapping correct because it now finds the file but tries to download it. I am trying to add a listing to the mime type so that it will process the file as a script. I added the following entry to the mime types mappings list mime-mapping extensioncgi/extension mime-typeapplication/x-httpd-cgi/mime-type /mime-mapping But it stills tries to download the file. Does anyone know of another mime list for CGI Scripts Allen -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 12:47 PM To: Tomcat Users List Subject: Re: Configuring and using cgi scripts in Tomcat /resporta/cgi-bin/animal.cgi does not map to /cgi-bin/* I'm guessing resporta is the name of your webapp? Where did you place the script? As I read it, you need to put it in /ROOT/WEB-INF/cgi (I could be wrong). HTH, Jon Wilson, Allen wrote: Okay I did all that 1 - Uncommented the lines for the servlet container 2 - Uncommented the lines for the servlet-mapping 3 - renamed the servlets-cgi.renametojar file to servlets-cgi.jar Here are those listings: servlet servlet-namecgi/servlet-name servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class init-param param-nameclientInputTimeout/param-name param-value100/param-value /init-param init-param param-namedebug/param-name param-value6/param-value /init-param init-param param-namecgiPathPrefix/param-name param-valueWEB-INF/cgi-bin/param-value /init-param /servlet servlet-mapping servlet-namecgi/servlet-name url-pattern/cgi-bin/*/url-pattern /servlet-mapping When I places a cgi script out there to just show a statement, I get the following error HTTP Status 404 - /resporta/cgi-bin/animal.cgi type Status report message /resporta/cgi-bin/animal.cgi description The requested resource (/resporta/cgi-bin/animal.cgi) is not available. Apache Tomcat/4.1.18 -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 11:47 AM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Howdy, There's more than uncommenting involved. You have to follow all the instructions in those comments, including the jar file rename and tomcat restart. Then you have to give us much more
RE: Configuring and using cgi scripts in Tomcat
In the stack trace, root cause, you'll find: java.lang.NoSuchMethodError: java.lang.Runtime: method exec(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava/lang/Proc ess; not found So something (org.apache.catalina.servlets.CGIServlet$CGIRunner.run) is trying to find a method called: java.langRuntime.exec(String, String[] File) But cannot find it. There is such a method, but only since JDK 1.3 So.. are you running at least 1.3? -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 5:22 PM To: Tomcat Users List Subject: RE: Configuring and using cgi scripts in Tomcat Okay... Found out that I did not have the mapping correct but when I changed it to go the ROOT/WEB-INF/cgi-bin. I have now getting the following error. Any help would be highly appreciate (even to the point of naming my next born after you.:-) ) Allen (error msg) HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContext.invoke(Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.valves.AccessLogValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.i nvokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter. java:223) at org.apache.coyote.http11.Http11Processor.process(Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle r.processC onnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) root cause java.lang.NoSuchMethodError: java.lang.Runtime: method exec(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava /lang/Proc ess; not found at org.apache.catalina.servlets.CGIServlet$CGIRunner.run(Compiled Code) at org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:635) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853
Configuring and using cgi scripts in Tomcat
Hello... I am trying to configure Tomcat to run a perl script that is part of an application I am moving over from another server. Since this is one script I do not want to rewrite it so I thought that I could set the server to run CGI scripts. I have put the entries in the web.xml file and restarted the server but I cannot get the script to run. Has anyone had any success in doing this? Allen This message may contain proprietary or confidential company information. Any unauthorized use or disclosure is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting tomcat from init scripts (HP/UX)
It's the former. The latter doesn't occur on this list in my experience. John Lott, Carey wrote: Since nobody has responded does this mean nobody has any more ideas on the problem or am I getting the You idiot. The answer is staring you in the face. silent treatment? If it is the latter, I will admit being an idiot if someone will enlighten me. If it is the former, I want to say thank you for the help I have received to this point because I am farther along then I was, and if I figure out a solution short of a cron entry I'll post it. Thanks again for the help. Carey -Original Message- From: Lott, Carey Sent: Friday, August 15, 2003 11:18 AM To: 'Tomcat Users List' Subject: RE: Starting tomcat from init scripts (HP/UX) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting tomcat from init scripts (HP/UX)
I have the following recommendations: - put a 'set -xv' in all batch scripts that are part of the startup procedure. - I'm not familiar with HP/UX. Under linux I would try to strace the startscript. (Under solaris it's truss) -Original Message- From: Lott, Carey [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 10:47 PM To: 'Tomcat Users List' Subject: RE: Starting tomcat from init scripts (HP/UX) I tried calling the startup.sh instead of catalina.sh, but I had the same outcome. It executes the first part of the script which displays the variables that are being used, but it doesn't do anything more. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting tomcat from init scripts (HP/UX)
Since nobody has responded does this mean nobody has any more ideas on the problem or am I getting the You idiot. The answer is staring you in the face. silent treatment? If it is the latter, I will admit being an idiot if someone will enlighten me. If it is the former, I want to say thank you for the help I have received to this point because I am farther along then I was, and if I figure out a solution short of a cron entry I'll post it. Thanks again for the help. Carey -Original Message- From: Lott, Carey Sent: Friday, August 15, 2003 11:18 AM To: 'Tomcat Users List' Subject: RE: Starting tomcat from init scripts (HP/UX) Ok, I finally got the script to execute correctly and I got the familiar output: Using CATALINA_BASE: /bto/appl/apache/jakarta-tomcat-4.0.4 Using CATALINA_HOME: /bto/appl/apache/jakarta-tomcat-4.0.4 Using CATALINA_TMPDIR: /bto/appl/apache/jakarta-tomcat-4.0.4/temp Using JAVA_HOME: /opt/java1.4 But tomcat still isn't starting, and I am not receiving any other errors. Also the script executes fine when I do it from command line. I have placed the start/stop script in /sbin/init.d/. I have made the script be last to start and first to stop. I couldn't get the script to recognize the env variables when they were in the rc.config.d directory, so I placed them directly in the script which seems to have worked, but the process still isn't starting. Can anybody give me any other ideas as to what could be wrong or what I could try? Any ideas how I can get a better error information? Below is the start/stop script - /sbin/init.d/tomcat. Can you see anything missing? Thanks in advance for everybody's input and help. #!/sbin/sh # Start/Stop for Tomcat Java Servlet Container # PATH=/sbin:/usr/sbin:/usr/bin export PATH ## Source global configuration file ##. /etc/rc.config # Needed variables CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=/opt/java1.4 export JAVA_HOME CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.jar:/opt/ java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.jar:/o pt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/java 1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/j re/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4/ jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-tom cat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.0.4/ webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle/pro duct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH case $1 in start_msg) echo Starting Tomcat ;; 'start') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 21 ;; stop_msg) echo Stopping Tomcat ;; 'stop') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 21 ;; esac exit 0; signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account phone404-529-6676/phone email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature disclaimer * The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. /disclaimer -Original Message- From: Morgan Pyne [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 3:54 AM To: Tomcat Users List Subject: RE: Starting tomcat from init scripts (HP/UX) Have a look at /usr/share/doc/start_up.txt or /usr/share/doc/start_up.ps on a HP-UX 11.00 machine for details of how to write a startup script conforming to HP-UX's standards (for issuing messages at startup and shutdown via the 'start_msg' and 'stop_msg' parameters, honouring the settings in /etc/rc.config.d etc...). You can use any of the scripts in /sbin/init.d as a basis - modify one as appropriate and get it to simply call catalina.sh. We also modified our catalina.sh to check which userid was calling the script. If it was root it would sudo to the non-privileged user that Tomcat ran under ('tomcat'). If it was userid 'tomcat' calling it it would simply continue. If it was anyone else, it would exit with an error message. This way we get Tomcat started as a non-privileged user starting automatically on boot. Regards, Morgan -Original Message- From
Re: Starting tomcat from init scripts (HP/UX)
1 - You classpath is probably wrong - it should be tiny to allow dynamic classloading so classes may be reloaded 2 - Try using startup.sh, here is an easy way: cd /bto/appl/apache/jakarta-tomcat-4.0.4 bin/startup.sh instead of catalina.sh. 3 - Temporarily - hack the startup scripts to print crap to standard out so you can trap the error messages for more information 4 - There should be error messages somewhere - but do the above since they can't seem to be found -Tim Lott, Carey wrote: Since nobody has responded does this mean nobody has any more ideas on the problem or am I getting the You idiot. The answer is staring you in the face. silent treatment? If it is the latter, I will admit being an idiot if someone will enlighten me. If it is the former, I want to say thank you for the help I have received to this point because I am farther along then I was, and if I figure out a solution short of a cron entry I'll post it. Thanks again for the help. Carey -Original Message- From: Lott, Carey Sent: Friday, August 15, 2003 11:18 AM To: 'Tomcat Users List' Subject: RE: Starting tomcat from init scripts (HP/UX) Ok, I finally got the script to execute correctly and I got the familiar output: Using CATALINA_BASE: /bto/appl/apache/jakarta-tomcat-4.0.4 Using CATALINA_HOME: /bto/appl/apache/jakarta-tomcat-4.0.4 Using CATALINA_TMPDIR: /bto/appl/apache/jakarta-tomcat-4.0.4/temp Using JAVA_HOME: /opt/java1.4 But tomcat still isn't starting, and I am not receiving any other errors. Also the script executes fine when I do it from command line. I have placed the start/stop script in /sbin/init.d/. I have made the script be last to start and first to stop. I couldn't get the script to recognize the env variables when they were in the rc.config.d directory, so I placed them directly in the script which seems to have worked, but the process still isn't starting. Can anybody give me any other ideas as to what could be wrong or what I could try? Any ideas how I can get a better error information? Below is the start/stop script - /sbin/init.d/tomcat. Can you see anything missing? Thanks in advance for everybody's input and help. #!/sbin/sh # Start/Stop for Tomcat Java Servlet Container # PATH=/sbin:/usr/sbin:/usr/bin export PATH ## Source global configuration file ##. /etc/rc.config # Needed variables CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=/opt/java1.4 export JAVA_HOME CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.jar:/opt/ java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.jar:/o pt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/java 1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/j re/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4/ jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-tom cat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.0.4/ webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle/pro duct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH case $1 in start_msg) echo Starting Tomcat ;; 'start') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 21 ;; stop_msg) echo Stopping Tomcat ;; 'stop') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 21 ;; esac exit 0; signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account phone404-529-6676/phone email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature disclaimer * The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. /disclaimer -Original Message- From: Morgan Pyne [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 3:54 AM To: Tomcat Users List Subject: RE: Starting tomcat from init scripts (HP/UX) Have a look at /usr/share/doc/start_up.txt or /usr/share/doc/start_up.ps on a HP-UX 11.00 machine for details of how to write a startup script conforming to HP-UX's standards (for issuing messages at startup and shutdown via the 'start_msg' and 'stop_msg' parameters, honouring the settings in /etc/rc.config.d etc...). You can use any of the scripts in /sbin/init.d as a basis - modify one
Can't find startup scripts after installing Linux RPM
I'm running RedHat 8.0. Following the instructions in Tomcat: The Definitive Guide, I downloaded and installed tomcat4-4.1.24-full.2jpp.noarch.rpm. Under Starting Up and Shutting Down (page 13), the book says I should be able to find startup scripts in the bin subdirectory, by which I assume they mean /var/tomcat4/bin/. However, in that directory, all I see are: bootstrap.jar commons-daemon.jar tomcat-jni.jar In fact, I don't see the catalina.sh startup script anywhere: [EMAIL PROTECTED] tomcat4]# find / -name '*catalina*' -print /var/tomcat4/server/lib/catalina-ant.jar /var/tomcat4/server/lib/catalina.jar /var/tomcat4/webapps/tomcat-docs/catalina /var/tomcat4/webapps/tomcat-docs/catalina/docs/api/org/apache/catalina /etc/tomcat4/catalina.policy What am I doing wrong? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't find startup scripts after installing Linux RPM
On Sunday 17 August 2003 10:05, Roy Smith wrote: I'm running RedHat 8.0. Following the instructions in Tomcat: The Definitive Guide, I downloaded and installed tomcat4-4.1.24-full.2jpp.noarch.rpm. Under Starting Up and Shutting Down (page 13), the book says I should be able to find startup scripts in the bin subdirectory, by which I assume they mean /var/tomcat4/bin/. However, in that directory, all I see are: bootstrap.jar commons-daemon.jar tomcat-jni.jar In fact, I don't see the catalina.sh startup script anywhere: [EMAIL PROTECTED] tomcat4]# find / -name '*catalina*' -print /var/tomcat4/server/lib/catalina-ant.jar /var/tomcat4/server/lib/catalina.jar /var/tomcat4/webapps/tomcat-docs/catalina /var/tomcat4/webapps/tomcat-docs/catalina/docs/api/org/apache/catalina /etc/tomcat4/catalina.policy What am I doing wrong? Using an RPM. I have several servers running Redhat 8.0 and Tomcat (4.1.24 and 5.07) and it is a breeze to setup using a tarball (e.g. jakarta-tomcat-4.1.24.tar.gz). Just copy it to /usr/local (or whereever you want) and type tar xvfz jakarta-tomcat-4.1.24.tar.gz and you have installed it. Whenever I have tried the RPM approach (and looking at the submitted problems in the list I am not the only one) I have had problem. At least for tomcat (or Apache), I recommend staying away from the RPM distributions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't find startup scripts after installing Linux RPM
On Sunday, August 17, 2003, at 12:50 PM, Richard Dunn wrote: What am I doing wrong? Using an RPM. I should have learned by now that RPM's are evil. I'm not sure what made me pick that option this time. Anyway, I grabbed the tar file, installed it that way, and all is well. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting tomcat from init scripts (HP/UX)
Ok, I finally got the script to execute correctly and I got the familiar output: Using CATALINA_BASE: /bto/appl/apache/jakarta-tomcat-4.0.4 Using CATALINA_HOME: /bto/appl/apache/jakarta-tomcat-4.0.4 Using CATALINA_TMPDIR: /bto/appl/apache/jakarta-tomcat-4.0.4/temp Using JAVA_HOME: /opt/java1.4 But tomcat still isn't starting, and I am not receiving any other errors. Also the script executes fine when I do it from command line. I have placed the start/stop script in /sbin/init.d/. I have made the script be last to start and first to stop. I couldn't get the script to recognize the env variables when they were in the rc.config.d directory, so I placed them directly in the script which seems to have worked, but the process still isn't starting. Can anybody give me any other ideas as to what could be wrong or what I could try? Any ideas how I can get a better error information? Below is the start/stop script - /sbin/init.d/tomcat. Can you see anything missing? Thanks in advance for everybody's input and help. #!/sbin/sh # Start/Stop for Tomcat Java Servlet Container # PATH=/sbin:/usr/sbin:/usr/bin export PATH ## Source global configuration file ##. /etc/rc.config # Needed variables CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=/opt/java1.4 export JAVA_HOME CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.jar:/opt/ java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.jar:/o pt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/java 1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/j re/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4/ jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-tom cat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.0.4/ webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle/pro duct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH case $1 in start_msg) echo Starting Tomcat ;; 'start') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 21 ;; stop_msg) echo Stopping Tomcat ;; 'stop') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 21 ;; esac exit 0; signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account phone404-529-6676/phone email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature disclaimer * The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. /disclaimer -Original Message- From: Morgan Pyne [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 3:54 AM To: Tomcat Users List Subject: RE: Starting tomcat from init scripts (HP/UX) Have a look at /usr/share/doc/start_up.txt or /usr/share/doc/start_up.ps on a HP-UX 11.00 machine for details of how to write a startup script conforming to HP-UX's standards (for issuing messages at startup and shutdown via the 'start_msg' and 'stop_msg' parameters, honouring the settings in /etc/rc.config.d etc...). You can use any of the scripts in /sbin/init.d as a basis - modify one as appropriate and get it to simply call catalina.sh. We also modified our catalina.sh to check which userid was calling the script. If it was root it would sudo to the non-privileged user that Tomcat ran under ('tomcat'). If it was userid 'tomcat' calling it it would simply continue. If it was anyone else, it would exit with an error message. This way we get Tomcat started as a non-privileged user starting automatically on boot. Regards, Morgan -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 02:11 To: Tomcat Users List Subject: RE: Starting tomcat from init scripts (HP/UX) Tim is right. In HP/UX there is a default start script (I forget what it's called). You plug in the name of your service and add any other stuff it might need. You define you service as being active somewhere else. (I know I'm not much help but it's been a while). That way when it starts you get the [OK] message. -e On Thu, 7 Aug 2003, Lott, Carey wrote: I tried calling the startup.sh instead of catalina.sh, but I had the same outcome. It executes
Re: Starting tomcat from init scripts (HP/UX)
Put your startup wrapper in inittab. (Our wrapper was a copy and tweak of some other script also called from initab ) -Tim Lott, Carey wrote: Hi, The above subject is based on the exact same topic I found in the archives from back in January, but no solution was ever posted. We are having the exact same problem that Pascal was having. We are trying to start tomcat from an init script at boot time. I have the needed variables in the init script, and the init script calls catalina.sh directly. Below is a copy of my script. I have used the script to stop and start tomcat manually without a problem. However, when Tomcat tries to start at boot time the run control information states that it can't start as root, and it is going to try as bin, but it is unsuccessful. Does anybody know why it wouldn't be able to start as root? What can I do to fix this? Init script: - #!/bin/sh # Start/Stop for Tomcat Java Servlet Container # CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=/opt/java1.4 export JAVA_HOME CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.jar:/opt /java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.jar:/ opt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/jav a1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/ jre/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4 /jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-to mcat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.0.4 /webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle/pr oduct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH case $1 in 'start') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 21 ;; 'stop') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 21 ;; esac Thank you for any help you can offer. Carey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting tomcat from init scripts (HP/UX)
Have a look at /usr/share/doc/start_up.txt or /usr/share/doc/start_up.ps on a HP-UX 11.00 machine for details of how to write a startup script conforming to HP-UX's standards (for issuing messages at startup and shutdown via the 'start_msg' and 'stop_msg' parameters, honouring the settings in /etc/rc.config.d etc...). You can use any of the scripts in /sbin/init.d as a basis - modify one as appropriate and get it to simply call catalina.sh. We also modified our catalina.sh to check which userid was calling the script. If it was root it would sudo to the non-privileged user that Tomcat ran under ('tomcat'). If it was userid 'tomcat' calling it it would simply continue. If it was anyone else, it would exit with an error message. This way we get Tomcat started as a non-privileged user starting automatically on boot. Regards, Morgan -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 02:11 To: Tomcat Users List Subject: RE: Starting tomcat from init scripts (HP/UX) Tim is right. In HP/UX there is a default start script (I forget what it's called). You plug in the name of your service and add any other stuff it might need. You define you service as being active somewhere else. (I know I'm not much help but it's been a while). That way when it starts you get the [OK] message. -e On Thu, 7 Aug 2003, Lott, Carey wrote: I tried calling the startup.sh instead of catalina.sh, but I had the same outcome. It executes the first part of the script which displays the variables that are being used, but it doesn't do anything more. We haven't been able to find any errors to give us an idea of what the problem is. I'm sorry I think I forgot to say in the initial email that I am running Tomcat 4.0.4 on HP/UX 11.00. I appreciate any suggestions you can offer. signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account phone404-529-6676/phone email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature disclaimer * The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. /disclaimer -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 2:11 PM To: Tomcat Users List Subject: Re: Starting tomcat from init scripts (HP/UX) Hi, It's been a while since I tinkered with HP/UX but it seems to me that you can set all your varibles in the default tomcat start scripts and then call the default startup.sh and shutdown.sh. -e On Thu, 7 Aug 2003, Lott, Carey wrote: Hi, The above subject is based on the exact same topic I found in the archives from back in January, but no solution was ever posted. We are having the exact same problem that Pascal was having. We are trying to start tomcat from an init script at boot time. I have the needed variables in the init script, and the init script calls catalina.sh directly. Below is a copy of my script. I have used the script to stop and start tomcat manually without a problem. However, when Tomcat tries to start at boot time the run control information states that it can't start as root, and it is going to try as bin, but it is unsuccessful. Does anybody know why it wouldn't be able to start as root? What can I do to fix this? Init script: - #!/bin/sh # Start/Stop for Tomcat Java Servlet Container # CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=/opt/java1.4 export JAVA_HOME CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet. ja r:/opt /java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt .jar:/ opt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/o pt/jav a1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/ja va1.4/ jre/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/j ava1.4 /jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jaka rta-to mcat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat -4.0.4 /webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/ora cle/pr oduct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH
Re: Where to put js scripts on tomcat server...
It will be relative to the directory you see in your browser. For instance, if you have this... http://localhost:8080/mycontext/mypage.jsp The .jsp file below would be loaded from the root of /mycontext just like mypage.jsp is. The URL to it would be... http://localhost:8080/mycontext/filename.js Keep in mind that the script source path has nothing to do with servlet mappings and such. It is resolved by the browser. This means it definitely cannot be under WEB-INF since that is not directly accessible via a browser. It is a server-side concept so only server-side code has access to it. Here is where it would physically exist in your webapp... /webapps/mycontext/filename.js Jake At 08:48 PM 8/11/2003 -0400, you wrote: Greetings, I assume this has been asked before, but I can't seem to track it down in the archives or any other document I have found. I am having trouble inserting a script type=text/javascript language=javascript src=filename.js/script into my HTML output and the browser being able to find the JS file. I have tried putting the js files into various directories but have not been successful in find the correct place. I have tried putting them in the following locations: webapps/* webapps/myservlet/* webapps/myservlet/WEB-INF webapps/ROOT webapps/ROOT/WEB-INF but none of these fix the problem of the missing JS file in the brower. Any pointers on what I may be doing wrong (I assume that Tomcat can serve up the JS files just as it can my Image files). Thanks in advance, Don Reese - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where to put js scripts on tomcat server...
Greetings, I assume this has been asked before, but I can't seem to track it down in the archives or any other document I have found. I am having trouble inserting a script type=text/javascript language=javascript src=filename.js/script into my HTML output and the browser being able to find the JS file. I have tried putting the js files into various directories but have not been successful in find the correct place. I have tried putting them in the following locations: webapps/* webapps/myservlet/* webapps/myservlet/WEB-INF webapps/ROOT webapps/ROOT/WEB-INF but none of these fix the problem of the missing JS file in the brower. Any pointers on what I may be doing wrong (I assume that Tomcat can serve up the JS files just as it can my Image files). Thanks in advance, Don Reese - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to put js scripts on tomcat server...
Hi Jacob, With your confirmation as to where the files should be, I was able to track down the issue and it is now resolved. Case sensitivity was the issue - fixed that and now all is well. Don Reese - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, August 11, 2003 9:35 PM Subject: Re: Where to put js scripts on tomcat server... It will be relative to the directory you see in your browser. For instance, if you have this... http://localhost:8080/mycontext/mypage.jsp The .jsp file below would be loaded from the root of /mycontext just like mypage.jsp is. The URL to it would be... http://localhost:8080/mycontext/filename.js Keep in mind that the script source path has nothing to do with servlet mappings and such. It is resolved by the browser. This means it definitely cannot be under WEB-INF since that is not directly accessible via a browser. It is a server-side concept so only server-side code has access to it. Here is where it would physically exist in your webapp... /webapps/mycontext/filename.js Jake At 08:48 PM 8/11/2003 -0400, you wrote: Greetings, I assume this has been asked before, but I can't seem to track it down in the archives or any other document I have found. I am having trouble inserting a script type=text/javascript language=javascript src=filename.js/script into my HTML output and the browser being able to find the JS file. I have tried putting the js files into various directories but have not been successful in find the correct place. I have tried putting them in the following locations: webapps/* webapps/myservlet/* webapps/myservlet/WEB-INF webapps/ROOT webapps/ROOT/WEB-INF but none of these fix the problem of the missing JS file in the brower. Any pointers on what I may be doing wrong (I assume that Tomcat can serve up the JS files just as it can my Image files). Thanks in advance, Don Reese - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting tomcat from init scripts (HP/UX)
Hi, It's been a while since I tinkered with HP/UX but it seems to me that you can set all your varibles in the default tomcat start scripts and then call the default startup.sh and shutdown.sh. -e On Thu, 7 Aug 2003, Lott, Carey wrote: Hi, The above subject is based on the exact same topic I found in the archives from back in January, but no solution was ever posted. We are having the exact same problem that Pascal was having. We are trying to start tomcat from an init script at boot time. I have the needed variables in the init script, and the init script calls catalina.sh directly. Below is a copy of my script. I have used the script to stop and start tomcat manually without a problem. However, when Tomcat tries to start at boot time the run control information states that it can't start as root, and it is going to try as bin, but it is unsuccessful. Does anybody know why it wouldn't be able to start as root? What can I do to fix this? Init script: - #!/bin/sh # Start/Stop for Tomcat Java Servlet Container # CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=/opt/java1.4 export JAVA_HOME CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.jar:/opt /java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.jar:/ opt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/jav a1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/ jre/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4 /jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-to mcat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.0.4 /webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle/pr oduct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH case $1 in 'start') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 21 ;; 'stop') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 21 ;; esac Thank you for any help you can offer. Carey signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Starting tomcat from init scripts (HP/UX)
Hi, The above subject is based on the exact same topic I found in the archives from back in January, but no solution was ever posted. We are having the exact same problem that Pascal was having. We are trying to start tomcat from an init script at boot time. I have the needed variables in the init script, and the init script calls catalina.sh directly. Below is a copy of my script. I have used the script to stop and start tomcat manually without a problem. However, when Tomcat tries to start at boot time the run control information states that it can't start as root, and it is going to try as bin, but it is unsuccessful. Does anybody know why it wouldn't be able to start as root? What can I do to fix this? Init script: - #!/bin/sh # Start/Stop for Tomcat Java Servlet Container # CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=/opt/java1.4 export JAVA_HOME CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.jar:/opt /java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.jar:/ opt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/jav a1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/ jre/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4 /jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-to mcat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.0.4 /webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle/pr oduct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH case $1 in 'start') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 21 ;; 'stop') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 21 ;; esac Thank you for any help you can offer. Carey signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting tomcat from init scripts (HP/UX)
I tried calling the startup.sh instead of catalina.sh, but I had the same outcome. It executes the first part of the script which displays the variables that are being used, but it doesn't do anything more. We haven't been able to find any errors to give us an idea of what the problem is. I'm sorry I think I forgot to say in the initial email that I am running Tomcat 4.0.4 on HP/UX 11.00. I appreciate any suggestions you can offer. signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account phone404-529-6676/phone email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature disclaimer * The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. /disclaimer -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 2:11 PM To: Tomcat Users List Subject: Re: Starting tomcat from init scripts (HP/UX) Hi, It's been a while since I tinkered with HP/UX but it seems to me that you can set all your varibles in the default tomcat start scripts and then call the default startup.sh and shutdown.sh. -e On Thu, 7 Aug 2003, Lott, Carey wrote: Hi, The above subject is based on the exact same topic I found in the archives from back in January, but no solution was ever posted. We are having the exact same problem that Pascal was having. We are trying to start tomcat from an init script at boot time. I have the needed variables in the init script, and the init script calls catalina.sh directly. Below is a copy of my script. I have used the script to stop and start tomcat manually without a problem. However, when Tomcat tries to start at boot time the run control information states that it can't start as root, and it is going to try as bin, but it is unsuccessful. Does anybody know why it wouldn't be able to start as root? What can I do to fix this? Init script: - #!/bin/sh # Start/Stop for Tomcat Java Servlet Container # CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=/opt/java1.4 export JAVA_HOME CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.ja r:/opt /java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.jar:/ opt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/jav a1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/ jre/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4 /jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-to mcat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.0.4 /webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle/pr oduct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH case $1 in 'start') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 21 ;; 'stop') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 21 ;; esac Thank you for any help you can offer. Carey signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting tomcat from init scripts (HP/UX)
Tim is right. In HP/UX there is a default start script (I forget what it's called). You plug in the name of your service and add any other stuff it might need. You define you service as being active somewhere else. (I know I'm not much help but it's been a while). That way when it starts you get the [OK] message. -e On Thu, 7 Aug 2003, Lott, Carey wrote: I tried calling the startup.sh instead of catalina.sh, but I had the same outcome. It executes the first part of the script which displays the variables that are being used, but it doesn't do anything more. We haven't been able to find any errors to give us an idea of what the problem is. I'm sorry I think I forgot to say in the initial email that I am running Tomcat 4.0.4 on HP/UX 11.00. I appreciate any suggestions you can offer. signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account phone404-529-6676/phone email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature disclaimer * The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. /disclaimer -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 2:11 PM To: Tomcat Users List Subject: Re: Starting tomcat from init scripts (HP/UX) Hi, It's been a while since I tinkered with HP/UX but it seems to me that you can set all your varibles in the default tomcat start scripts and then call the default startup.sh and shutdown.sh. -e On Thu, 7 Aug 2003, Lott, Carey wrote: Hi, The above subject is based on the exact same topic I found in the archives from back in January, but no solution was ever posted. We are having the exact same problem that Pascal was having. We are trying to start tomcat from an init script at boot time. I have the needed variables in the init script, and the init script calls catalina.sh directly. Below is a copy of my script. I have used the script to stop and start tomcat manually without a problem. However, when Tomcat tries to start at boot time the run control information states that it can't start as root, and it is going to try as bin, but it is unsuccessful. Does anybody know why it wouldn't be able to start as root? What can I do to fix this? Init script: - #!/bin/sh # Start/Stop for Tomcat Java Servlet Container # CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=/opt/java1.4 export JAVA_HOME CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.ja r:/opt /java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.jar:/ opt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/jav a1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/ jre/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4 /jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-to mcat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.0.4 /webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle/pr oduct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH case $1 in 'start') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 21 ;; 'stop') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 21 ;; esac Thank you for any help you can offer. Carey signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
CGI scripts
Hi can i run cgi scripts too through apache if yes then how and where to place them ? -- harsh http://www.cse.iitb.ac.in/~harsh -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI scripts
Hi, I don't know if this is too simple an answer to your question but it is similar to what I have been trying to do and I have discovered that they can be referenced in the all the same ways as a normal http address, e.g. anchors, etc. (e.g. http://localhost/directory/cgiscriptname. If you need something more complicated then look at URLConnection and HttpURLConnection. You effectively simulate a servlet GET request by opening an input stream on the connection but you may need to use URLEncode for the parameters. Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: harsh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 07, 2003 4:02 PM Subject: CGI scripts Hi can i run cgi scripts too through apache if yes then how and where to place them ? -- harsh http://www.cse.iitb.ac.in/~harsh -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: new instalation missing startup scripts
Zachary Kuhn wrote: I just installed the 4.1.8 release of Tomcat via the linux binary RPM. However, when I go to /var/tomcat4/bin i have no startup scripts, only a couple jar files. The docs say the startup files should be there. Is there something I am missing? The bin/ scripts are only found in the binary release. With the .rpm, you launch the server using something like /usr/bin/tomcat4. I wrestled with the rpm for about a week, and then took the advice of everybody who responded to me and switched to the binaries. The documentation is now much more relevant for me, and I have no complaints about installation. I understand the convenience factor, but I would highly recommend using the binaries over the .rpm version, which is weird, undocumented, and prone to problems that the people on this list can't help you with. Jon Roberts www.mentata.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new instalation missing startup scripts
Hi everyone. I just installed the 4.1.8 release of Tomcat via the linux binary RPM. However, when I go to /var/tomcat4/bin i have no startup scripts, only a couple jar files. The docs say the startup files should be there. Is there something I am missing? Zak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Starting tomcat from init scripts (HP/UX)
Hi All, Tomcat starts fine if I call startup.sh manually, but not if it is called from the init scripts when the HP/UX box starts. When trying to start tomcat from the init scripts when the HP/UX box is booting, tomcat seems to start up fine but then on the last line in catalina.out it just says that it is shuttong down and that's the end of it. So the logs are not very useful for helping me figure out what the problem might be. Has anyone encountered this problem, and what was the fix? Thanks, Pascal Forget -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Starting tomcat from init scripts (HP/UX)
Your init scripts do not have the same environment as your login environment. That is, whe you login, things like JAVA_HOME and CATALINA_HOME are set. When you run a script through init, they aren't. Change your init script to set the values of JAVA_HOME and CATALINA_HOME, or source the login files (like /etc/profile, perhaps) where those variables are declared and set. John -Original Message- From: Pascal Forget [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 9:44 AM To: Tomcat Users List Subject: Starting tomcat from init scripts (HP/UX) Hi All, Tomcat starts fine if I call startup.sh manually, but not if it is called from the init scripts when the HP/UX box starts. When trying to start tomcat from the init scripts when the HP/UX box is booting, tomcat seems to start up fine but then on the last line in catalina.out it just says that it is shuttong down and that's the end of it. So the logs are not very useful for helping me figure out what the problem might be. Has anyone encountered this problem, and what was the fix? Thanks, Pascal Forget -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Starting tomcat from init scripts (HP/UX)
Thanks for the tip, John. I already set CATALINA_HOME and JAVA_HOME near the top of catalina.sh for that very reason, so maybe it's something else in the environment. Anyway your email provided us with a good hint on what we should look for. Thanks! Pascal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Starting tomcat from init scripts (HP/UX)
Yeah we had wacky issues with that too. We had some incomptentant admins who tried starting up tomcat before the network was brought up. We also ran into wacky shell behavior (can't remember the specifics) that java did not like to start on boot from any run level. I think in the end we added an entry to /etc/inittab to a internally written/adapted script which takes one arg of stop/start ... and does the appropriate action to all our tomcat instances. I can post the script if I can get permission. Its a hard thing to test because in our 2+ yrs with our HPUX boxes - we rebooted them twice. (And that was because the box needed moved across the country) -Tim Pascal Forget wrote: Hi All, Tomcat starts fine if I call startup.sh manually, but not if it is called from the init scripts when the HP/UX box starts. When trying to start tomcat from the init scripts when the HP/UX box is booting, tomcat seems to start up fine but then on the last line in catalina.out it just says that it is shuttong down and that's the end of it. So the logs are not very useful for helping me figure out what the problem might be. Has anyone encountered this problem, and what was the fix? Thanks, Pascal Forget -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Starting tomcat from init scripts (HP/UX)
Does your init script call catalina.sh directly? John -Original Message- From: Pascal Forget [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 10:17 AM To: Tomcat Users List Subject: Re: Starting tomcat from init scripts (HP/UX) Thanks for the tip, John. I already set CATALINA_HOME and JAVA_HOME near the top of catalina.sh for that very reason, so maybe it's something else in the environment. Anyway your email provided us with a good hint on what we should look for. Thanks! Pascal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Running standard CGI perl scripts under Apache
Is it possible to run standard cgi perl scripts under tomcat 4.x? Thx, CC Chuck Carson Sr. Systems Engineer Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 Work: 858.731.3540 Cell: 858.442.1791 -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
Re: Running standard CGI perl scripts under Apache
Yes, you can. See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html -- Jeanfrancois Red Hat wrote: Is it possible to run standard cgi perl scripts under tomcat 4.x? Thx, CC Chuck Carson Sr. Systems Engineer Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 Work: 858.731.3540 Cell: 858.442.1791 -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Running standard CGI perl scripts under Apache
Thanks, CC -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 18, 2003 11:55 AM To: Tomcat Users List Subject: Re: Running standard CGI perl scripts under Apache Yes, you can. See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html -- Jeanfrancois Red Hat wrote: Is it possible to run standard cgi perl scripts under tomcat 4.x? Thx, CC Chuck Carson Sr. Systems Engineer Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 Work: 858.731.3540 Cell: 858.442.1791 -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1.12 without the scripts
Can some one tell me how to start Tomcat 4.1.12 without the startup.bat script. I would like to the start it from the command line eg. java options classname -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org