Re: Apache AJP to 4 TCs
Here is the mod_jk log requested [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_util.c (459): Pre-processed log time stamp format is '[%a %b %d %H:%M:%S %Y] ' [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_uri_worker_map.c (770): rule map size is 1 [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_uri_worker_map.c (720): wildchar rule '/*=loadbalancer' source 'JkMount' was added [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_uri_worker_map.c (171): uri map dump after map open: index=0 file='(null)' reject_unsafe=0 reload=60 modified=0 checked=0 [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_uri_worker_map.c (176): generation 0: size=0 nosize=0 capacity=0 [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_uri_worker_map.c (176): generation 1: size=1 nosize=0 capacity=4 [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_uri_worker_map.c (186): NEXT (1) map #0: uri=/* worker=loadbalancer context=/* source=JkMount type=Wildchar len=2 [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_util.c (459): Pre-processed log time stamp format is '[%a %b %d %H:%M:%S %Y] ' [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_uri_worker_map.c (770): rule map size is 1 [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_uri_worker_map.c (720): wildchar rule '/*=loadbalancer' source 'JkMount' was added [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_uri_worker_map.c (171): uri map dump after map open: index=0 file='(null)' reject_unsafe=0 reload=60 modified=0 checked=0 [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_uri_worker_map.c (176): generation 0: size=0 nosize=0 capacity=0 [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_uri_worker_map.c (176): generation 1: size=1 nosize=0 capacity=4 [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_uri_worker_map.c (186): NEXT (1) map #0: uri=/* worker=loadbalancer context=/* source=JkMount type=Wildchar len=2 [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] mod_jk.c (3116): Not using locking. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] mod_jk.c (3128): Setting default connection pool max size to 64 [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.list' with value '1,2,3,loadbalancer' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.1.host' with value '176.16.29.148' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.1.port' with value '8019' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.1.type' with value 'ajp13' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.1.lbfactor' with value '4' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.2.host' with value '176.16.29.148' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.2.port' with value '8029' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.2.type' with value 'ajp13' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.2.lbfactor' with value '5' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.3.host' with value '176.16.29.158' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.3.port' with value '8039' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.3.type' with value 'ajp13' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.3.lbfactor' with value '1' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.4.host' with value '176.16.29.158' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.4.port' with value '8049' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.4.type' with value 'ajp13' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.4.lbfactor' with value '2' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.loadbalancer.type' with value 'lb' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (491): Adding property 'worker.loadbalancer.balance_workers' with value '1,2,3' to map. [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_map.c (774): Checking for references with prefix worker. with wildcard (recursion 1) [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_shm.c (125): worker loadbalancer of type lb has 3 members [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_shm.c (132): shared memory will contain 3 ajp workers of size 320 and 1 lb workers of size 320 with 3 members of size 384+320 [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_shm.c (244): Resetting the shared memory for child 4 [Wed Sep 08
Re: Best practice to upgrade (redeploy) .war files
On Wednesday 08 September 2010 22:49:20 Christopher Schultz wrote: Rainer, On 9/3/2010 2:53 AM, Rainer Frey wrote: And if you use cold deployment only, how do you avoid downtime for other apps? Do you really use one Tomcat instance per app? I use one Tomcat instance per webapp, and I use cold deployment only. I think this is the best way if you have the resources. But I need to host a growing number of rather small, new webapps, and have only one server ATM. Getting the memory config right that it is enough heap even in unexpected activity bursts, and still be able to run the required number of apps within the available RAM seems tricky. I'd really like to hear some input / experiences about production use with several applications with independent release/deploy cycles. I haven't done it, but Tomcat should be able to do hot re-deployment by simply copying the new WAR file over the old one. Is that not an option for you? No, a simple copy triggers no redeployment, as I use autoDeploy=false. I want to trigger the redeployment with the tomcat manager. As I stated in the first mail, that works, but is quite cumbersome: 1. undeploy current webapp with manager. This deletes war file, expanded directory, and conf/Engine/Host/app.xml 2. copy war file and (if needed) app.xml of new version to conf and appBase directory 3. deploy with manager, by specifying .war or .xml and the context path (that was already known to tomcat) What I was looking for is: 1. copy new .war and .xml 2. tell tomcat (manager) to update (redeploy) the already known application context with the new files (where redeploy includes updating/replacing the expanded directory) -chris Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
[OT] Re: Best practice to upgrade (redeploy) .war files
On 09/09/2010 07:10, Rainer Frey wrote: On Wednesday 08 September 2010 22:49:20 Christopher Schultz wrote: Rainer, On 9/3/2010 2:53 AM, Rainer Frey wrote: And if you use cold deployment only, how do you avoid downtime for other apps? Do you really use one Tomcat instance per app? I use one Tomcat instance per webapp, and I use cold deployment only. I think this is the best way if you have the resources. But I need to host a growing number of rather small, new webapps, and have only one server ATM. Getting the memory config right that it is enough heap even in unexpected activity bursts, and still be able to run the required number of apps within the available RAM seems tricky. The memory overhead of actually running Tomcat itself is quite small. If your small, individual apps have different heap usage profiles, then separate Tomcat (and therefore JVMs) is in fact the way to go. Then you can tune the settings for each app, accordingly. p I'd really like to hear some input / experiences about production use with several applications with independent release/deploy cycles. I haven't done it, but Tomcat should be able to do hot re-deployment by simply copying the new WAR file over the old one. Is that not an option for you? No, a simple copy triggers no redeployment, as I use autoDeploy=false. I want to trigger the redeployment with the tomcat manager. As I stated in the first mail, that works, but is quite cumbersome: 1. undeploy current webapp with manager. This deletes war file, expanded directory, and conf/Engine/Host/app.xml 2. copy war file and (if needed) app.xml of new version to conf and appBase directory 3. deploy with manager, by specifying .war or .xml and the context path (that was already known to tomcat) What I was looking for is: 1. copy new .war and .xml 2. tell tomcat (manager) to update (redeploy) the already known application context with the new files (where redeploy includes updating/replacing the expanded directory) -chris Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: Best practice for running Tomcat on port 80
On 09/09/2010 04:30, jan gestre wrote: On Tue, Sep 7, 2010 at 3:40 PM, Pid p...@pidster.com wrote: On 07/09/2010 06:14, jan gestre wrote: On Tue, Sep 7, 2010 at 1:02 PM, Wesley Acheson wesley.ache...@gmail.com wrote: On Tue, Sep 7, 2010 at 4:34 AM, jan gestre ipcopper...@gmail.com wrote: I'm using the latest 6.0.29 binary distribution, and I don't have an idea where to download jsvc, if it's already included I don't know the location, could someone please enlighten me on how to do this. It can be downloaded as part of this bundle http://commons.apache.org/daemon/download_daemon.cgi. Instructions are here http://commons.apache.org/daemon/jsvc.html. Dunno how to use it even after reading the instructions though. Conveniently, the binary you need is included in tomcat/bin: commons-daemon-native.tar.gz I'll assume Linux, as you didn't state explicitly which OS you're using. tar -zxvf commons-daemon-native.tar.gz cd commons-daemon-1.0.2-native-src more RELEASE-NOTES.txt cd unix more INSTALL.txt ... follow the instructions therein. p Hi Pid, I've followed your instructions and was able to create the executable jsvc however I don't know the next step, should I incorporate jsvc to tomcat's init.d script, and change server.xml respectively? If yes, how will I do it? Tomcat is running as an unprivilege user. There's examples of shell scripts called Tomcat.sh, Tomcat5.sh in the unix directory subtree, which may help. Use Tomcat5.sh as a template. It demonstrates how to use configure the jsvc binary. p Here is my tomcat start up file and server.xml if it matters #!/bin/bash # # tomcat Starts Tomcat Java server. # # # chkconfig: 345 88 12 # description: Tomcat is the server for # Java servlet applications. ### BEGIN INIT INFO # Provides: $tomcat ### END INIT INFO JAVA_HOME=/usr/java/jdk1.6.0_21 export JAVA_HOME TOMCAT_HOME=/usr/src/tomcat/bin START_TOMCAT=/usr/src/tomcat/bin/startup.sh STOP_TOMCAT=/usr/src/tomcat/bin/shutdown.sh # Source function library. . /etc/init.d/functions [ -f $START_TOMCAT ] || exit 0 [ -f $STOP_TOMCAT ] || exit 0 RETVAL=0 umask 077 start() { echo -n $Starting Tomcat Java server: daemon su -c $START_TOMCAT tomcat echo return $RETVAL } stop() { echo -n $Shutting down Tomcat Java server: daemon su -c $STOP_TOMCAT tomcat echo return $RETVAL } restart() { stop start } case $1 in start) start ;; stop) stop ;; restart|reload) restart ;; *) echo $Usage: $0 {start|stop|restart} exit 1 esac exit $? 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
pool error timeout waiting for idle object
My application sometimes responding very slow. When I observed the logs, it is showing these lines Cannot get a connection, pool error Timeout waiting for idle object. The maximum connections on oracle I set 150. When I query for present sessions or process it is showing 70 to 80 and decreasing to minimum of 52, sometimes it grows up to 100 above also and it decreasing back to minimum. In tomcat I configured max threads 300. context.xml is Context path= reloadable=true Resource accessToUnderlyingConnectionAllowed=true auth=Container driverClassName=oracle.jdbc.OracleDriver maxActive=200 maxIdle=10 maxWait=8000 validationQuery=SELECT * from dual testOnBorrow=true removeAbandoned=true removeAbandonedTimeout=30 logAbandoned=true name=jdbc/ds password= type=javax.sql.DataSource url= username=/ Resource auth=Container name=mail/Session type=javax.mail.Session mail.smtp.host=localhost/ /Context For few days I am getting this problem.
Re: pool error timeout waiting for idle object
On Thu, Sep 9, 2010 at 8:57 AM, sasidhar prabhakar sasidhar1...@gmail.com wrote: My application sometimes responding very slow. When I observed the logs, it is showing these lines Cannot get a connection, pool error Timeout waiting for idle object. The maximum connections on oracle I set 150. When I query for present sessions or process it is showing 70 to 80 and decreasing to minimum of 52, sometimes it grows up to 100 above also and it decreasing back to minimum. In tomcat I configured max threads 300. context.xml is Context path= reloadable=true Resource accessToUnderlyingConnectionAllowed=true auth=Container driverClassName=oracle.jdbc.OracleDriver maxActive=200 maxIdle=10 maxWait=8000 validationQuery=SELECT * from dual testOnBorrow=true removeAbandoned=true removeAbandonedTimeout=30 logAbandoned=true name=jdbc/ds password= type=javax.sql.DataSource url= username=/ Resource auth=Container name=mail/Session type=javax.mail.Session mail.smtp.host=localhost/ /Context For few days I am getting this problem. More than likely a problem with your Oracle. When you can't get the sessions are you able to get them through another means such as toad or SQLDeveloper. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: pool error timeout waiting for idle object
yes I can get through SQLDeveloper. On Thu, Sep 9, 2010 at 12:32 PM, Wesley Acheson wesley.ache...@gmail.comwrote: On Thu, Sep 9, 2010 at 8:57 AM, sasidhar prabhakar sasidhar1...@gmail.com wrote: My application sometimes responding very slow. When I observed the logs, it is showing these lines Cannot get a connection, pool error Timeout waiting for idle object. The maximum connections on oracle I set 150. When I query for present sessions or process it is showing 70 to 80 and decreasing to minimum of 52, sometimes it grows up to 100 above also and it decreasing back to minimum. In tomcat I configured max threads 300. context.xml is Context path= reloadable=true Resource accessToUnderlyingConnectionAllowed=true auth=Container driverClassName=oracle.jdbc.OracleDriver maxActive=200 maxIdle=10 maxWait=8000 validationQuery=SELECT * from dual testOnBorrow=true removeAbandoned=true removeAbandonedTimeout=30 logAbandoned=true name=jdbc/ds password= type=javax.sql.DataSource url= username=/ Resource auth=Container name=mail/Session type=javax.mail.Session mail.smtp.host=localhost/ /Context For few days I am getting this problem. More than likely a problem with your Oracle. When you can't get the sessions are you able to get them through another means such as toad or SQLDeveloper. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat Load Balancing Not working and Apache URL is giving 500 error
Hello Team, We have installed one instance of apache and 3 instance of tomcat. We have compiled mod_jk module to forward request to 3 instance of tomcat. We have configured workers.properties and it is loaded in httpd.conf file. We are successfully able to redirect request to plain tomcat installation. We are getting 500 internal server error while accessing apache url after deploying our EMATRIX application. Below are the details of workers.properties file and httpd.conf file. # lists the workers by name worker.list=loadbalancer # Tomcat1 configuration worker.tomcat1.port=8009 worker.tomcat1.host=server_name worker.tomcat1.type=ajp13 worker.tomcat1.lbfactor=100 # Tomcat2 configuration worker.tomcat2.port=8010 worker.tomcat2.host=server_name worker.tomcat2.type=ajp13 worker.tomcat2.lbfactor=100 # Tomcat3 configuration worker.tomcat3.port=8011 worker.tomcat3.host=server_name worker.tomcat3.type=ajp13 worker.tomcat3.lbfactor=100 #Load Balance worker configuration worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1,tomcat2,tomcat3 Httpd.conf file details :- LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel info JkMount /eMatrix/* loadbalancer Apache Version details :- 2.0.59 Tomcat Version details :- apache-tomcat-6.0.20 Mod_jk version details :- mod_jk-1.2.24 We have also noticed that jk module is loading properly in apache. [Tue Sep 07 09:43:29 2010] [notice] Apache/2.0.59 (Unix) mod_jk/1.2.24 DAV/2 mod_ssl/2.0.59 OpenSSL/0.9.7d configured -- resuming normal operations kindly help me to acheive loadbalancing from apache to tomcat.
Re: Tomcat Load Balancing Not working and Apache URL is giving 500 error
Hi Amol, I am trying to do the exact same thing. It works for two workers, but fails as soon as I add one worker. Can you please try these alternatives, and let me know if it works for you? worker.loadbalancer.balanced_workers=tomcat1,tomcat2 worker.loadbalancer.balanced_workers=tomcat1,tomcat3 worker.loadbalancer.balanced_workers=tomcat2,tomcat3 For me, as long as I have two workers, it works. It would be interesting if its the same for you? I also came across these links which I am reviewing. It may help you. http://thought-bytes.blogspot.com/2007/03/how-to-load-balance-tomcat-55-with.html http://www.quadbase.com/eres/manual/6_4_Clustering.html http://www.zulutown.com/blog/2009/02/16/java-ee-load-balancing-with-tomcat-and-apache/ Last question, do you have SSL enabled? AB On Thu, Sep 9, 2010 at 5:28 PM, Amol Puglia amolcpug...@yahoo.com wrote: Hello Team, We have installed one instance of apache and 3 instance of tomcat. We have compiled mod_jk module to forward request to 3 instance of tomcat. We have configured workers.properties and it is loaded in httpd.conf file. We are successfully able to redirect request to plain tomcat installation. We are getting 500 internal server error while accessing apache url after deploying our EMATRIX application. Below are the details of workers.properties file and httpd.conf file. # lists the workers by name worker.list=loadbalancer # Tomcat1 configuration worker.tomcat1.port=8009 worker.tomcat1.host=server_name worker.tomcat1.type=ajp13 worker.tomcat1.lbfactor=100 # Tomcat2 configuration worker.tomcat2.port=8010 worker.tomcat2.host=server_name worker.tomcat2.type=ajp13 worker.tomcat2.lbfactor=100 # Tomcat3 configuration worker.tomcat3.port=8011 worker.tomcat3.host=server_name worker.tomcat3.type=ajp13 worker.tomcat3.lbfactor=100 #Load Balance worker configuration worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1,tomcat2,tomcat3 Httpd.conf file details :- LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel info JkMount /eMatrix/* loadbalancer Apache Version details :- 2.0.59 Tomcat Version details :- apache-tomcat-6.0.20 Mod_jk version details :- mod_jk-1.2.24 We have also noticed that jk module is loading properly in apache. [Tue Sep 07 09:43:29 2010] [notice] Apache/2.0.59 (Unix) mod_jk/1.2.24 DAV/2 mod_ssl/2.0.59 OpenSSL/0.9.7d configured -- resuming normal operations kindly help me to acheive loadbalancing from apache to tomcat. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Load Balancing Not working and Apache URL is giving 500 error
Hello Andrew, Thanks for the response. I have tried the alternatives provided by you,but it didnt worked for me. Yes, I have enabled ssl at apache level. #Load Balance worker configuration worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1,tomcat2 worker.loadbalancer.balanced_workers=tomcat1,tomcat3 worker.loadbalancer.balanced_workers=tomcat2,tomcat3 --- On Thu, 9/9/10, Andrew Bruno andrew.br...@gmail.com wrote: From: Andrew Bruno andrew.br...@gmail.com Subject: Re: Tomcat Load Balancing Not working and Apache URL is giving 500 error To: Tomcat Users List users@tomcat.apache.org Date: Thursday, September 9, 2010, 1:13 PM Hi Amol, I am trying to do the exact same thing. It works for two workers, but fails as soon as I add one worker. Can you please try these alternatives, and let me know if it works for you? worker.loadbalancer.balanced_workers=tomcat1,tomcat2 worker.loadbalancer.balanced_workers=tomcat1,tomcat3 worker.loadbalancer.balanced_workers=tomcat2,tomcat3 For me, as long as I have two workers, it works. It would be interesting if its the same for you? I also came across these links which I am reviewing. It may help you. http://thought-bytes.blogspot.com/2007/03/how-to-load-balance-tomcat-55-with.html http://www.quadbase.com/eres/manual/6_4_Clustering.html http://www.zulutown.com/blog/2009/02/16/java-ee-load-balancing-with-tomcat-and-apache/ Last question, do you have SSL enabled? AB On Thu, Sep 9, 2010 at 5:28 PM, Amol Puglia amolcpug...@yahoo.com wrote: Hello Team, We have installed one instance of apache and 3 instance of tomcat. We have compiled mod_jk module to forward request to 3 instance of tomcat. We have configured workers.properties and it is loaded in httpd.conf file. We are successfully able to redirect request to plain tomcat installation. We are getting 500 internal server error while accessing apache url after deploying our EMATRIX application. Below are the details of workers.properties file and httpd.conf file. # lists the workers by name worker.list=loadbalancer # Tomcat1 configuration worker.tomcat1.port=8009 worker.tomcat1.host=server_name worker.tomcat1.type=ajp13 worker.tomcat1.lbfactor=100 # Tomcat2 configuration worker.tomcat2.port=8010 worker.tomcat2.host=server_name worker.tomcat2.type=ajp13 worker.tomcat2.lbfactor=100 # Tomcat3 configuration worker.tomcat3.port=8011 worker.tomcat3.host=server_name worker.tomcat3.type=ajp13 worker.tomcat3.lbfactor=100 #Load Balance worker configuration worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1,tomcat2,tomcat3 Httpd.conf file details :- LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel info JkMount /eMatrix/* loadbalancer Apache Version details :- 2.0.59 Tomcat Version details :- apache-tomcat-6.0.20 Mod_jk version details :- mod_jk-1.2.24 We have also noticed that jk module is loading properly in apache. [Tue Sep 07 09:43:29 2010] [notice] Apache/2.0.59 (Unix) mod_jk/1.2.24 DAV/2 mod_ssl/2.0.59 OpenSSL/0.9.7d configured -- resuming normal operations kindly help me to acheive loadbalancing from apache to tomcat. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: unusual mod_jk 1.2.30 log messages
On Tue, 2010-09-07 at 08:00 +0100, Brett Delle Grazie wrote: On Thu, 2010-09-02 at 18:26 +0200, Rainer Jung wrote: On 02.09.2010 13:39, Brett Delle Grazie wrote: Hi, We're having some strange errors being reported in the 1.2.30 version of mod_jk. We think they might be related to the performance issues we're experiencing under load. OS: RHEL 5.5 (fully patched) Apache HTTPD: 2.2.3 (from OS vendor) mod_jk: 1.2.30 (downloaded from Tomcat site and compiled locally) Tomcat: 6.0.29 (binary distribution from apache.org) JVM: 1.6.0_21 (Sun, 64-bit). Thanks for the info (and for keeping most of it up-to-date) :) A sample is below. I'm mostly concerned about the 'awaited reply cpong recieved 3 instead' and the subsequenct close and failure to send request. Has anyone seen this before? [Thu Sep 02 07:22:47.508 2010] [31759:47279871456000] [info] init_jk::mod_jk.c (3189): mod_jk/1.2.30 initialized [Thu Sep 02 07:22:47.588 2010] [31763:47279871456000] [info] init_jk::mod_jk.c (3189): mod_jk/1.2.30 initialized [Thu Sep 02 07:22:52.896 2010] [31781:1237244224] [warn] ajp_handle_cping_cpong::jk_ajp_common.c (906): awaited reply cpong, received 3 instead. Closing connection [Thu Sep 02 07:22:52.896 2010] [31781:1237244224] [info] ajp_send_request::jk_ajp_common.c (1518): (jvm2) failed sending request, socket -1 prepost cping/cpong failure (errno=0) [Thu Sep 02 07:22:59.647 2010] [31781:1258223936] [warn] ajp_handle_cping_cpong::jk_ajp_common.c (906): awaited reply cpong, received 3 instead. Closing connection [Thu Sep 02 07:22:59.647 2010] [31781:1258223936] [info] ajp_send_request::jk_ajp_common.c (1518): (jvm2) failed sending request, socket -1 prepost cping/cpong failure (errno=0) [Thu Sep 02 07:23:02.042 2010] [32082:1253792064] [warn] ajp_handle_cping_cpong::jk_ajp_common.c (906): awaited reply cpong, received 3 instead. Closing connection [Thu Sep 02 07:23:02.042 2010] [32082:1253792064] [info] ajp_send_request::jk_ajp_common.c (1518): (jvm2) failed sending request, socket -1 prepost cping/cpong failure (errno=0) [Thu Sep 02 07:23:06.142 2010] [32049:1325504832] [warn] ajp_handle_cping_cpong::jk_ajp_common.c (906): awaited reply cpong, received 3 instead. Closing connection [Thu Sep 02 07:23:06.142 2010] [32049:1325504832] [info] ajp_send_request::jk_ajp_common.c (1518): (jvm1) failed sending request, socket -1 prepost cping/cpong failure (errno=0) [Thu Sep 02 07:23:11.231 2010] [32082:1211832640] [info] ajp_process_callback::jk_ajp_common.c (1882): Writing to client aborted or client network problems [Thu Sep 02 07:23:11.231 2010] [32082:1211832640] [info] ajp_service::jk_ajp_common.c (2540): (jvm1) sending request to tomcat failed (unrecoverable), because of client write error (attempt=1) [Thu Sep 02 07:23:11.232 2010] [32082:1211832640] [info] service::jk_lb_worker.c (1388): service failed, worker jvm1 is in local error state [Thu Sep 02 07:23:11.232 2010] [32082:1211832640] [info] service::jk_lb_worker.c (1407): unrecoverable error 200, request failed. Client failed in the middle of request, we can't recover to another instance. [Thu Sep 02 07:23:11.232 2010] [32082:1211832640] [info] jk_handler::mod_jk.c (2611): Aborting connection for worker=balancer [Thu Sep 02 07:23:11.444 2010] [32049:1315014976] [info] ajp_process_callback::jk_ajp_common.c (1882): Writing to client aborted or client network problems [Thu Sep 02 07:23:11.444 2010] [32049:1315014976] [info] ajp_service::jk_ajp_common.c (2540): (jvm1) sending request to tomcat failed (unrecoverable), because of client write error (attempt=1) [Thu Sep 02 07:23:11.445 2010] [32049:1315014976] [info] service::jk_lb_worker.c (1388): service failed, worker jvm1 is in local error state [Thu Sep 02 07:23:11.445 2010] [32049:1315014976] [info] service::jk_lb_worker.c (1407): unrecoverable error 200, request failed. Client failed in the middle of request, we can't recover to another instance. [Thu Sep 02 07:23:11.445 2010] [32049:1315014976] [info] jk_handler::mod_jk.c (2611): Aborting connection for worker=balancer [Thu Sep 02 07:23:11.645 2010] [32082:1232812352] [info] ajp_process_callback::jk_ajp_common.c (1882): Writing to client aborted or client network problems [Thu Sep 02 07:23:11.645 2010] [32082:1232812352] [info] ajp_service::jk_ajp_common.c (2540): (jvm1) sending request to tomcat failed (unrecoverable), because of client write error (attempt=1) [Thu Sep 02 07:23:11.646 2010] [32082:1232812352] [info] service::jk_lb_worker.c (1388): service failed, worker jvm1 is in local error state [Thu Sep 02 07:23:11.646 2010] [32082:1232812352] [info] service::jk_lb_worker.c (1407): unrecoverable error 200, request failed. Client failed in the middle of request, we can't recover to another
Re: Tomcat Load Balancing Not working and Apache URL is giving 500 error
On 09/09/2010 09:28 AM, Amol Puglia wrote: Hello Team, We have also noticed that jk module is loading properly in apache. [Tue Sep 07 09:43:29 2010] [notice] Apache/2.0.59 (Unix) mod_jk/1.2.24 DAV/2 mod_ssl/2.0.59 OpenSSL/0.9.7d configured -- resuming normal operations Beside that it loads, are there any log messages that would help decide why it fails. I see you have worker.xxx.host=server_name Make sure the mod_jk can resolve the server_name to a correct address, and that your firewall (if set) allows those ports. For performance reasons it might be better to use IP addresses instead server names. Also set JkLogLevel debug and see what's going on. Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: pool error timeout waiting for idle object
On 09/09/2010 07:57, sasidhar prabhakar wrote: My application sometimes responding very slow. When I observed the logs, it is showing these lines Cannot get a connection, pool error Timeout waiting for idle object. The maximum connections on oracle I set 150. snip/ maxActive=200 That doesn't look right. There are lots of things that could be going on here and you have provided very little in the way of information. Questions it would be helpful to have the answers to include: - Tomcat version - Oracle version - Oracle JDBC driver type and version - Number of connections from Tomcat reported by Oracle when this happens - What does a thread dump show those connections are doing Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: unusual mod_jk 1.2.30 log messages
On Thu, 2010-09-09 at 09:18 +0100, Brett Delle Grazie wrote: On Tue, 2010-09-07 at 08:00 +0100, Brett Delle Grazie wrote: On Thu, 2010-09-02 at 18:26 +0200, Rainer Jung wrote: On 02.09.2010 13:39, Brett Delle Grazie wrote: Hi, We're having some strange errors being reported in the 1.2.30 version of mod_jk. We think they might be related to the performance issues we're experiencing under load. OS: RHEL 5.5 (fully patched) Apache HTTPD: 2.2.3 (from OS vendor) mod_jk: 1.2.30 (downloaded from Tomcat site and compiled locally) Tomcat: 6.0.29 (binary distribution from apache.org) JVM: 1.6.0_21 (Sun, 64-bit). Thanks for the info (and for keeping most of it up-to-date) :) A sample is below. I'm mostly concerned about the 'awaited reply cpong recieved 3 instead' and the subsequenct close and failure to send request. Has anyone seen this before? [Thu Sep 02 07:22:47.508 2010] [31759:47279871456000] [info] init_jk::mod_jk.c (3189): mod_jk/1.2.30 initialized [Thu Sep 02 07:22:47.588 2010] [31763:47279871456000] [info] init_jk::mod_jk.c (3189): mod_jk/1.2.30 initialized [Thu Sep 02 07:22:52.896 2010] [31781:1237244224] [warn] ajp_handle_cping_cpong::jk_ajp_common.c (906): awaited reply cpong, received 3 instead. Closing connection [Thu Sep 02 07:22:52.896 2010] [31781:1237244224] [info] ajp_send_request::jk_ajp_common.c (1518): (jvm2) failed sending request, socket -1 prepost cping/cpong failure (errno=0) [Thu Sep 02 07:22:59.647 2010] [31781:1258223936] [warn] ajp_handle_cping_cpong::jk_ajp_common.c (906): awaited reply cpong, received 3 instead. Closing connection [Thu Sep 02 07:22:59.647 2010] [31781:1258223936] [info] ajp_send_request::jk_ajp_common.c (1518): (jvm2) failed sending request, socket -1 prepost cping/cpong failure (errno=0) [Thu Sep 02 07:23:02.042 2010] [32082:1253792064] [warn] ajp_handle_cping_cpong::jk_ajp_common.c (906): awaited reply cpong, received 3 instead. Closing connection [Thu Sep 02 07:23:02.042 2010] [32082:1253792064] [info] ajp_send_request::jk_ajp_common.c (1518): (jvm2) failed sending request, socket -1 prepost cping/cpong failure (errno=0) [Thu Sep 02 07:23:06.142 2010] [32049:1325504832] [warn] ajp_handle_cping_cpong::jk_ajp_common.c (906): awaited reply cpong, received 3 instead. Closing connection [Thu Sep 02 07:23:06.142 2010] [32049:1325504832] [info] ajp_send_request::jk_ajp_common.c (1518): (jvm1) failed sending request, socket -1 prepost cping/cpong failure (errno=0) [Thu Sep 02 07:23:11.231 2010] [32082:1211832640] [info] ajp_process_callback::jk_ajp_common.c (1882): Writing to client aborted or client network problems [Thu Sep 02 07:23:11.231 2010] [32082:1211832640] [info] ajp_service::jk_ajp_common.c (2540): (jvm1) sending request to tomcat failed (unrecoverable), because of client write error (attempt=1) [Thu Sep 02 07:23:11.232 2010] [32082:1211832640] [info] service::jk_lb_worker.c (1388): service failed, worker jvm1 is in local error state [Thu Sep 02 07:23:11.232 2010] [32082:1211832640] [info] service::jk_lb_worker.c (1407): unrecoverable error 200, request failed. Client failed in the middle of request, we can't recover to another instance. [Thu Sep 02 07:23:11.232 2010] [32082:1211832640] [info] jk_handler::mod_jk.c (2611): Aborting connection for worker=balancer [Thu Sep 02 07:23:11.444 2010] [32049:1315014976] [info] ajp_process_callback::jk_ajp_common.c (1882): Writing to client aborted or client network problems [Thu Sep 02 07:23:11.444 2010] [32049:1315014976] [info] ajp_service::jk_ajp_common.c (2540): (jvm1) sending request to tomcat failed (unrecoverable), because of client write error (attempt=1) [Thu Sep 02 07:23:11.445 2010] [32049:1315014976] [info] service::jk_lb_worker.c (1388): service failed, worker jvm1 is in local error state [Thu Sep 02 07:23:11.445 2010] [32049:1315014976] [info] service::jk_lb_worker.c (1407): unrecoverable error 200, request failed. Client failed in the middle of request, we can't recover to another instance. [Thu Sep 02 07:23:11.445 2010] [32049:1315014976] [info] jk_handler::mod_jk.c (2611): Aborting connection for worker=balancer [Thu Sep 02 07:23:11.645 2010] [32082:1232812352] [info] ajp_process_callback::jk_ajp_common.c (1882): Writing to client aborted or client network problems [Thu Sep 02 07:23:11.645 2010] [32082:1232812352] [info] ajp_service::jk_ajp_common.c (2540): (jvm1) sending request to tomcat failed (unrecoverable), because of client write error (attempt=1) [Thu Sep 02 07:23:11.646 2010] [32082:1232812352] [info] service::jk_lb_worker.c (1388): service failed, worker jvm1 is in local error state [Thu Sep 02 07:23:11.646 2010] [32082:1232812352] [info]
Re: pool error timeout waiting for idle object
tomcat - 6 oracle 11g centos 5 jdbc type 4 the thread dump some of threads are http-80-262 daemon prio=1 tid=0x73048fd8 nid=0x268a waiting for monitor entry [0x6f975000..0x6f9760b0] at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294) - waiting to lock 0x87287c00 (a org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory) at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974) at org.apache.tomcat.dbcp.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:84) at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) at com.common.dao.LoginDAO.login(LoginDAO.java:87) at com.common.bo.LoginBO.login(LoginBO.java:28) at com.common.actionform.LoginForm.validate(LoginForm.java:54) at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:945) http-80-259 daemon prio=1 tid=0x71903f60 nid=0x2687 waiting for monitor entry [0x6fbfa000..0x6fbfb030] at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294) - waiting to lock 0x87287c00 (a org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory) at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974) at org.apache.tomcat.dbcp.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:84) at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) at com.cont.quiz.dao.QuizDAO.updateUserSelectionOfQOption(QuizDAO.java:320) at com.cont.quiz.bo.QuizBO.updateUserSelectionOfQOption(QuizBO.java:51) at com.cont.quiz.action.AnsOfQuizQuestionAction.execute(AnsOfQuizQuestionAction.java:61) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) http-80-257 daemon prio=1 tid=0x7aafeb68 nid=0x242b waiting for monitor entry [0x6fc7b000..0x6fc7beb0] at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294) - waiting to lock 0x87287c00 (a org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory) at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974) at org.apache.tomcat.dbcp.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:84) at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) at com.stat.dao.StatisticsDAO.updateVisitor(StatisticsDAO.java:75) at com.stat.bo.StatisticsBO.updateVisitor(StatisticsBO.java:27) at org.apache.jsp.jsp.common_jsp._jspService(main_jsp.java:650) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) On Thu, Sep 9, 2010 at 2:31 PM, Mark Thomas ma...@apache.org wrote: On 09/09/2010 07:57, sasidhar prabhakar wrote: My application sometimes responding very slow. When I observed the logs, it is showing these lines Cannot get a connection, pool error Timeout waiting for idle object. The maximum connections on oracle I set 150. snip/ maxActive=200 That doesn't look right. There are lots of things that could be going on here and you have provided very little in the way of information. Questions it would be helpful to have the answers to include: - Tomcat version - Oracle version - Oracle JDBC driver type and version - Number of connections from Tomcat reported by Oracle when this happens - What does a thread dump show those connections are doing Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Load Balancing Not working and Apache URL is giving 500 error
On 09/09/2010 09:59, Mladen Turk wrote: On 09/09/2010 09:28 AM, Amol Puglia wrote: Hello Team, We have also noticed that jk module is loading properly in apache. [Tue Sep 07 09:43:29 2010] [notice] Apache/2.0.59 (Unix) mod_jk/1.2.24 DAV/2 mod_ssl/2.0.59 OpenSSL/0.9.7d configured -- resuming normal operations Beside that it loads, are there any log messages that would help decide why it fails. +1 If the connection is making it through to Tomcat, then the 500 will appear in an access log there, if you have one configured, or as a stacktrace in the main logs. If not, then the HTTPD error_log will give you an idea of what the error really is. p I see you have worker.xxx.host=server_name Make sure the mod_jk can resolve the server_name to a correct address, and that your firewall (if set) allows those ports. For performance reasons it might be better to use IP addresses instead server names. Also set JkLogLevel debug and see what's going on. Regards 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: pool error timeout waiting for idle object
On 09/09/2010 10:17, sasidhar prabhakar wrote: tomcat - 6 oracle 11g centos 5 jdbc type 4 That information isn't close to complete and is pretty much useless. When asked for a version number, please provide the *full* version number. You also missed out the JDBC driver version. This is a community of users, not a commercial support portal. The level of help you receive is directly proportional to the effort you are prepared to put in to help yourself. Each member of this community has their own tolerance levels for when they will just start ignoring questions from people who don't appear to be prepared to put some effort into solving their own problem. You are getting close to mine. the thread dump some of threads are http-80-262 daemon prio=1 tid=0x73048fd8 nid=0x268a waiting for monitor entry [0x6f975000..0x6f9760b0] at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294) - waiting to lock 0x87287c00 (a org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory) at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974) at org.apache.tomcat.dbcp.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:84) at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) at com.common.dao.LoginDAO.login(LoginDAO.java:87) at com.common.bo.LoginBO.login(LoginBO.java:28) at com.common.actionform.LoginForm.validate(LoginForm.java:54) at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:945) That isn't the question I asked. What are the threads that already have a connection doing. And whilst you are at it: - how many threads appear to be using a connection? - how many threads appear to be waiting for a connection? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Multi level webapp
Hi, We have an application (Gabjur) composed for several modules (AD, AX, FD...) that should be served throug: http://localhost/Gabjur/AD http://localhost/Gabjur/AX http://localhost/Gabjur/FD... 1.- I have created the context file Gabjur#AD.xml, Gabjur#AX.xml and so on... 2.- I have renamed the .war's to Gabjur#AD.war, Gabjur#FD.war 3.- System deploys perfectly the .war files. The appears when application has to be started. When application starts up it creates automatically a file in the WEB-INF\classes folder called dfc.keystore but for any reason it is nota ble to create it in a folder containing the # character and therefore application does not start up. Is there any workarround to create a multilevel application ? Thanks a lot. Oscar Segarra Rey Àrea de tecnologies de la informació i les comunicacions Departament de la Presidència C/ Sant Honorat 1-3 - 08002 Barcelona 934024834
Re: Multi level webapp
If I understand correctly you want to serve content from http://localhost/Gabjur from one web application and another application from http://localhost/Gabjur/AD etc. Is that the requirement or am I missing anything. Do these war files have any interconnected content? What version of tomcat are you using exactly? Are there any messages written to catalina.out? Which Java version are you using. Regards, Wesley Acheson On Thu, Sep 9, 2010 at 11:47 AM, Oscar Segarra Rey osega...@gencat.cat wrote: Hi, We have an application (Gabjur) composed for several modules (AD, AX, FD...) that should be served throug: http://localhost/Gabjur/AD http://localhost/Gabjur/AX http://localhost/Gabjur/FD... 1.- I have created the context file Gabjur#AD.xml, Gabjur#AX.xml and so on... 2.- I have renamed the .war's to Gabjur#AD.war, Gabjur#FD.war 3.- System deploys perfectly the .war files. The appears when application has to be started. When application starts up it creates automatically a file in the WEB-INF\classes folder called dfc.keystore but for any reason it is nota ble to create it in a folder containing the # character and therefore application does not start up. Is there any workarround to create a multilevel application ? Thanks a lot. Oscar Segarra Rey Àrea de tecnologies de la informació i les comunicacions Departament de la Presidència C/ Sant Honorat 1-3 - 08002 Barcelona 934024834 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Multi level webapp
On 09/09/2010 10:47, Oscar Segarra Rey wrote: Hi, We have an application (Gabjur) composed for several modules (AD, AX, FD...) that should be served throug: http://localhost/Gabjur/AD http://localhost/Gabjur/AX http://localhost/Gabjur/FD... 1.- I have created the context file Gabjur#AD.xml, Gabjur#AX.xml and so on... 2.- I have renamed the .war's to Gabjur#AD.war, Gabjur#FD.war 3.- System deploys perfectly the .war files. The appears when application has to be started. When application starts up it creates automatically a file in the WEB-INF\classes folder called dfc.keystore but for any reason it is nota ble to create it in a folder containing the # character and therefore application does not start up. Hmm. I wonder if there is a URL being constructed somewhere where the '#' is not escaped. Anyway, an app trying to create such a file is in breach of the Servlet specifications. There is nothing to say that WARs have to be expanded or even have to be served from a file system. Is there any workarround to create a multilevel application ? Sure. You'll need to move your WARs outside of the host's appBase. It looks like the app really needs exploded directories anyway, so... Create a new directory *outside* of the Tomcat directory tree such as /external-apps Add /external-apps/Gabjur_AD /external-apps/Gabjur_AX etc. Expand your WARs into the appropriate directories. Under $CATALINA_BASE/conf/Catalina/localhost you still have your xml files: Gabjur#AD.xml Gabjur#AX.xml etc To each of these, add a docBase attribute to the Context element that points to the expanded directory. e.g for Gabjur#AD.xml Context docBase=/external-apps/Gabjur_AD ... ... /Context HTH, Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Load Balancing Not working and Apache URL is giving 500 error
Hello Pid, I have set the jk log level to debug and i can see following messages in the mod_jk log. It seems request is going to tomcat and apache is giving 500 error messages. kindly let me know how to proceed further. [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[1] [Pragma] = [No-cache] [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[2] [Cache-Control] = [no-store] [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[3] [Last-Modified] = [FRI, JAN 29 2099 23:59:59 GMT] [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[4] [Expires] = [Thu, 01 Jan 1970 00:00:00 GMT] [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[5] [Content-Type] = [text/html] [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[6] [Content-Length] = [855] [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): received from ajp13 pos=0 len=859 max=8192 [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 03 03 57 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D - ..W. [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 0010 0A 3C 68 74 6D 6C 3E 0D 0A 3C 48 45 41 44 3E 0D - .html..HEAD. [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 0020 0A 0D 0A 0D 0A 0D 0A 0D 0A 20 20 20 20 3C 6C 69 - .li [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 0030 6E 6B 20 72 65 6C 3D 22 73 74 79 6C 65 73 68 65 - nk.rel=styleshe [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 0040 65 74 22 20 68 72 65 66 3D 22 68 74 74 70 73 3A - et.href=https: [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 0050 2F 2F 6D 61 72 73 76 63 61 33 2E 73 77 2E 65 72 - //marsvca3.sw.er [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 0060 69 63 73 73 6F 6E 2E 73 65 2F 65 4D 61 74 72 69 - icsson.se/eMatri [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 0070 78 2F 6A 73 70 2F 6D 61 72 73 2F 67 65 6E 65 72 - x/jsp/mars/gener [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 0080 61 6C 2F 65 53 74 79 6C 65 53 68 65 65 74 45 78 - al/eStyleSheetEx [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 0090 70 6C 6F 72 65 72 2E 63 73 73 22 3E 0D 0A 20 20 - plorer.css [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 00a0 0D 0A 0D 0A 0D 0A 0D 0A 09 3C 73 63 72 69 70 74 - .script [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 00b0 20 6C 61 6E 67 75 61 67 65 3D 22 4A 61 76 61 53 - .language=JavaS [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 00c0 63 72 69 70 74 22 20 73 72 63 3D 22 2F 65 4D 61 - cript.src=/eMa [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 00d0 74 72 69 78 2F 6A 73 2F 66 6F 72 6D 46 75 6E 63 - trix/js/formFunc [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 00e0 74 69 6F 6E 73 2E 6A 73 22 3E 3C 2F 73 63 72 69 - tions.js/scri [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 00f0 70 74 3E 0D 0A 09 0D 0A 0D 0A 09 3C 73 63 72 69 - ptscri [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 0100 70 74 20 6C 61 6E 67 75 61 67 65 3D 22 4A 61 76 - pt.language=Jav [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 0110 61 53 63 72 69 70 74 22 3E 0D 0A 09 09 69 66 20 - aScriptif. [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 0120 28 21 66 61 6C 73 65 20 26 26 20 21 66 61 6C 73 - (!false..!fals [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 0130 65 20 29 0D 0A 09 09 7B 0D 0A 09 09 09 74 6F 70 - e.){.top [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 0140 2E 6C 6F 63 61 74 69 6F 6E 2E 68 72 65 66 3D 22 - .location.href= [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
RE: Multi level webapp
Hi, Not exactly, http://localhost/Gabjur is not a real application. Gabjur is just the name of the department where the rest of application belongs to. No, applications do not share anything at webapp level (they do at Dataase Level). I'm using tomcat 6.0.24. Whan applications like http://localhost/Gabjur/AD starts up it has to crate at filesystem level a file in the WEB-INF\classes folder called dfc.keystore but for any extrange reason it cannot because the physical path contains #. What I would like ? 1.- To have a folder called Gabjur 2.- Create an AD.war file inside this folder 3.- system should automatically explode It 4.- I have to be able to acceed it through http://localhost/Gabjur/AD Is this possible ? Thanks a lot Oscar Segarra Rey Àrea de tecnologies de la informació i les comunicacions Departament de la Presidència C/ Sant Honorat 1-3 - 08002 Barcelona 934024834 -Mensaje original- De: Wesley Acheson [mailto:wesley.ache...@gmail.com] Enviado el: dijous, 9 / setembre / 2010 12:30 Para: Tomcat Users List Asunto: Re: Multi level webapp If I understand correctly you want to serve content from http://localhost/Gabjur from one web application and another application from http://localhost/Gabjur/AD etc. Is that the requirement or am I missing anything. Do these war files have any interconnected content? What version of tomcat are you using exactly? Are there any messages written to catalina.out? Which Java version are you using. Regards, Wesley Acheson On Thu, Sep 9, 2010 at 11:47 AM, Oscar Segarra Rey osega...@gencat.cat wrote: Hi, We have an application (Gabjur) composed for several modules (AD, AX, FD...) that should be served throug: http://localhost/Gabjur/AD http://localhost/Gabjur/AX http://localhost/Gabjur/FD... 1.- I have created the context file Gabjur#AD.xml, Gabjur#AX.xml and so on... 2.- I have renamed the .war's to Gabjur#AD.war, Gabjur#FD.war 3.- System deploys perfectly the .war files. The appears when application has to be started. When application starts up it creates automatically a file in the WEB-INF\classes folder called dfc.keystore but for any reason it is nota ble to create it in a folder containing the # character and therefore application does not start up. Is there any workarround to create a multilevel application ? Thanks a lot. Oscar Segarra Rey Àrea de tecnologies de la informació i les comunicacions Departament de la Presidència C/ Sant Honorat 1-3 - 08002 Barcelona 934024834 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Multi level webapp
Hi, Yes, but in this case system will not automatically explode .war files. Isn't it ? Thanks a lot for your quick response. Oscar Segarra Rey Àrea de tecnologies de la informació i les comunicacions Departament de la Presidència C/ Sant Honorat 1-3 - 08002 Barcelona 934024834 -Mensaje original- De: Mark Thomas [mailto:ma...@apache.org] Enviado el: dijous, 9 / setembre / 2010 12:39 Para: Tomcat Users List Asunto: Re: Multi level webapp On 09/09/2010 10:47, Oscar Segarra Rey wrote: Hi, We have an application (Gabjur) composed for several modules (AD, AX, FD...) that should be served throug: http://localhost/Gabjur/AD http://localhost/Gabjur/AX http://localhost/Gabjur/FD... 1.- I have created the context file Gabjur#AD.xml, Gabjur#AX.xml and so on... 2.- I have renamed the .war's to Gabjur#AD.war, Gabjur#FD.war 3.- System deploys perfectly the .war files. The appears when application has to be started. When application starts up it creates automatically a file in the WEB-INF\classes folder called dfc.keystore but for any reason it is nota ble to create it in a folder containing the # character and therefore application does not start up. Hmm. I wonder if there is a URL being constructed somewhere where the '#' is not escaped. Anyway, an app trying to create such a file is in breach of the Servlet specifications. There is nothing to say that WARs have to be expanded or even have to be served from a file system. Is there any workarround to create a multilevel application ? Sure. You'll need to move your WARs outside of the host's appBase. It looks like the app really needs exploded directories anyway, so... Create a new directory *outside* of the Tomcat directory tree such as /external-apps Add /external-apps/Gabjur_AD /external-apps/Gabjur_AX etc. Expand your WARs into the appropriate directories. Under $CATALINA_BASE/conf/Catalina/localhost you still have your xml files: Gabjur#AD.xml Gabjur#AX.xml etc To each of these, add a docBase attribute to the Context element that points to the expanded directory. e.g for Gabjur#AD.xml Context docBase=/external-apps/Gabjur_AD ... ... /Context HTH, Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Multi level webapp
On 09/09/2010 12:12, Oscar Segarra Rey wrote: Hi, Yes, but in this case system will not automatically explode .war files. Isn't it ? Correct. You'd need to do that as part of your deployment process. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Load Balancing Not working and Apache URL is giving 500 error
On 09/09/2010 12:01, Amol Puglia wrote: Hello Pid, I have set the jk log level to debug and i can see following messages in the mod_jk log. It seems request is going to tomcat and apache is giving 500 error messages. kindly let me know how to proceed further. Please provide error logs from Tomcat. p [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[1] [Pragma] = [No-cache] [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[2] [Cache-Control] = [no-store] [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[3] [Last-Modified] = [FRI, JAN 29 2099 23:59:59 GMT] [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[4] [Expires] = [Thu, 01 Jan 1970 00:00:00 GMT] [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[5] [Content-Type] = [text/html] [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[6] [Content-Length] = [855] [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): received from ajp13 pos=0 len=859 max=8192 [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 03 03 57 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D - ..W. [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 00100A 3C 68 74 6D 6C 3E 0D 0A 3C 48 45 41 44 3E 0D - .html..HEAD. [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 00200A 0D 0A 0D 0A 0D 0A 0D 0A 20 20 20 20 3C 6C 69 - .li [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 00306E 6B 20 72 65 6C 3D 22 73 74 79 6C 65 73 68 65 - nk.rel=styleshe [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 004065 74 22 20 68 72 65 66 3D 22 68 74 74 70 73 3A - et.href=https: [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 00502F 2F 6D 61 72 73 76 63 61 33 2E 73 77 2E 65 72 - //marsvca3.sw.er [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 006069 63 73 73 6F 6E 2E 73 65 2F 65 4D 61 74 72 69 - icsson.se/eMatri [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 007078 2F 6A 73 70 2F 6D 61 72 73 2F 67 65 6E 65 72 - x/jsp/mars/gener [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 008061 6C 2F 65 53 74 79 6C 65 53 68 65 65 74 45 78 - al/eStyleSheetEx [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 009070 6C 6F 72 65 72 2E 63 73 73 22 3E 0D 0A 20 20 - plorer.css [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 00a00D 0A 0D 0A 0D 0A 0D 0A 09 3C 73 63 72 69 70 74 - .script [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 00b020 6C 61 6E 67 75 61 67 65 3D 22 4A 61 76 61 53 - .language=JavaS [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 00c063 72 69 70 74 22 20 73 72 63 3D 22 2F 65 4D 61 - cript.src=/eMa [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 00d074 72 69 78 2F 6A 73 2F 66 6F 72 6D 46 75 6E 63 - trix/js/formFunc [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 00e074 69 6F 6E 73 2E 6A 73 22 3E 3C 2F 73 63 72 69 - tions.js/scri [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 00f070 74 3E 0D 0A 09 0D 0A 0D 0A 09 3C 73 63 72 69 - ptscri [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 010070 74 20 6C 61 6E 67 75 61 67 65 3D 22 4A 61 76 - pt.language=Jav [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 011061 53 63 72 69 70 74 22 3E 0D 0A 09 09 69 66 20 - aScriptif. [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 012028 21 66 61 6C 73 65 20 26 26 20 21 66 61 6C 73 - (!false..!fals [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058): 013065 20 29 0D 0A 09 09 7B 0D 0A 09 09 09 74 6F 70 - e.){.top [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1058):
RE: Multi level webapp
Hi, Yes but... we have a deployment tool which is not able to unzip the war file. Is there any way to instruct the system to find some war's and deploy them ? Thanks again for your quick response. Oscar Segarra Rey Àrea de tecnologies de la informació i les comunicacions Departament de la Presidència C/ Sant Honorat 1-3 - 08002 Barcelona 934024834 -Mensaje original- De: Mark Thomas [mailto:ma...@apache.org] Enviado el: dijous, 9 / setembre / 2010 13:16 Para: Tomcat Users List Asunto: Re: Multi level webapp On 09/09/2010 12:12, Oscar Segarra Rey wrote: Hi, Yes, but in this case system will not automatically explode .war files. Isn't it ? Correct. You'd need to do that as part of your deployment process. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Multi level webapp
On 09/09/2010 10:47, Oscar Segarra Rey wrote: When application starts up it creates automatically a file in the WEB-INF\classes folder called dfc.keystore Why not create it in the temporary directory assigned to the application, instead? getServletContext().getAttribute(javax.servlet.context.tempdir) p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: Tomcat Load Balancing Not working and Apache URL is giving 500 error
On 09/09/2010 01:01 PM, Amol Puglia wrote: Hello Pid, I have set the jk log level to debug and i can see following messages in the mod_jk log. It seems request is going to tomcat and apache is giving 500 error messages. Because Tomcat returns 500 To see the tomcat generated page instead Apache one, use uri map extensions (http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html) In your case this should be something like: JkMount /eMatrix/* loadbalancer;use_server_errors=500 Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 2 second delays in mod_jk while maintaining workers
Thanks for the feedback. Can you tell me why this if statement exists: if (poll(fds, 1, timeout) 0) { ... } else break; It appears to be at fault. John - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
mod_jk not creating worker other than ajp13
Hi All, I am trying to connect Tomcat 6.0.16 with Apache 2.2.16 through mod_jk 1.2.30 on Win XP service pack 3 32 bit platform. I have followed following steps: * Placing mod_jk.so into apache/modules. * Creating mod_jk.conf workers.properties files in apache/conf * Modifying https.conf and including mod_jk.conf (only add - Include conf/mod_jk.conf) * Content of mod_jk.conf is as follows: # mod_jk.conf start LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T JkMount /TestLB1 jvm1 JkMount /TestLB1/* jvm1 JkShmFile logs/jk.shm # mod_jk.conf end * Content of workers.properties is as follows: worker.list=jvm1 worker.jvm1.port=8009 worker.jvm1.host=localhost worker.jvm1.type=ajp13 * In tomcat's server.xml I have a ajp connector Connector port=8009 enableLookups=false protocol=AJP/1.3 redirectPort=8443/ Everything starts well except mod_jk, logs are as follow: [debug] jk_worker.c (242): creating worker ajp13 [debug] jk_worker.c (146): about to create instance ajp13 of ajp13 [debug] jk_worker.c (159): about to validate and init ajp13 [debug] jk_ajp_common.c (2605): worker ajp13 contact is 'localhost:8009' [debug] jk_ajp_common.c (2800): setting endpoint options: [debug] jk_ajp_common.c (2803): keepalive: 0 [debug] jk_ajp_common.c (2807): socket timeout: 0 [debug] jk_ajp_common.c (2811): socket connect timeout: 0 [debug] jk_ajp_common.c (2815): buffer size:0 [debug] jk_ajp_common.c (2819): pool timeout: 0 [debug] jk_ajp_common.c (2823): ping timeout: 1 [debug] jk_ajp_common.c (2827): connect timeout:0 [debug] jk_ajp_common.c (2831): reply timeout: 0 [debug] jk_ajp_common.c (2835): prepost timeout:0 [debug] jk_ajp_common.c (2839): recovery options: 0 [debug] jk_ajp_common.c (2843): retries:2 [debug] jk_ajp_common.c (2847): max packet size:8192 [debug] jk_ajp_common.c (2851): retry interval: 100 [info] mod_jk.c (3189): mod_jk/1.2.30 initialized [debug] jk_worker.c (116): did not find a worker jvm1 [error] jk_uri_worker_map.c (506): Could not find worker with name 'jvm1' in uri map post processing. [debug] jk_worker.c (116): did not find a worker jvm1 [error] jk_uri_worker_map.c (506): Could not find worker with name 'jvm1' in uri map post processing. And If I use worker name ajp13 which is default one it always works,I don't understand why its always going to create worker name ajp13 for localhost port 8009 which is default one despite of my custom worker name. Any suggestions? Thanks , Pushkar DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ---
Re: Tomcat Load Balancing Not working and Apache URL is giving 500 error
Hello Mladen, I am still getting 500 error while accessing tomcat trhough apache. I have added following entry as suggested by you in httpd.conf file. JkMount /eMatrix/* loadbalancer;use_server_errors=500 kindly check. --- On Thu, 9/9/10, Mladen Turk mt...@apache.org wrote: From: Mladen Turk mt...@apache.org Subject: Re: Tomcat Load Balancing Not working and Apache URL is giving 500 error To: users@tomcat.apache.org Date: Thursday, September 9, 2010, 5:00 PM On 09/09/2010 01:01 PM, Amol Puglia wrote: Hello Pid, I have set the jk log level to debug and i can see following messages in the mod_jk log. It seems request is going to tomcat and apache is giving 500 error messages. Because Tomcat returns 500 To see the tomcat generated page instead Apache one, use uri map extensions (http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html) In your case this should be something like: JkMount /eMatrix/* loadbalancer;use_server_errors=500 Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Load Balancing Not working and Apache URL is giving 500 error
Hi, Below are the messages from the tomcat log files. INFO: Server startup in 12155 ms (http-8083-1) 2010-09-09 14:12:16: Trace.init: Trace level is 3, Tracing elapsed times, Nesting level -1 14:12:16 DEBUG http-8083-1 [ Controller.init] Context Init Parameters 14:12:16 DEBUG http-8083-1 [ Controller.init] com.ericsson.mars.util.trace.maxNestingDepth = -1 14:12:16 DEBUG http-8083-1 [ Controller.init] weblogic.jsp.keepgenerated = true 14:12:16 DEBUG http-8083-1 [ Controller.init] com.ericsson.mars.util.trace.traceToPrintStream = 1 14:12:16 DEBUG http-8083-1 [ Controller.init] com.ericsson.mars.util.trace.traceTimed = 1 14:12:16 DEBUG http-8083-1 [ Controller.init] com.ericsson.mars.util.trace.traceLevel = 3 14:12:16 DEBUG http-8083-1 [ Controller.init] com.ericsson.mars.util.trace.traceToServletLog = 0 14:12:16 DEBUG http-8083-1 [ Controller.init] /Context Init Parameters 14:12:16 DEBUG http-8083-1 [ Controller.init] Real path for Document root: /opt/local/webapp/rmiserver_3/applications/eMatrix/ 14:12:16 INFO Timer-1 [ MemoryServlet.run] JVM memory usage: 189.49MB (tot=896.00MB, usage=21%) (users=0,sessions=0) @ 2010-09-09 14:12:16 (JVM Prossessor=[8, 8, 8]) RMI mem (h ig=[201.18, 2.04, 2.01]MB, all=[92.72, 1.98, 1.95]MB, res=[77.16, 0.39, 0.50]MB, JVM_use=[63.59, 40.65, 40.68]MB, JVM_tot=[514.81, 576.00, 576.00]MB) (http-8083-1) 2010-09-09 14:12:17: == NotificationHandler.handle(HttpServletRequest, HttpServletResponse) 14:12:18 INFO http-8083-1 [ MarsMonitorFilter.initUrlCheck] Initializing URL check inside filter. Enable: false using correct URL: null 14:12:18 INFO http-8083-1 [ MarsMonitorFilter.initUrlCheck] Mars SiteMinder SSO integration is disabled and will not be used at all 14:12:18 INFO http-8083-1 [ MarsMonitorFilter.initSyncReqPatterns] Ignoring following users when synchronizing: {reporter} 14:12:18 INFO http-8083-1 [ MarsMonitorFilter.initSyncReqPatterns] Successfully compiled pattern .*requirementsProcessForward.* 14:12:18 INFO http-8083-1 [ MarsMonitorFilter.initSyncReqPatterns] Successfully compiled pattern .*connectionChoice.* 14:12:18 INFO http-8083-1 [ MarsMonitorFilter.initSyncReqPatterns] Successfully compiled pattern .*searchResults.* 14:12:18 INFO http-8083-1 [ MarsMonitorFilter.initSyncReqPatterns] Successfully compiled pattern .*ctrl.* 14:12:18 INFO http-8083-1 [ MarsMonitorFilter.initSyncReqPatterns] Compiled totaly 4 patterns 14:12:18 DEBUG http-8083-1 [ MarsMonitorFilter.getRequestedURL] url http://marsvca3.sw.ericsson.se:8083/eMatrix/servlet/Controller 14:12:18 DEBUG http-8083-1 [172.17.136.151 Controller.checkLogin] New session created, max inactive time is: 3600 secs 14:12:18 DEBUG http-8083-1 [172.17.136.151 Controller.checkLogin] No loginBean found 14:12:18 DEBUG http-8083-1 [172.17.136.151 Controller.checkLogin] There is no source page and user name is missing. Forward to: general/emxLogin.jsp 14:12:18 DEBUG http-8083-1 [172.17.136.151 LoginBean.valueBound] Loginbean.valueBound: Bound to session. id=9118C09E25E5062FFC86063B132AA168.marsstage_rmiserver_3 14:12:18 DEBUG http-8083-1 [172.17.136.151 LoginBean.valueBound] Session max inactive time is 3600 s 14:12:18 DEBUG http-8083-1 [172.17.136.151 LoginBean.valueBound] Current number of users/sessions=0 14:12:18 DEBUG http-8083-1 [ Controller.removeSession] 9118C09E25E5062FFC86063B132AA168.marsstage_rmiserver_3 not found in list of logged on users 14:12:18 DEBUG http-8083-1 [ Controller.removeSession] Number of logged on users is now 0 14:12:19 DEBUG http-8083-1 [ MarsMonitorFilter.getRequestedURL] url http://marsvca3.sw.ericsson.se:8083/eMatrix/style/mars.css 14:12:19 DEBUG http-8083-1 [ MarsMonitorFilter.getRequestedURL] url http://marsvca3.sw.ericsson.se:8083/eMatrix/images/buttons/loginOff.gif 14:12:20 DEBUG http-8083-2 [ MarsMonitorFilter.getRequestedURL] url http://marsvca3.sw.ericsson.se:8083/eMatrix/images/util/loading_empty.gif 14:12:20 DEBUG http-8083-3 [ MarsMonitorFilter.getRequestedURL] url http://marsvca3.sw.ericsson.se:8083/eMatrix/images/buttons/loginOn.gif 14:13:16 --- On Thu, 9/9/10, Pid p...@pidster.com wrote: From: Pid p...@pidster.com Subject: Re: Tomcat Load Balancing Not working and Apache URL is giving 500 error To: Tomcat Users List users@tomcat.apache.org Date: Thursday, September 9, 2010, 4:51 PM On 09/09/2010 12:01, Amol Puglia wrote: Hello Pid, I have set the jk log level to debug and i can see following messages in the mod_jk log. It seems request is going to tomcat and apache is giving 500 error messages. kindly let me know how to proceed further. Please provide error logs from Tomcat. p [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[1] [Pragma] = [No-cache] [Thu Sep 09 12:16:49 2010] [1723:1] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[2] [Cache-Control] = [no-store] [Thu Sep 09 12:16:49 2010] [1723:1] [debug]
Re: Multi level webapp
On Thu, Sep 9, 2010 at 1:24 PM, Pid p...@pidster.com wrote: On 09/09/2010 10:47, Oscar Segarra Rey wrote: When application starts up it creates automatically a file in the WEB-INF\classes folder called dfc.keystore Why not create it in the temporary directory assigned to the application, instead? getServletContext().getAttribute(javax.servlet.context.tempdir) p It was my understanding that you would just need to enter path in the context.xml ?xml version='1.0' encoding='utf-8'? Context path=/Gabjur/AD /Context But that doesn't seem to work for me. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 2 second delays in mod_jk while maintaining workers
On 09/09/2010 02:09 PM, John Baker wrote: Thanks for the feedback. Can you tell me why this if statement exists: if (poll(fds, 1, timeout) 0) { ... } else break; It appears to be at fault. poll returns positive number if there is some data to read on the socket. It returns 0 in case of timeout (two seconds in this case). Try to change fds.events = POLLIN; to fds.events = POLLIN | POLLHUP | POLLERR; If that doesn't help, it's obvious the Tomcat doesn't close the socket, so should be investigated why. Like said before, either the Tomcat doesn't respond to shutdown or the shutdown's FIN packet isn't send to the Tomcat or back to mod_jk, due to some weird OS networking issues. Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Load Balancing Not working and Apache URL is giving 500 error
On 09/09/2010 02:19 PM, Amol Puglia wrote: Hello Mladen, I am still getting 500 error while accessing tomcat trhough apache. I have added following entry as suggested by you in httpd.conf file. JkMount /eMatrix/* loadbalancer;use_server_errors=500 Sorry, that wold actually force Apache error message. Seems something is broken with your app. At least the log excerpt you've send shows that. Send me privately a larger chunk from the request begin to end (if you don't wish to have it viewed in public) Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk not creating worker other than ajp13
On 09/09/2010 02:14 PM, Pushkar Tiwari wrote: Hi All, JkMount /TestLB1 jvm1 JkMount /TestLB1/* jvm1 JkShmFile logs/jk.shm # mod_jk.conf end JkMountCopy All Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Multi level webapp
It was my understanding that you would just need to enter path in the context.xml ?xml version='1.0' encoding='utf-8'? Context path=/Gabjur/AD /Context But that doesn't seem to work for me. Nevermind just re-read the documentation. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk not creating worker other than ajp13
Pushkar Tiwari wrote: Hi All, I am trying to connect Tomcat 6.0.16 with Apache 2.2.16 through mod_jk 1.2.30 on Win XP service pack 3 32 bit platform. I have followed following steps: * Placing mod_jk.so into apache/modules. * Creating mod_jk.conf workers.properties files in apache/conf * Modifying https.conf and including mod_jk.conf (only add - Include conf/mod_jk.conf) * Content of mod_jk.conf is as follows: # mod_jk.conf start LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T JkMount /TestLB1 jvm1 JkMount /TestLB1/* jvm1 JkShmFile logs/jk.shm # mod_jk.conf end * Content of workers.properties is as follows: worker.list=jvm1 worker.jvm1.port=8009 worker.jvm1.host=localhost worker.jvm1.type=ajp13 * In tomcat's server.xml I have a ajp connector Connector port=8009 enableLookups=false protocol=AJP/1.3 redirectPort=8443/ Everything starts well except mod_jk, logs are as follow: [debug] jk_worker.c (242): creating worker ajp13 [debug] jk_worker.c (146): about to create instance ajp13 of ajp13 [debug] jk_worker.c (159): about to validate and init ajp13 [debug] jk_ajp_common.c (2605): worker ajp13 contact is 'localhost:8009' [debug] jk_ajp_common.c (2800): setting endpoint options: [debug] jk_ajp_common.c (2803): keepalive: 0 [debug] jk_ajp_common.c (2807): socket timeout: 0 [debug] jk_ajp_common.c (2811): socket connect timeout: 0 [debug] jk_ajp_common.c (2815): buffer size:0 [debug] jk_ajp_common.c (2819): pool timeout: 0 [debug] jk_ajp_common.c (2823): ping timeout: 1 [debug] jk_ajp_common.c (2827): connect timeout:0 [debug] jk_ajp_common.c (2831): reply timeout: 0 [debug] jk_ajp_common.c (2835): prepost timeout:0 [debug] jk_ajp_common.c (2839): recovery options: 0 [debug] jk_ajp_common.c (2843): retries:2 [debug] jk_ajp_common.c (2847): max packet size:8192 [debug] jk_ajp_common.c (2851): retry interval: 100 [info] mod_jk.c (3189): mod_jk/1.2.30 initialized [debug] jk_worker.c (116): did not find a worker jvm1 [error] jk_uri_worker_map.c (506): Could not find worker with name 'jvm1' in uri map post processing. [debug] jk_worker.c (116): did not find a worker jvm1 [error] jk_uri_worker_map.c (506): Could not find worker with name 'jvm1' in uri map post processing. And If I use worker name ajp13 which is default one it always works,I don't understand why its always going to create worker name ajp13 for localhost port 8009 which is default one despite of my custom worker name. Any suggestions? I think that your configuration files above are OK. But it looks as if Apache is not reading the workers.properties file that you think it is reading. It seems to be reading another one, with the lines worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 Try this experiment : in the workers.properties file that you think Apache is using, put the following lines : worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=unknown.host.local worker.ajp13.type=ajp13 then try again and look at the logs. If it still shows the line : [debug] jk_ajp_common.c (2605): worker ajp13 contact is 'localhost:8009' then it means it is not reading the new file. If it shows the line [debug] jk_ajp_common.c (2605): worker ajp13 contact is 'unknown.host.local:8009' then I am wrong. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 2 second delays in mod_jk while maintaining workers
On Sep 9, 2010, at 8:34 AM, Mladen Turk wrote: On 09/09/2010 02:09 PM, John Baker wrote: Thanks for the feedback. Can you tell me why this if statement exists: if (poll(fds, 1, timeout) 0) { ... } else break; It appears to be at fault. poll returns positive number if there is some data to read on the socket. It returns 0 in case of timeout (two seconds in this case). Try to change fds.events = POLLIN; to fds.events = POLLIN | POLLHUP | POLLERR; If that doesn't help, it's obvious the Tomcat doesn't close the socket, so should be investigated why. Like said before, either the Tomcat doesn't respond to shutdown or the shutdown's FIN packet isn't send to the Tomcat or back to mod_jk, due to some weird OS networking issues. +1 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Multi level webapp
From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: Multi level webapp It was my understanding that you would just need to enter path in the context.xml No - that's not allowed. The path attribute is ignored unless the Context element is in server.xml - where it should never be. Regardless, the OP is ignoring Mark's original point: the webapp is in violation of the spec by trying to create files within its deployment directory - that's always a bad idea. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Multi level webapp
Oscar, I've only one last suggestion if you need it to work this way. And that would be to front tomcat with apache httpd. Use mod_proxy_http or similar along with a rewrite rule. I don't understand why path would be ignored in context.xml but that is the way it is, and I wasn't looking at these lists when that decision was taken. Sorry Wes Regardless, the OP is ignoring Mark's original point: the webapp is in violation of the spec by trying to create files within its deployment directory - that's always a bad idea. Yeah I know but I was trying to find a solution anyway. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 2 second delays in mod_jk while maintaining workers
On Thursday 09 September 2010 13:59:50 you wrote: If that doesn't help, it's obvious the Tomcat doesn't close the socket, so should be investigated why. Like said before, either the Tomcat doesn't respond to shutdown or the shutdown's FIN packet isn't send to the Tomcat or back to mod_jk, due to some weird OS networking issues. I think there's been rather a lot of speculation on this problem :-) The change to fds.events appears to be working! Thanks. I'm somewhat surprised this hasn't been picked up anytime before? We can't be the only people deploying hundreds of worker threads/JBoss instances, and there are no firewalls between mod_jk/JBoss. I guess it's possible the AJP thread on one sever was 'stuck'. Do you fancy putting that change into the next release of mod_jk? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Multi level webapp
Hi, Ok, thanks a lot!!! Oscar Segarra Rey Àrea de tecnologies de la informació i les comunicacions Departament de la Presidència C/ Sant Honorat 1-3 - 08002 Barcelona 934024834 -Mensaje original- De: Wesley Acheson [mailto:wesley.ache...@gmail.com] Enviado el: dijous, 9 / setembre / 2010 15:21 Para: Tomcat Users List Asunto: Re: Multi level webapp Oscar, I've only one last suggestion if you need it to work this way. And that would be to front tomcat with apache httpd. Use mod_proxy_http or similar along with a rewrite rule. I don't understand why path would be ignored in context.xml but that is the way it is, and I wasn't looking at these lists when that decision was taken. Sorry Wes Regardless, the OP is ignoring Mark's original point: the webapp is in violation of the spec by trying to create files within its deployment directory - that's always a bad idea. Yeah I know but I was trying to find a solution anyway. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: mod_jk not creating worker other than ajp13 - solved
Hey André, Thanks for quick suggestion. Actually the problem was lying in my text editor in which I m editing my worker.properties files...some how it adds few special characters in the file.I found when I opened the same file in notepad. Now its working properly after removing those unwanted chars. Thanks, Pushkar -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Thursday, September 09, 2010 6:27 PM To: Tomcat Users List Subject: Re: mod_jk not creating worker other than ajp13 Pushkar Tiwari wrote: Hi All, I am trying to connect Tomcat 6.0.16 with Apache 2.2.16 through mod_jk 1.2.30 on Win XP service pack 3 32 bit platform. I have followed following steps: * Placing mod_jk.so into apache/modules. * Creating mod_jk.conf workers.properties files in apache/conf * Modifying https.conf and including mod_jk.conf (only add - Include conf/mod_jk.conf) * Content of mod_jk.conf is as follows: # mod_jk.conf start LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T JkMount /TestLB1 jvm1 JkMount /TestLB1/* jvm1 JkShmFile logs/jk.shm # mod_jk.conf end * Content of workers.properties is as follows: worker.list=jvm1 worker.jvm1.port=8009 worker.jvm1.host=localhost worker.jvm1.type=ajp13 * In tomcat's server.xml I have a ajp connector Connector port=8009 enableLookups=false protocol=AJP/1.3 redirectPort=8443/ Everything starts well except mod_jk, logs are as follow: [debug] jk_worker.c (242): creating worker ajp13 [debug] jk_worker.c (146): about to create instance ajp13 of ajp13 [debug] jk_worker.c (159): about to validate and init ajp13 [debug] jk_ajp_common.c (2605): worker ajp13 contact is 'localhost:8009' [debug] jk_ajp_common.c (2800): setting endpoint options: [debug] jk_ajp_common.c (2803): keepalive: 0 [debug] jk_ajp_common.c (2807): socket timeout: 0 [debug] jk_ajp_common.c (2811): socket connect timeout: 0 [debug] jk_ajp_common.c (2815): buffer size:0 [debug] jk_ajp_common.c (2819): pool timeout: 0 [debug] jk_ajp_common.c (2823): ping timeout: 1 [debug] jk_ajp_common.c (2827): connect timeout:0 [debug] jk_ajp_common.c (2831): reply timeout: 0 [debug] jk_ajp_common.c (2835): prepost timeout:0 [debug] jk_ajp_common.c (2839): recovery options: 0 [debug] jk_ajp_common.c (2843): retries:2 [debug] jk_ajp_common.c (2847): max packet size:8192 [debug] jk_ajp_common.c (2851): retry interval: 100 [info] mod_jk.c (3189): mod_jk/1.2.30 initialized [debug] jk_worker.c (116): did not find a worker jvm1 [error] jk_uri_worker_map.c (506): Could not find worker with name 'jvm1' in uri map post processing. [debug] jk_worker.c (116): did not find a worker jvm1 [error] jk_uri_worker_map.c (506): Could not find worker with name 'jvm1' in uri map post processing. And If I use worker name ajp13 which is default one it always works,I don't understand why its always going to create worker name ajp13 for localhost port 8009 which is default one despite of my custom worker name. Any suggestions? I think that your configuration files above are OK. But it looks as if Apache is not reading the workers.properties file that you think it is reading. It seems to be reading another one, with the lines worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 Try this experiment : in the workers.properties file that you think Apache is using, put the following lines : worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=unknown.host.local worker.ajp13.type=ajp13 then try again and look at the logs. If it still shows the line : [debug] jk_ajp_common.c (2605): worker ajp13 contact is 'localhost:8009' then it means it is not reading the new file. If it shows the line [debug] jk_ajp_common.c (2605): worker ajp13 contact is 'unknown.host.local:8009' then I am wrong. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of
Problems with SSI
I've tried following all of the advice in the previous threads, but I'm up against a wall here. I have added Context privileged=true to my context.xml In the same directory, i have uncommented the SSI Filter as well as the Filter mapping and the *.shtml mime mapping in web.xml. see below: filter filter-namessi/filter-name filter-class org.apache.catalina.ssi.SSIFilter /filter-class init-param param-namecontentType/param-name param-valuetext/x-server-parsed-html(;.*)?/param-value /init-param init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-nameexpires/param-name param-value666/param-value /init-param init-param param-nameisVirtualWebappRelative/param-name param-value0/param-value /init-param /filter filter-mapping filter-namessi/filter-name url-pattern*.shtml/url-pattern /filter-mapping mime-mapping extensionshtml/extension mime-typetext/x-server-parsed-html/mime-type /mime-mapping Finally, i have a file called test.shtml that has the following code: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 titletester/title /head body hi there !-- #include file=/inc.html -- /body The inc.html file is in the same directory as the test.html file. when I run the file, i simply see the hi there and none of the contents of the inc.html file. 1. i don't have the invoker servlet un-commented. is this required? 2. i got totally lost on the reg -exp discussions. i am not in the IT world and it was simply beyond my skill set. Anybody have an idea where I've gone wrong? Much appreciated. jeff -- View this message in context: http://old.nabble.com/Problems-with-SSI-tp29648127p29648127.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Multi level webapp
On 09/09/2010 14:21, Wesley Acheson wrote: Oscar, I've only one last suggestion if you need it to work this way. And that would be to front tomcat with apache httpd. Use mod_proxy_http or similar along with a rewrite rule. Bad idea. I have seen far too many apps break in all sorts of weird and wonderful ways when you change the context path in your reverse proxy. I don't understand why path would be ignored in context.xml but that is the way it is, and I wasn't looking at these lists when that decision was taken. Because: - it is unnecessary - it makes the auto deploy code significantly more complex for little / no gain - it often results in double deployment Another option - given the fixing the broken web app doesn't seem to be acceptable - is disable autoDeploy and deployOnStartup and hard code the context paths in server.xml Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Best practice for running Tomcat on port 80
There's examples of shell scripts called Tomcat.sh, Tomcat5.sh in the unix directory subtree, which may help. Use Tomcat5.sh as a template. It demonstrates how to use configure the jsvc binary. p Hi Pid, I was able to start Tomcat by using Tomcat5.sh just like you suggested but I have another issue, how do I start it at boot time just like when Tomcat was using port 8080. Many thanks! Jan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problems with SSI
On 09/09/2010 14:57, jeffo1b wrote: I've tried following all of the advice in the previous threads, but I'm up against a wall here. I have added Context privileged=true to my context.xml In the same directory, i have uncommented the SSI Filter as well as the Filter mapping and the *.shtml mime mapping in web.xml. see below: filter filter-namessi/filter-name filter-class org.apache.catalina.ssi.SSIFilter /filter-class init-param param-namecontentType/param-name param-valuetext/x-server-parsed-html(;.*)?/param-value /init-param init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-nameexpires/param-name param-value666/param-value /init-param init-param param-nameisVirtualWebappRelative/param-name param-value0/param-value /init-param /filter filter-mapping filter-namessi/filter-name url-pattern*.shtml/url-pattern /filter-mapping mime-mapping extensionshtml/extension mime-typetext/x-server-parsed-html/mime-type /mime-mapping Finally, i have a file called test.shtml that has the following code: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 titletester/title /head body hi there !-- #include file=/inc.html -- /body The inc.html file is in the same directory as the test.html file. when I run the file, i simply see the hi there and none of the contents of the inc.html file. 1. i don't have the invoker servlet un-commented. is this required? 2. i got totally lost on the reg -exp discussions. i am not in the IT world and it was simply beyond my skill set. Anybody have an idea where I've gone wrong? Much appreciated. jeff Unless my email client is broken, you've sent the same message 4 times. André replied to an earlier message, you should read his response. p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: Best practice for running Tomcat on port 80
On Thu, 2010-09-09 at 22:12 +0800, jan gestre wrote: There's examples of shell scripts called Tomcat.sh, Tomcat5.sh in the unix directory subtree, which may help. Use Tomcat5.sh as a template. It demonstrates how to use configure the jsvc binary. p Hi Pid, I was able to start Tomcat by using Tomcat5.sh just like you suggested but I have another issue, how do I start it at boot time just like when Tomcat was using port 8080. Many thanks! Jan There is a config file called server.xml which i think is responsible. - Frank TZ _ University Computing Centre - 'Professionalism, Customer Care and Technological foresight'
Re: Best practice for running Tomcat on port 80
On 09/09/2010 15:12, jan gestre wrote: There's examples of shell scripts called Tomcat.sh, Tomcat5.sh in the unix directory subtree, which may help. Use Tomcat5.sh as a template. It demonstrates how to use configure the jsvc binary. p Hi Pid, I was able to start Tomcat by using Tomcat5.sh just like you suggested but I have another issue, how do I start it at boot time just like when Tomcat was using port 8080. You can tweak the script to be chkconfig compatible (with the one you were using previously), and install it as a startup script. p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: 2 second delays in mod_jk while maintaining workers
On 09/09/2010 03:22 PM, John Baker wrote: On Thursday 09 September 2010 13:59:50 you wrote: If that doesn't help, it's obvious the Tomcat doesn't close the socket, so should be investigated why. Like said before, either the Tomcat doesn't respond to shutdown or the shutdown's FIN packet isn't send to the Tomcat or back to mod_jk, due to some weird OS networking issues. I think there's been rather a lot of speculation on this problem :-) The change to fds.events appears to be working! Thanks. Nice. I'm somewhat surprised this hasn't been picked up anytime before? We can't be the only people deploying hundreds of worker threads/JBoss instances, and there are no firewalls between mod_jk/JBoss. I guess it's possible the AJP thread on one sever was 'stuck'. It depends on the OS networking layer thought. POLLIN should be just enough to fire the poll if the socket was closed. Do you fancy putting that change into the next release of mod_jk? Sure. I'll have to make some faulty AJP connector in Tomcat that will close the socket after some timeout, and see if that event wasn't propagated from our socket. Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Best practice for running Tomcat on port 80
On 09/09/2010 15:42, Frank Tilugulilwa wrote: On Thu, 2010-09-09 at 22:12 +0800, jan gestre wrote: There's examples of shell scripts called Tomcat.sh, Tomcat5.sh in the unix directory subtree, which may help. Use Tomcat5.sh as a template. It demonstrates how to use configure the jsvc binary. p Hi Pid, I was able to start Tomcat by using Tomcat5.sh just like you suggested but I have another issue, how do I start it at boot time just like when Tomcat was using port 8080. Many thanks! Jan There is a config file called server.xml which i think is responsible. Nope. Sorry. p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: 2 second delays in mod_jk while maintaining workers
On 09/09/2010 03:22 PM, John Baker wrote: Do you fancy putting that change into the next release of mod_jk? BTW, do you fancy opening BZ report fill in what we tried so far and the actual solution, so we can track that down for the next releases and patches? Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 2 second delays in mod_jk while maintaining workers
On Thursday 09 September 2010 15:45:44 you wrote: Nice. I spoke too soon. I'm now trying to figure out how to print out the IP address of the socket (I don't really do C) so I can log the socket that caused the poll to timeout, and compare with a tcpdump. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 2 second delays in mod_jk while maintaining workers
I would be happy to share all my evidence and write a report once we get to the bottom of this problem. Any hints on printing out the socket IP (i.e. of Tomcat)? On Thursday 09 September 2010 15:47:33 you wrote: On 09/09/2010 03:22 PM, John Baker wrote: Do you fancy putting that change into the next release of mod_jk? BTW, do you fancy opening BZ report fill in what we tried so far and the actual solution, so we can track that down for the next releases and patches? Regards - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 2 second delays in mod_jk while maintaining workers
Interestingly, some of our JBoss instances are showing a large number ajp threads that seem to be in keep alive mode but are well beyond the connectionTimeout defined in server.xml (which is set to 9): Max threads: 40 Current thread count: 40 Current thread busy: 40 Max processing time: 5563 ms Processing time: 2552.538 s Request count: 75522 Error count: 6 Bytes received: 0.00 MB Bytes sent: 879.42 MB Stage TimeB Sent B Recv Client VHost Request K 508896 ms ? ? 10.113.168.4? ? K 93386 ms? ? 10.113.168.4? ? K 7147 ms ? ? 10.113.168.4? ? K 3994 ms ? ? 10.113.168.4? ? K 660 ms ? ? 10.113.168.4? ? K 735822 ms ? ? 10.113.168.4? ? K 71565 ms? ? 10.113.168.4? ? Almost as if connectionTimeout is being ignored in some cases - this is JBoss 4.2.3, so an oldish version of Tomcat. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 2 second delays in mod_jk while maintaining workers
On 09/09/2010 04:48 PM, John Baker wrote: On Thursday 09 September 2010 15:45:44 you wrote: Nice. I spoke too soon. I'm now trying to figure out how to print out the IP address of the socket (I don't really do C) so I can log the socket that caused the poll to timeout, and compare with a tcpdump. Try with getsockname, but it's not a trivial task. Perhaps using /proc/pid/fd and matching the socket# we have with the actual info eg. 32 - socket:[port] Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 2 second delays in mod_jk while maintaining workers
On Thursday 09 September 2010 16:08:04 you wrote: On 09/09/2010 04:48 PM, John Baker wrote: On Thursday 09 September 2010 15:45:44 you wrote: Nice. I spoke too soon. I'm now trying to figure out how to print out the IP address of the socket (I don't really do C) so I can log the socket that caused the poll to timeout, and compare with a tcpdump. Try with getsockname, but it's not a trivial task. Perhaps using /proc/pid/fd and matching the socket# we have with the actual info eg. 32 - socket:[port] Isn't the address stored with jk_sock_t so I can use jk_dump_hinfo, as I can see is in the open socket method? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Unable to get any information why jsp page fails to generate code
I discovered that in web.xml some error pages were mentioned as genericError.htm but this file existed no where. I removed the setting of error pages from web.xml. But now when a jsp page fails to compile, nothing at all gets written to stdout (earlier there was a stracktrace mentioning /genericError.htm). Try catching all exceptions and writing them to stdout or something That is for exceptions that happen during the running of a jsp page right? If the jsp page itself fails to compile, what exception is there to catch? Thanks Kannan -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, August 17, 2010 8:42 PM To: Tomcat Users List Subject: Re: Unable to get any information why jsp page fails to generate code -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kannan, On 8/17/2010 12:22 AM, Kannan Jayaprakasam wrote: Any ideas? Try catching all exceptions and writing them to stdout or something. Is errorPage.html actually a JSP? If you'll notice, the original exception is java.lang.Exception (which isn't detailed) and then the stack trace describes the java.lang.IllegalStateException. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxqprsACgkQ9CaO5/Lv0PC3kQCffwWWfpyLgZBhGcicVpbEo6Sx zCEAnjceVrPHPdrzm4gUNQcSG9Erxy3C =w4eY -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Multi level webapp
On Thu, Sep 9, 2010 at 4:11 PM, Mark Thomas ma...@apache.org wrote: On 09/09/2010 14:21, Wesley Acheson wrote: Oscar, I've only one last suggestion if you need it to work this way. And that would be to front tomcat with apache httpd. Use mod_proxy_http or similar along with a rewrite rule. Bad idea. I have seen far too many apps break in all sorts of weird and wonderful ways when you change the context path in your reverse proxy. I assume this is all on the application vendors fault, not tomcats? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: 2 second delays in mod_jk while maintaining workers
From: John Baker [mailto:jba...@javasystemsolutions.com] Subject: Re: 2 second delays in mod_jk while maintaining workers some of our JBoss instances are showing a large number ajp threads that seem to be in keep alive mode but are well beyond the connectionTimeout defined in server.xml My understanding is that connectionTimeout only applies to the period between the connection being established and the arrival of the *first* request. Tomcat 6.0 has a keepAliveTimeout attribute, but older Tomcats do not, and I don't know what they default to. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Multi level webapp
On 09/09/2010 16:30, Wesley Acheson wrote: On Thu, Sep 9, 2010 at 4:11 PM, Mark Thomas ma...@apache.org wrote: On 09/09/2010 14:21, Wesley Acheson wrote: Oscar, I've only one last suggestion if you need it to work this way. And that would be to front tomcat with apache httpd. Use mod_proxy_http or similar along with a rewrite rule. Bad idea. I have seen far too many apps break in all sorts of weird and wonderful ways when you change the context path in your reverse proxy. I assume this is all on the application vendors fault, not tomcats? It depends. You have to design the app with the requirement for a reverse proxy to change the path in mind. Even then, they'll be a heap of stuff you have no choice but to fix in the proxy. It is usually far easier just to not change the context path. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to get any information why jsp page fails to generate code
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kannan, On 9/9/2010 11:27 AM, Kannan Jayaprakasam wrote: I discovered that in web.xml some error pages were mentioned as genericError.htm but this file existed no where. I removed the setting of error pages from web.xml. But now when a jsp page fails to compile, nothing at all gets written to stdout (earlier there was a stracktrace mentioning /genericError.htm). Try catching all exceptions and writing them to stdout or something That is for exceptions that happen during the running of a jsp page right? If the jsp page itself fails to compile, what exception is there to catch? I'm not sure you /can/ catch that exception, but you might be able to. What exception gets thrown when a page won't compile? Presumably, the JspServlet throws an exception when compilation fails, instead of generating its own error page. If it throws an exception, you can configure an errorPage for that exception and log it. You should probably make sure all your JSPs compile before going into production, though ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyJFrgACgkQ9CaO5/Lv0PCVlwCeMlb9obxLdsDI7NSN5o+IvWbe X0kAn1JZfdnnYfe+n020UBezBFVPrkGB =SYx9 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Multi level webapp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 9/9/2010 6:38 AM, Mark Thomas wrote: Hmm. I wonder if there is a URL being constructed somewhere where the '#' is not escaped. I had a similar problem when using Cocoon with Tomcat: a multi-level URI-based WAR gets deployed into a directory containing a #, which gets encoded/decoded too many times by Cocoon, and the directory is unreachable because the # gets somehow mangled. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyJGIUACgkQ9CaO5/Lv0PCugwCguRqpmvRSTzE45NlNl3WQEPYN KrAAnjl3CccrQBSR6wSl/qswC3i3aASE =2dHc -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Multi level webapp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oscar, On 9/9/2010 7:23 AM, Oscar Segarra Rey wrote: Yes but... we have a deployment tool which is not able to unzip the war file. What kind of tool is that? Is there any way to instruct the system to find some war's and deploy them ? find -name *.war -exec jar xvf {} \; ?? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyJGLkACgkQ9CaO5/Lv0PCltQCfZn76nzpcThQ+NJYptvLL4EzM LLAAmwQJWl9+uUNiUhGE+1PeW3siOUwB =EdTH -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache AJP to 4 TCs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, On 9/9/2010 2:00 AM, Andrew Bruno wrote: [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_worker.c (242): creating worker loadbalancer [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_worker.c (146): about to create instance loadbalancer of lb [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_worker.c (159): about to validate and init loadbalancer [Wed Sep 08 22:57:36 2010] [6912:6336] [error] jk_lb_worker.c (1536): allocating lb sub worker record from shared memory [Wed Sep 08 22:57:36 2010] [6912:6336] [error] jk_worker.c (163): validate failed for loadbalancer [Wed Sep 08 22:57:36 2010] [6912:6336] [error] jk_worker.c (262): failed to create worker loadbalancer D'oh. In your original post, did you include your entire workers.properties file? Also, can you post all your Jk* directives you have active in your httpd configuration? The code that performs validation of the worker is found in native/common/jk_lb_worker.c: static int JK_METHOD validate(jk_worker_t *pThis, jk_map_t *props, jk_worker_env_t *we, jk_logger_t *l) [Wed Sep 08 22:57:36 2010] [6912:6336] [error] jk_lb_worker.c (1536): allocating lb sub worker record from shared memory This occurs on line 1536 (in mod_jk 1.2.30), in this neighborhood: 1533 for (i = 0; i num_of_workers; i++) { 1534 p-lb_workers[i].s = jk_shm_alloc_lb_sub_worker(p-p); 1535 if (p-lb_workers[i].s == NULL) { 1536 jk_log(l, JK_LOG_ERROR, 1537allocating lb sub worker record from shared memory); 1538 JK_TRACE_EXIT(l); 1539 return JK_FALSE; 1540 } 1541 } This looks like it might be a shared memory allocation error. Once you get into the jk_shm and jk_pool code, there's no debug logging of any kind :( You might have to hack-in some debug logging if Rainer or Mladen can't comment further. Are you comfortable compiling your own mod_jk? It looks like compiling with DEBUG #defined to something will at least get you jk_dump_pool calls when shared memory fails to be allocated. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyJJDIACgkQ9CaO5/Lv0PC5qgCgrC95f3fzfE/pVG1doE/IewW1 j8cAoKEwnNKI5Rs8RsYb6yISFiuY5P9L =kWGg -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: interaction between .forward() and security-constraint
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 9/4/2010 11:42 AM, Brian McBride wrote: On 04/09/2010 15:27, Jason Britton wrote: I would look at a servlet filter to provide this sort of dynamic access control. That's what I'm doing. The filter needs to know the user id - and I was hoping to resuse Tomcat's authentication mechanism for that. But I don't think I can :( Here's something you can do. Write a filter that you attach to URLs that /are/ used for authentication, and then copy the user's username into the session. In your authentication filter, use the username stored in the session instead of calling request.getRemoteUser. Alternatively, you can wrap the request in your own wrapper and override getRemoteUser to get the username from the session if it's not available from the request. I'm sure there are some edge cases where an authenticated user might end up looking like a guest, but you cna probably solve those. If you always use HTTP Authentication (it wasn't clear what was really going on, with all that talk about DIGEST authentication), then you can always get the username from the request headers. In that case, your filter can use that as a source of authentication data, too. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyJK9sACgkQ9CaO5/Lv0PCyBwCfexhjBY+HPaAkrKgxonWjY/Xs kyEAn3OvtkaAdgoruHvSkn2oEt5HFl6z =dnvR -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: URL Rewrite
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michel, On 9/5/2010 6:23 PM, michel wrote: - Original Message - From: Hassan Schroeder hassan.schroe...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, September 05, 2010 12:07 PM Subject: Re: URL Rewrite On Sun, Sep 5, 2010 at 8:38 AM, André Warnier a...@ice-sa.com wrote: The right solution would be to make sure that all the relative links in your pages, when they are interpreted by the browser and requested from the server, are also being caught by the rewriting mechanism on the server, and properly redirected to where they should. Or, uh, just don't *ever* use relative links, period. --- Sorry, but I don't understand why. In most cases relative links are great, simply because they are 'self-updating' when the page gets moved. Hard-coding is a last-resort solution. Relative links become problematic precisely /when/ they are moved around: all your relative links are broken. Also, when you start playing games with the URL your web browser sees (rewrites, etc.) and including files, etc., you will inevitably run into a situation where your relative path is nonsensical. Using absolute URLs is very easy using the tools provided by the servlet API, and, IMO, no less convenient than using relative ones. I believe using absolute URLs solves all of the problems I've outlined above, too. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyJLlMACgkQ9CaO5/Lv0PDK3ACgiizrnYts6eQ/HlRJvPk0lYDW /NIAnRPnNvfJPJZLXLDxvANEkHf7sD+I =rX8w -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: nio ajp connector status
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 9/6/2010 3:17 AM, Mark Thomas wrote: On 06/09/2010 03:34, Anthony J. Biacco wrote: Anybody know if there's any plans to make this connector production-ready in the near future for 6.x/7.x? Also, what the current major problems/gotchas are for it and the circumstances where it may be beneficial vs. APR AJP? Nope. It was only ever experimental in 6.0.x and has been dropped from Tomcat 7. Was this dropped due to lack of interest, or is this an idea that just doesn't make any sense? (I don't intend that question to be in any way pejorative.) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyJL1EACgkQ9CaO5/Lv0PAeJQCcDdPmyU+svQI+N4CvaGRYtndW 7IkAn06Y7XnIq/HxEf5o7kc+G+i1o6xu =rlL4 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problems with SSI
awarnier wrote: jeffo1b wrote: I've tried following all of the advice in the previous threads, but I'm up against a wall here. I have added Context privileged=true to my context.xml In the same directory, i have uncommented the SSI Filter as well as the Filter mapping and the *.shtml mime mapping in web.xml. see below: Hi. I have not really followed the discussion so far, but something sounds iffy in what you say above : the in the same directory part. The web.xml and context.xml files of a web application should not be in the same directory, as far as I recall. I believe it is : $CATALINA_BASE/webapps/your-webapp/WEB-INF/web.xml $CATALINA_BASE/webapps/your-webapp/META-INF/context.xml Can you re-check exactly what the previous helpers told you, to see if you did not miss something there ? And/or browse through this page : http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html (although if your are not an IT guy, I feel that you are not going to enjoy this. But at least it shows the locations of things, which you could compare with yours). (And $CATALINA_BASE/ means the top directory of the Tomcat installation). - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Thanks for the response. When I say the same directory, I was referring to what I believe the Context directory, not the webapp directory. I'm also running inside of Eclipse, so it's the files in the Servers folder that I've modified that are published. I have only one webapp deployed on the server, so I didn't modify the files in the webapp directory. -- View this message in context: http://old.nabble.com/Problems-with-SSI-tp29645512p29665245.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problems with SSI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff, On 9/8/2010 7:46 PM, jeffo1b wrote: Finally, i have a file called test.shtml that has the following code: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 titletester/title /head body hi there !-- #include file=/inc.html -- /body The inc.html file is in the same directory as the test.html file. You meant test.shtml, right? when I run the file, i simply see the hi there and none of the contents of the inc.html file. How do you request (not run) the file? What is the URL? What is the contents of the file? Do you get the !-- #include ... -- still in the file? If that's the case, then either the SSI filter isn't running at all, or your syntax is incorrect. I'm not sure how picky the SSI parser is, but it appears that you have this: !-- #include file=/inc.html -- and the parser is looking for this: !--#include file=/inc.html -- Also, the (Apache httpd) documentation for #include /file/ is to a relative path /on the disk/ which would suggest that /inc.html would have to be put into your server's root directory. Probably not a good idea. Instead, try using /virtual/ like this: !--#include virtual=inc.html -- This is also a relative path, but it's relative to the current URL, so if you request http://host/app/test.shtml, it will include http://host/app/inc.html 1. i don't have the invoker servlet un-commented. is this required? No. You must choose between the filter and the servlet implementations. Actually, I don't see why you couldn't use both simultaneously, but they recommend against using both. 2. i got totally lost on the reg -exp discussions. i am not in the IT world and it was simply beyond my skill set. You might need to get someone else to configure this for you, then. For now, set the regular expression to .* (without quotes, of course). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyJM8UACgkQ9CaO5/Lv0PBa6ACghr7EdFCN0nJtUBb0sTfOz6ZN qGsAnRox5ShzLC4OZoHMhkbr7vusG9HP =3Elg -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problems with SSI
Pid * wrote: On 09/09/2010 14:57, jeffo1b wrote: I've tried following all of the advice in the previous threads, but I'm up against a wall here. I have added Context privileged=true to my context.xml In the same directory, i have uncommented the SSI Filter as well as the Filter mapping and the *.shtml mime mapping in web.xml. see below: filter filter-namessi/filter-name filter-class org.apache.catalina.ssi.SSIFilter /filter-class init-param param-namecontentType/param-name param-valuetext/x-server-parsed-html(;.*)?/param-value /init-param init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-nameexpires/param-name param-value666/param-value /init-param init-param param-nameisVirtualWebappRelative/param-name param-value0/param-value /init-param /filter filter-mapping filter-namessi/filter-name url-pattern*.shtml/url-pattern /filter-mapping mime-mapping extensionshtml/extension mime-typetext/x-server-parsed-html/mime-type /mime-mapping Finally, i have a file called test.shtml that has the following code: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 titletester/title /head body hi there !-- #include file=/inc.html -- /body The inc.html file is in the same directory as the test.html file. when I run the file, i simply see the hi there and none of the contents of the inc.html file. 1. i don't have the invoker servlet un-commented. is this required? 2. i got totally lost on the reg -exp discussions. i am not in the IT world and it was simply beyond my skill set. Anybody have an idea where I've gone wrong? Much appreciated. jeff Unless my email client is broken, you've sent the same message 4 times. André replied to an earlier message, you should read his response. p My apologies, when I hit submit it took me to an error page so I did it a few times. As the OP, can I delete? -- View this message in context: http://old.nabble.com/Problems-with-SSI-tp29648127p29668307.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Problems with SSI
My apologies, when I hit submit it took me to an error page so I did it a few times. As the OP, can I delete? -- This is an email list, not a forum so no. Every time you submitted it sent an email which can't be undone. If nabble is giving you troubles you might try actually subscribing to the list through your email http://tomcat.apache.org/lists.html#tomcat-users - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: nio ajp connector status
On 09/09/2010 20:02, Christopher Schultz wrote: Mark, On 9/6/2010 3:17 AM, Mark Thomas wrote: On 06/09/2010 03:34, Anthony J. Biacco wrote: Anybody know if there's any plans to make this connector production-ready in the near future for 6.x/7.x? Also, what the current major problems/gotchas are for it and the circumstances where it may be beneficial vs. APR AJP? Nope. It was only ever experimental in 6.0.x and has been dropped from Tomcat 7. Was this dropped due to lack of interest, or is this an idea that just doesn't make any sense? (I don't intend that question to be in any way pejorative.) Partially lack of interest, partially because it was based on the same pre-Coyote code as code as the older BIO connector org.apache.jk.server.JkCoyoteHandlerwhich which was also dropped and partially because I was looking for any excuse to make the code base smaller, more consistent and easier to maintain. I still have going through the 7.0.x code and purging anything that is no longer used on my to-do list (maybe once I figure out what on earth is causing bug 49884). The obvious stuff has gone but I suspect there is a lot more. There is a Coyote replacement for BIO: org.apache.coyote.ajp.AjpProtocol but not for NIO. Personally I have no urge to write another connector but the nice thing about the ASF is if that is an itch someone wants to scratch then they are free to do so. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problems with SSI
Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff, On 9/8/2010 7:46 PM, jeffo1b wrote: Finally, i have a file called test.shtml that has the following code: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 titletester/title /head body hi there !-- #include file=/inc.html -- /body The inc.html file is in the same directory as the test.html file. You meant test.shtml, right? when I run the file, i simply see the hi there and none of the contents of the inc.html file. How do you request (not run) the file? What is the URL? What is the contents of the file? Do you get the !-- #include ... -- still in the file? If that's the case, then either the SSI filter isn't running at all, or your syntax is incorrect. I'm not sure how picky the SSI parser is, but it appears that you have this: !-- #include file=/inc.html -- and the parser is looking for this: !--#include file=/inc.html -- Also, the (Apache httpd) documentation for #include /file/ is to a relative path /on the disk/ which would suggest that /inc.html would have to be put into your server's root directory. Probably not a good idea. Instead, try using /virtual/ like this: !--#include virtual=inc.html -- This is also a relative path, but it's relative to the current URL, so if you request http://host/app/test.shtml, it will include http://host/app/inc.html 1. i don't have the invoker servlet un-commented. is this required? No. You must choose between the filter and the servlet implementations. Actually, I don't see why you couldn't use both simultaneously, but they recommend against using both. 2. i got totally lost on the reg -exp discussions. i am not in the IT world and it was simply beyond my skill set. You might need to get someone else to configure this for you, then. For now, set the regular expression to .* (without quotes, of course). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyJM8UACgkQ9CaO5/Lv0PBa6ACghr7EdFCN0nJtUBb0sTfOz6ZN qGsAnRox5ShzLC4OZoHMhkbr7vusG9HP =3Elg -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org I'm sure it was a combination of both, but I changed !-- #include file=/inc.html -- to !--#include virtual=inc.html -- and it worked! Thank you, and apologies for the poor use of terminology nomenclature. Now, if I can just figure out how to do recursive .jsp includes... -- View this message in context: http://old.nabble.com/Problems-with-SSI-tp29645512p29670889.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problems with SSI
This thread may help. http://www.pubbs.net/201009/tomcat/979-question-on-ssi.html On Thu, Sep 9, 2010 at 10:09 PM, jeffo1b j...@selectenergypartners.com wrote: Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff, On 9/8/2010 7:46 PM, jeffo1b wrote: Finally, i have a file called test.shtml that has the following code: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 titletester/title /head body hi there !-- #include file=/inc.html -- /body The inc.html file is in the same directory as the test.html file. You meant test.shtml, right? when I run the file, i simply see the hi there and none of the contents of the inc.html file. How do you request (not run) the file? What is the URL? What is the contents of the file? Do you get the !-- #include ... -- still in the file? If that's the case, then either the SSI filter isn't running at all, or your syntax is incorrect. I'm not sure how picky the SSI parser is, but it appears that you have this: !-- #include file=/inc.html -- and the parser is looking for this: !--#include file=/inc.html -- Also, the (Apache httpd) documentation for #include /file/ is to a relative path /on the disk/ which would suggest that /inc.html would have to be put into your server's root directory. Probably not a good idea. Instead, try using /virtual/ like this: !--#include virtual=inc.html -- This is also a relative path, but it's relative to the current URL, so if you request http://host/app/test.shtml, it will include http://host/app/inc.html 1. i don't have the invoker servlet un-commented. is this required? No. You must choose between the filter and the servlet implementations. Actually, I don't see why you couldn't use both simultaneously, but they recommend against using both. 2. i got totally lost on the reg -exp discussions. i am not in the IT world and it was simply beyond my skill set. You might need to get someone else to configure this for you, then. For now, set the regular expression to .* (without quotes, of course). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyJM8UACgkQ9CaO5/Lv0PBa6ACghr7EdFCN0nJtUBb0sTfOz6ZN qGsAnRox5ShzLC4OZoHMhkbr7vusG9HP =3Elg -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org I'm sure it was a combination of both, but I changed !-- #include file=/inc.html -- to !--#include virtual=inc.html -- and it worked! Thank you, and apologies for the poor use of terminology nomenclature. Now, if I can just figure out how to do recursive .jsp includes... -- View this message in context: http://old.nabble.com/Problems-with-SSI-tp29645512p29670889.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache AJP to 4 TCs
Weird. I just updated my environment (on Fedora 13) to support 4 Tomcats and it worked as expected. I verified this by running my test application, watching traffic via jk-manager, and then shutting down (disabling) one mod_jk connection at a time. Clustering worked, farm deployment worked, and the application (such as it is) worked. Here are the particulars: OS: Fedora 13 JRE:1.6.0_21 (32 bit) Apache: 2.2.16 (comes with OS - not the latest) Tomcat: 6.0.29 mod_jk: 1.2.30 (compiled locally) My workers.properties file (without all the comments) worker.list=jk-status,jk-manager,lb worker.jk-status.type=status worker.jk-status.read_only=true worker.jk-manager.type=status worker.template.type=ajp13 worker.template.host=192.168.0.254 worker.template.socket_connect_timeout=5000 worker.template.socket_keepalive=true worker.template.ping_mode=A worker.template.ping_timeout=1 worker.template.connection_pool_minsize=0 worker.template.connection_pool_timeout=600 worker.template.reply_timeout=30 worker.template.recovery_options=3 worker.deimos.reference=worker.template worker.deimos.port=8019 worker.mars.reference=worker.template worker.mars.port=8029 worker.phobos.reference=worker.template worker.phobos.port=8039 worker.xerxes.reference=worker.template worker.xerxes.port=8049 worker.lb.type=lb worker.lb.error_escalation_time=0 worker.lb.max_reply_timeouts=10 worker.lb.balance_workers=deimos,mars,phobos,xerxes My uriworkermap.properties file is next. The RPets application is a random pet generator I use for testing clustering. /examples=lb /examples/*=lb /docs=lb /docs/*=lb /RPets=lb /RPets/*=lb mod_jk is added as an included file to httpd.conf. Here is my configuration. LoadModule jk_module modules/mod_jk.so IfModule jk_module JkWorkersFile conf.d/workers.properties JkLogFile logs/mod_jk.log JkLogLevel info JkShmFile /var/run/httpd/mod_jk.shm JkOptions +RejectUnsafeURI JkWatchdogInterval 60 Location /jk-status JkMount jk-status Order deny,allow Deny from all Allow from 127.0.0.1 /Location Location /jk-manager JkMount jk-manager Order deny,allow Deny from all Allow from 127.0.0.1 /Location JkMountFile conf.d/uriworkermap.properties /IfModule Here is one (of four) server.xml files stripped of comments and some miscellaneous global resources. I apologize for any line wrapping. Some of the package names are quite long. ?xml version='1.0' encoding='utf-8'? Server port=8015 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.core.JreMemoryLeakPreventionListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8090 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8453/ Connector port=8019 protocol=AJP/1.3 redirectPort=8453/ Engine name=Catalina defaultHost=localhost jvmRoute=deimos Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster channelSendOptions=6 Manager className=org.apache.catalina.ha.session.DeltaManager expireSessionsOnShutdown=false notifyListenersOnReplication=true/ Channel className=org.apache.catalina.tribes.group.GroupChannel Membership className=org.apache.catalina.tribes.membership.McastService address=228.0.0.4 port=45564 frequency=500 dropTime=3000/ Receiver className=org.apache.catalina.tribes.transport.nio.NioReceiver address=auto port=4000 selectorTimeout=100 maxThreads=6/ Sender className=org.apache.catalina.tribes.transport.ReplicationTransmitter Transport className=org.apache.catalina.tribes.transport.nio.PooledParallelSender/ /Sender Interceptor className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/ Interceptor
conf/Catalina/HOST/contextname.xml being removed
Could anyone give me an explanation what might cause my webapp's context configuration to be deleted out of the tomcat/conf/Catalina/[HOST]/ directory? I've got a foo.war file in the webapps directory, it gets exploded upon startup. It has its context definition residing in the file conf/Catalina/[HOST]/foo.xml. Every now and then foo.xml just gets up and blown away from the tomcat/conf/Catalina/[HOST]/ directory, usually upon a tomcat shutdown and startup. Any suggestions on what might be causing this deletion and how to prevent it from occurring would be greatly appreciated. Running tomcat 6.0.29 on 64-bit RHEL 5.5. Jason