Monitor and restart tomcat
Hi, I would like to write a monitoring script (linux shell) checking tomcat is alive and use the result to shutdown and restart tomcat if it does not respond. How can I detect if Tomcat is running? Kill proccess or shutdown? Thanks in advance. Matteo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Monitor and restart tomcat
More: if I use jsvc to launch tomcat as daemon, does jsvc -check provide information abuot tomcat status? -Original Message- From: Matteo Turra Sent: venerdì 30 settembre 2005 11.57 To: tomcat-user@jakarta.apache.org Subject: Monitor and restart tomcat Hi, I would like to write a monitoring script (linux shell) checking tomcat is alive and use the result to shutdown and restart tomcat if it does not respond. How can I detect if Tomcat is running? Kill proccess or shutdown? Thanks in advance. Matteo. - 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]
How to upload and Deploy from script?
I would like to automate the deploy process. There is a method to perform the upload via script like via browser tomcat manager does? I read tomcat manager docs and seems that command issue via http in form of http://{host}:{port}/manager/deploy?{parameters} the war parameters is a path of a war file located in the computer where the tomcat is running. How can I write a script (i.e.: wget http://{host}:{port}/manager/deploy?{parameters}) to upload the war from remote computer? Matteo. _ Matteo TURRA mail: [EMAIL PROTECTED] Analisi sviluppo WEB tel: +39 051 61.11.430 KION Srl web: www.kion.it Via Cristoni, 86 tel: +39 051 61.11.411 40033 Casalecchio di Reno (BO) fax: +39 051 57.04.23 ITALIA _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
isapi_redirect.exe
What the exe file is for? I found isapi_redirect-1.2.8.exe file in binaries from jk connector ftp directory. I tried to run it but I did not find any instruction in decompressed files? Does anybody know how to deal with? Thanks, Matteo. _ Matteo TURRA mail: [EMAIL PROTECTED] Analisi sviluppo WEB tel: +39 051 61.11.430 KION Srl web: www.kion.it Via Cristoni, 86 tel: +39 051 61.11.411 40033 Casalecchio di Reno (BO) fax: +39 051 57.04.23 ITALIA _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK 1.2.8 and IIS 6
Does anybody use jk connector 1.2.8 with IIS 6 on Windows 2003. I follow the few instruction 1) In registry [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] @= extension_uri=/jakarta/isapi_redirect.dll log_file=C:\\Program Files\\Apache Software Foundation\\Jakarta Isapi Redirector\\log\\isapi_redirect.log log_level=debug worker_file=C:\\Program Files\\Apache Software Foundation\\Jakarta Isapi Redirector\\conf\\workers.properties worker_mount_file=C:\\Program Files\\Apache Software Foundation\\Jakarta Isapi Redirector\\conf\\uriworkermap.properties 2) I didn't touch server.xml 3) Tomcat stdout is 20-gen-2005 15.02.21 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 20-gen-2005 15.02.21 org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 20-gen-2005 15.02.21 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/50 config=null 20-gen-2005 15.02.21 org.apache.catalina.startup.Catalina start INFO: Server startup in 42881 ms 4) IIS log say the configuration is OK 2005-01-20 14:17:16 127.0.0.1 GET /jakarta/isapi_redirect.dll - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322) 404 2 1260 5) Jk log is seems OK too [Thu Jan 20 15:17:16 2005] [1964:1968] [debug] map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI '/esse3/Start.do' from 4 maps [Thu Jan 20 15:17:16 2005] [1964:1968] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/esse3/*.pdf' [Thu Jan 20 15:17:16 2005] [1964:1968] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/esse3/*.xls' [Thu Jan 20 15:17:16 2005] [1964:1968] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/esse3/*.do' [Thu Jan 20 15:17:16 2005] [1964:1968] [debug] map_uri_to_worker::jk_uri_worker_map.c (808): Found a suffix match ajp13w - *.do [Thu Jan 20 15:17:16 2005] [1964:1968] [debug] HttpFilterProc::jk_isapi_plugin.c (770): check if [/esse3/Start.do] is points to the web-inf directory [Thu Jan 20 15:17:16 2005] [1964:1968] [debug] HttpFilterProc::jk_isapi_plugin.c (788): [/esse3/Start.do] is a servlet url - should redirect to ajp13w But Tomcat access_log is empty! Any suggestion? _ Matteo TURRA mail: [EMAIL PROTECTED] Analisi sviluppo WEB tel: +39 051 61.11.430 KION Srl web: www.kion.it Via Cristoni, 86 tel: +39 051 61.11.411 40033 Casalecchio di Reno (BO) fax: +39 051 57.04.23 ITALIA _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Linux Threads
Hi, I use tomcat 5.0.28 + jk2 connector + Apache 2 on a Linux Suse sles8 and on Red Hat Enterprise. I try to understand why on Suse with ps command I see multiple apache and tomcat process and on Red Hat only one apache and one tomcat process. I read apache2 docs and with httpd -l command I saw both apache are configured in prefork, this is the output: [EMAIL PROTECTED] root]# httpd -l Compiled in modules: core.c prefork.c http_core.c mod_so.c (I guess prefork.c stands for prefork mpm, but I'm not sure) How Apache and Tomcat manage threads in linux environment? Where can I specify, how many threads and how many process for apache and tomcat? Why I see diff in process count between Suse and Red Hat? Thanks in advance. Matteo. -- A very merry Christmas And a happy New Year Let's hope it's a good one Without any fear -- John Lennon _ Matteo TURRA mail: [EMAIL PROTECTED] Analisi sviluppo WEB tel: +39 051 61.11.430 KION Srl web: www.kion.it Via Cristoni, 86 tel: +39 051 61.11.411 40033 Casalecchio di Reno (BO) fax: +39 051 57.04.23 ITALIA _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat run as a daemon: Is jsvc reliable?
Hi, does anybody know if jsvc included in tomcat 5.0.28 is reliable for production environment? Thanks, Matteo. -- A very merry Christmas And a happy New Year Let's hope it's a good one Without any fear -- John Lennon _ Matteo TURRA mail: [EMAIL PROTECTED] Analisi sviluppo WEB tel: +39 051 61.11.430 KION Srl web: www.kion.it Via Cristoni, 86 tel: +39 051 61.11.411 40033 Casalecchio di Reno (BO) fax: +39 051 57.04.23 ITALIA _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Failed to install Tomcat5 service
Look at the page http://jakarta.apache.org/commons/daemon/procrun.html tomcat //IS//Tomcat5 --DisplayName Tomcat 5.0.12 \ --Description Tomcat 5.0.12 JDK 1.4 http://jakarta.apache.org; \ --ImagePath c:\devtools\tomcat\5.0\bin\bootstrap.jar \ --StartupClass org.apache.catalina.startup.Bootstrap;main;start \ --ShutdownClass org.apache.catalina.startup.Bootstrap;main;stop \ --Java auto Attention: there is a little bug in the above script, substitute tomcat command with tomcat5. Ciao, Matteo -Original Message- From: Jeffrey Steele [mailto:[EMAIL PROTECTED] Sent: venerdì 29 ottobre 2004 19.35 To: Tomcat Users List Subject: RE: Failed to install Tomcat5 service We just had the very same problem when trying to install the service for Tomcat 5.0.28 using service.bat on a Win2000 server... We found that there was an old refrence to a Tomcat 4 service in the Registry... after clearing it out, the Tomcat5 service installed and started fine... Good luck... from your original post: Failed to install Tomcat5 service. Check your settings and permissions. suggests to me that you are not logged in as Administrator? that's probably why the install fails. the DIR of your \bin directory looks like installation failed halfway through. as Yoav says, you'll probably have more joy with the .zip installer, esp if you do not have an administrator logon. you might well still have problems installing the service though...? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday 29 October 2004 14:45 To: Tomcat Users List Subject: RE: Failed to install Tomcat5 service Hi, Try the .zip distribution, just unzip and run. It won't run as a service at first, but it'll get you started. The 5.5.3 exe installer works fine out of the box for me on Win XP pro using Sun JDK 1.5. Yoav Shapira http://www.yoavshapira.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 29, 2004 9:44 AM To: [EMAIL PROTECTED] Subject: FW: Failed to install Tomcat5 service No one is providing answer to my very basic question-which is a show stopper for me. Please help me -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 29, 2004 3:01 PM To: [EMAIL PROTECTED] Subject: Failed to install Tomcat5 service Hi, I'm installing Tomcat 5.5 on Windows XP Professional Box. Jdk version is 1.5. When I issue java -version on cmd prompt I get this output: java version 1.5.0 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64) Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing) I have already set the JAVA_HOME to the proper JRE. But at the time of installing I get this error message: Failed to install Tomcat5 service. Check your settings and permissions. Ignore and continue(not Recommneded) with 3 usual buttons: Abort/Retry/Ignore This happens at the time of performing this action in the installation dialog box: Failed to install tomcat service Using %JAVA_HOME%\bin\client\jvm.dll And then I just cant start tomcat. Please help me out as I'm stuck at the very first step of installing tomcat. My directory structure is as follows: D:\Tomcat 5.5\bintomcat5 [2004-10-26 20:50:52] [373 prunsrv.c] [error] The system cannot find the file specified. [2004-10-26 20:50:52] [1186 prunsrv.c] [error] Load configuration failed D:\Tomcat 5.5\bintomcat5w.exe D:\Tomcat 5.5\bindir Volume in drive D is WINNT_D Volume Serial Number is 744B-4B58 Directory of D:\Tomcat 5.5\bin 26/Oct/04 08:42 PMDIR . 26/Oct/04 08:42 PMDIR .. 06/Oct/04 12:47 AM23,098 bootstrap.jar 06/Oct/04 12:47 AM26,202 commons-logging-api.jar 06/Oct/04 12:48 AM 102,400 tomcat5.exe 06/Oct/04 12:48 AM 131,072 tomcat5w.exe 4 File(s)282,772 bytes 2 Dir(s) 1,352,249,344 bytes free With best regards: Ashutosh Sharma EMC Data Storage Systems (India) Private Limited No. 12, Subramanya Arcade, Tower B,Bannerghatta Road, Bangalore - 560 076. Tel. +91-80-26788930 x 6296 --- -- 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,
IIS 6 - IIS 5 Isolation mode with JK2 ISAPI.dll
I read some post about it, but I cannot understood if and why Isolation Mode is to be set to work properly with JK2 Connector. I tried in both Isolation Mode and without, and everything seems to work. Can somebody explain me? Thanks, Matteo. Everything should be made as simple as possible, but not simpler. -- Albert Einstein _ Matteo TURRA mail: [EMAIL PROTECTED] Analisi sviluppo WEB tel: +39 051 61.11.430 KION Srl web: www.kion.it Via Cristoni, 86 tel: +39 051 61.11.411 40033 Casalecchio di Reno (BO) fax: +39 051 57.04.23 ITALIA _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
split mod_jk2 configuration file for vhosts
I tell apache httpd where is the workers2.properties file with JkSet config.file /etc/httpd/conf/workers2.properties Now I have multiple ip virtual host webapps and each one has a file included in httpd.conf with Include /etc/httpd/conf/vhosts/*.conf How can I configure Jk2 configuration file (workers2.properties) for each host separately? Can I use JkSet config.file /etc/httpd/conf/workers2.properties in each vhosts/xxx.conf file even if I have only one instance of httpd? Thanks, Matteo Turra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Performance Tuning [Apache2 + JK2 + Tomcat]
Hi, does anybody know which parameters are involved in tuning the performance of the configuration in subject? And witch tools use to monitor where are bottlenecks? How can I monitor how many request are queued on apache and how many on tomcat? Thanks, Matteo. Everything should be made as simple as possible, but not simpler. -- Albert Einstein _ Matteo TURRA mail: [EMAIL PROTECTED] Analisi sviluppo WEB tel: +39 051 61.11.430 KION Srl web: www.kion.it Via Cristoni, 86 tel: +39 051 61.11.411 40033 Casalecchio di Reno (BO) fax: +39 051 57.04.23 ITALIA _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple Xalan version in sigle Tomcat instance
Hi, I have two webapps that use different xalan version, how can I put them on the some tomcat instance? Thanks in advance, Matteo. Everything should be made as simple as possible, but not simpler. -- Albert Einstein _ Matteo TURRA mail: [EMAIL PROTECTED] Analisi sviluppo WEB tel: +39 051 61.11.430 KION Srl web: www.kion.it Via Cristoni, 86 tel: +39 051 61.11.411 40033 Casalecchio di Reno (BO) fax: +39 051 57.04.23 ITALIA _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache problem
Check your document root directory in apache configuration file (httpd.conf). Matteo. -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: giovedì 7 ottobre 2004 19.52 To: Tomcat Users List Subject: Re: apache problem Nandish Rudra wrote: Hi, I am running Apache 2.0.49 and Tomcat 5.0.28 on RedHat 9.0. The users are unable to get the images when using the link http://test.test.net/images/test.gif but can get to it using http://test.test.net:8080/images/test.gif. I am new to Apache and would appreciate some help. Regards, Nandish Rudra ECI Conference Call Services, LLC Phone: (973) 796-5043 Cell: (732) 794 5362 Email: [EMAIL PROTECTED] Email2: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] You need to read up on modjk2 first I guess. That will start you on a path to understanding the purpose of each server in this context. If you don't have a reason to use Apache and Tomcat together you could just use Tomcat soley. Either way. I use Tomcat by itself on some servers and I've been very happy with it. Wade - 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]
JK2 Connector for Apache 1.3
I have a Linux SUSE SLES 8, it has apache 1.3. Does I need apache sources to compile jk2 connector to obtain mod_jk2.so to put in module? Can I use JK2 with apache1.3 or I have to use the JK connector? Thanks in advance, Matteo. Everything should be made as simple as possible, but not simpler. -- Albert Einstein _ Matteo TURRA mail: [EMAIL PROTECTED] Analisi sviluppo WEB tel: +39 051 61.11.430 KION Srl web: www.kion.it Via Cristoni, 86 tel: +39 051 61.11.411 40033 Casalecchio di Reno (BO) fax: +39 051 57.04.23 ITALIA _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]