Re: JK 1.2.28 - load balancer worker fails on startup with one worker down ?
Scott Bradshaw wrote: Yep - you are right on. The machine was taken off the network and moved to a test network for a few days. It currently does not resolve. If I change the host to its old IP address (which does not respond), the system starts up just fine. I would expect to see an error in the log, but just because 1 host does not resolve, I wouldn't expect mod_jk to prevent the rest of the hosts from functioning. In the current configuration I just changed, the IP address I have now is not functioning and could be a configuration error, but mod_jk is still loading. How do I go about submitting this as an enhancement request for the next version? Still continuing to guess.. This is about efficiency. If mod_jk had to do a DNS lookup each time it wants to send a packet to a backend Tomcat (or at least each time it wants to create a new connection to a backend Tomcat), that would be very inefficient. So, instead, mod_jk stores the IP address of each backend Tomcat, and during normal operation uses only that stored IP. But, as a convenience, in the configuration file, it allows you to specify the worker's host as a name if you wish; and if you do that, it does the lookup once at startup, to resolve that to an IP which it stores. But if it cannot at startup do this lookup and resolve the name to an IP, then it is stuck and cannot go further. Because if it did go further, then it would have to store this workers'host as an unresolved name, and then it would have to do a lookup during normal operation. CQFD. Now, I have really no idea if the code is really like that, but if not at least it seems logical, doesn't it ? ;-) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Tomcat 6.0.18 - download info
HASSAN Kamrul wrote: Thank you for quick responses. I need to upgrade to Apache Tomcat 6.0.18 for Windows XP. So, I would back up a copy of tomcat/conf tomcat/bin/catalina.bat Please let me know where I can get download for Apache Tomcat 6.0.18 [ Windows XP] You're kidding right? How did you manage to join this mailing list if you couldn't find the Tomcat website? [hint] there's a clue in the info below... p - 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
tomcat hangs on shutdown
Hi everybody, I am using tomcat 6.0.18 from eclipse 3.4, on windows xp 32 bit. I am experiencing a server hung whenever i try to gracefully shutdown the server. i am attaching the tomcat log and the stack trace taken at the hanging. i would appreciate any help! thanks you! shahar http://www.nabble.com/file/p23073238/tomcat.log tomcat.log http://www.nabble.com/file/p23073238/stack.log stack.log -- View this message in context: http://www.nabble.com/tomcat-hangs-on-shutdown-tp23073238p23073238.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
Help Needed with getting Client Authentication Working With Tomcat 5.5
I am trying to get Client Authentication working with Tomcat 5.5, I have successfully got SSL working without Client Authentication. This is what I have done so far. Created a keystore with new certificate: keytool -genkey -alias mykey -keyalg RSA -kaypass changeit -keystore keystore.jks -storepass changeit Exported certificate: keytool -export -alias mykey -file mykey.cer -keystore keystore.jks -storepass changeit Imported certificate into trust store: keytool -import -v -trustcacerts alias mykey -keypass changeit -file mykey.cer -keystore cacerts.jks -storepass changeit Added the following Connector into server.xml: Connector port=443 scheme=https secure=true keystoreFile=C:/keystore.jks keystorePass=changeit keystoreType=JKS keyAlias=mykey truststoreFile=C:/cacerts.jks truststorePass=changeit truststoreType=JKS sslProtocol=TLS maxSpareThreads=75 maxThreads=350 uRIEncoding=UTF-8 minSpareThreads=25 clientAuth=true /Connector Within the Firefox browser this gives the following error when going to url: https//hostname.domain SSL peer cannot verify your certificate (Error code: ssl_error_bad_cert_alert) If I change clientAuth=true to clientAuth=false the default Tomcat webpage is displayed within the browser. Have I missed something within the configuration or do I need to do something different of the creation of the trust store certificate? Thanks Ron - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: What Tomcat presentations / demos / discussions do you want to see at ApacheCon US 2009?
Hi Mark, - I think an overview of thenew features of Tomcat 7 would be great - Fillip did a talk about the new Servlet Specs 3.0 - Concerning how often questions regarding mod_jk are showing up in the list: mod_jk - HowTo / Best practices - I very much liked the talk becoming a tomcat superuser Mark, I wrote a mail to Fillip since his presentations of the ApacheCon EU (Servlet 3.0 etc.) are not available via the ApacheCon-website, however, seems as if my mail went straight into Fillip's Spam-folder. Could you maybe ask him if he could provide his slight from the last ApachCon? And please /not/ on slideshare.net: 1st, I don't like to register there, 2nd, I'd actually like to avoid installing Flash... Cheers Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat hangs on shutdown
shaharV wrote: Hi everybody, I am using tomcat 6.0.18 from eclipse 3.4, on windows xp 32 bit. I am experiencing a server hung whenever i try to gracefully shutdown the server. i am attaching the tomcat log and the stack trace taken at the hanging. i would appreciate any help! You have started a non-daemon thread (pool-7-thread-1) which you must shutdown when your application stops. A context listener is the usual approach. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: What Tomcat presentations / demos / discussions do you want to see at ApacheCon US 2009?
Mark Thomas wrote: Please feel free to pitch in with your suggestions on this thread and comment on suggestions made by other people. The more involved the community gets, the better the outcome is likely to be. I was at a conference recently and rather rashly made the statement OOM PermGen errors on reload are an application issue, not a Tomcat one. Several people came up to me afterwards with variations on a theme of Our app has OOM on reload - put your money where your mouth is and show us where we have gone wrong Having helped several people track down the causes of these errors (and yes they were all application issues) it occurred to me that there may be interest in this at ApacheCon. So my suggestion is: Title:Resolving OOM-PermGen errors on webapp reload Type: Session Abstract: What causes the error. Typical root causes. How to find and fix the root causes. With live demo. Audience: Developer/SysAdmin Thoughts? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: What Tomcat presentations / demos / discussions do you want to see at ApacheCon US 2009?
Gregor Schneider wrote: Hi Mark, - I think an overview of thenew features of Tomcat 7 would be great Mladen was talking about presenting a Tomcat community overview I'll let him give some more details on that. - Fillip did a talk about the new Servlet Specs 3.0 I think he included that in the CFP but good to know there is interest :) - Concerning how often questions regarding mod_jk are showing up in the list: mod_jk - HowTo / Best practices Any takers for presenting this? - I very much liked the talk becoming a tomcat superuser It was included in the CFP. Happy to do it again. Mark, I wrote a mail to Fillip since his presentations of the ApacheCon EU (Servlet 3.0 etc.) are not available via the ApacheCon-website, however, seems as if my mail went straight into Fillip's Spam-folder. Could you maybe ask him if he could provide his slight from the last ApachCon? And please /not/ on slideshare.net: 1st, I don't like to register there, 2nd, I'd actually like to avoid installing Flash... The conference organisers took copies of our slides and promised us they would upload them for us. Oh well. I uploaded mine myself. I'll see if Filip can do the same. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: What Tomcat presentations / demos / discussions do you want to see at ApacheCon US 2009?
+1. Probably won't be able to attend, but slides would certainly help. On Apr 16, 2009, at 6:51 AM, Mark Thomas wrote: Mark Thomas wrote: Please feel free to pitch in with your suggestions on this thread and comment on suggestions made by other people. The more involved the community gets, the better the outcome is likely to be. I was at a conference recently and rather rashly made the statement OOM PermGen errors on reload are an application issue, not a Tomcat one. Several people came up to me afterwards with variations on a theme of Our app has OOM on reload - put your money where your mouth is and show us where we have gone wrong Having helped several people track down the causes of these errors (and yes they were all application issues) it occurred to me that there may be interest in this at ApacheCon. So my suggestion is: Title:Resolving OOM-PermGen errors on webapp reload Type: Session Abstract: What causes the error. Typical root causes. How to find and fix the root causes. With live demo. Audience: Developer/SysAdmin Thoughts? 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: What Tomcat presentations / demos / discussions do you want to see at ApacheCon US 2009?
From: André Warnier [mailto:a...@ice-sa.com] How about a session like : Everything you always wanted to know about connecting Apache httpd and Tomcat, but never dared to ask To be given jointly by Apache httpd AND Tomcat experts. - when do you need to do that, and when do you not really need it Ye gods. You'll have a religious war between the presenters! - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: What Tomcat presentations / demos / discussions do you want to see at ApacheCon US 2009?
Mark Thomas wrote: [...] How about a session like : Everything you always wanted to know about connecting Apache httpd and Tomcat, but never dared to ask To be given jointly by Apache httpd AND Tomcat experts. - when do you need to do that, and when do you not really need it - assuming you have determined that you need this, what are the possibilities and how do they compare - a word about mod_proxy_http - a word about mod_proxy_ajp - a word about mod_jk - comparison between the above, and when it matters or not - passing requests from httpd to Tomcat, but with modifications : mod_rewrite vs UrlRewriteFilter Marketing suggestion : have a sale of teeshirts labeled Tomcat logging . rocks (checkbox) . sucks (checkbox) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Tomcat 6.0.18 - download info
From: HASSAN Kamrul [mailto:kamrul.has...@alcatel-lucent.com] Subject: Apache Tomcat 6.0.18 - download info So, I would back up a copy of tomcat/conf tomcat/bin/catalina.bat If you're upgrading, DO NOT blindly copy anything in the conf or bin directories from the older version to the new; you must apply whatever configuration or script changes you've made for the older version to the new, adjusting for whatever has changed between the two. - 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: how to configure a PKCS#11 keysore and use it with Tomcat for SSLenabling
From: Rajat Gupta05 [mailto:rajat_gupt...@infosys.com] Subject: how to configure a PKCS#11 keysore and use it with Tomcat for SSLenabling http://www.catb.org/~esr/faqs/smart-questions.html At a bare minimum, tell us the Tomcat version you're using, the JRE/JDK it's running on, and whether or not you're using APR. Also try reading the SSL portion of the Tomcat doc for whatever version you're on. - 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: What Tomcat presentations / demos / discussions do you want to see at ApacheCon US 2009?
Hi André, On Thu, Apr 16, 2009 at 1:15 PM, André Warnier a...@ice-sa.com wrote: Mark Thomas wrote: [...] How about a session like : Everything you always wanted to know about connecting Apache httpd and Tomcat, but never dared to ask yepp, and Woody Allen as the presenter ;) If you can't get Woody, my suggestion would be Rainer. Cheers Gregor PS.: And since I'm almost certainly not be able to attend the ApacheCon in November, I really hope that some slides will be there... Cheers Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: What Tomcat presentations / demos / discussions do you want to see at ApacheCon US 2009?
Hi Mark, On Thu, Apr 16, 2009 at 12:44 PM, Mark Thomas ma...@apache.org wrote: The conference organisers took copies of our slides and promised us they would upload them for us. Oh well. I uploaded mine myself. I'll see if Filip can do the same. well, on some talks the guys having the chair made sure that the slides went onto a USB-stick which then was passed to the organisators for being put on the ApacheCon-website. Fillip actually passed a USB-stick with his slides on among the attendees, unfortunately that stick never made it to my place. If you go to the ApacheCon-Website, you'll find quite some session where it says No material available.. Cheers Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
OCI and Realm Problem
Hi, I'm having some problem setting up Realm with OCI. I have a new Tomcat enviroment, clean, with only one application installed. This application use JDBCRealm with Oracle driver for jdbc for authentication and it display simple jsp page containing text messagges. Everything works with the Thin Driver, instead with OCI driver, after the login procedure the java virtual machine crash with some memory dump messagges... The ojdbc14.jar is in $TOMCAT_HOME/common/lib These are my enviroment variable: export ORACLE_HOME=/usr/lib/oracle/10.2.0/client export JAVA_HOME=/usr/java/jdk1.5.0_17/ export CATALINA_BASE=/opt/tomcat/apache-tomcat-5.5.27 export TOMCAT_HOME=/opt/tomcat/apache-tomcat-5.5.27 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib The server is a 64 bit machine but I don't think there is problem about it. I don't use other library ... I don't understand why it crash.. I can attach a part of the log error messages if it can help. Any suggestion will be appreciated Thanks you -- View this message in context: http://www.nabble.com/OCI-and-Realm-Problem-tp23079428p23079428.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
DEPLOY ON STARTUP
Hello, I'm working with Tomcat 6.0.16. Is there any way to avoid tomcat deploys war files when starting? In my host I've set autoDeploy to false and deployOnStartup to false, but when Tomcat starts, it deploys my wars. Thanks in advance, Joan.
Re: What Tomcat presentations / demos / discussions do you want to see at ApacheCon US 2009?
On 16.04.2009 12:44, Mark Thomas wrote: Gregor Schneider wrote: - Concerning how often questions regarding mod_jk are showing up in the list: mod_jk - HowTo / Best practices Any takers for presenting this? Not sure, whether this is too specific for ApacheCon, but yes, if there is interest, I could give the talk. I'll submit a proposal and let the committee decide :) Concerning the proposal about a joined talk for httpd and mod_jk reverse proxy solutions: putting all this into one slot will be very dificult. Then we would need to keep it an overview thing and again people might not get the answers they are seeking (to many it depends without really explaining how you decide). So I prefer to do either a more specific talk (like one on mod_jk), or we would need two adjacent time slots. The latter gives maybe to much precious time ressources to this topic. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JK 1.2.28 - load balancer worker fails on startup with one worker down ?
Still continuing to guess.. This is about efficiency. If mod_jk had to do a DNS lookup each time it wants to send a packet to a backend Tomcat (or at least each time it wants to create a new connection to a backend Tomcat), that would be very inefficient. So, instead, mod_jk stores the IP address of each backend Tomcat, and during normal operation uses only that stored IP. But, as a convenience, in the configuration file, it allows you to specify the worker's host as a name if you wish; and if you do that, it does the lookup once at startup, to resolve that to an IP which it stores. But if it cannot at startup do this lookup and resolve the name to an IP, then it is stuck and cannot go further. Agreed - it cannot go further for this worker. I would expect an error to get logged and the load balanced worker to continue on to the next worker configured. Because if it did go further, then it would have to store this workers'host as an unresolved name, and then it would have to do a lookup during normal operation. CQFD. Now, I have really no idea if the code is really like that, but if not at least it seems logical, doesn't it ? ;-) Yes, it does seem logical, but flawed for a load balancer. If it was a normal worker, I would 100% agree it should quit. I will go ahead and configure all the Tomcat nodes by IP address in the mod_jk config file instead of the host name. The risk of having our whole production web application go down if one host is not available is not worth this convenient feature of mod_jk. :-)
Re: What Tomcat presentations / demos / discussions do you want to see at ApacheCon US 2009?
Rainer Jung wrote: On 16.04.2009 12:44, Mark Thomas wrote: Gregor Schneider wrote: - Concerning how often questions regarding mod_jk are showing up in the list: mod_jk - HowTo / Best practices Any takers for presenting this? Not sure, whether this is too specific for ApacheCon, but yes, if there is interest, I could give the talk. I'll submit a proposal and let the committee decide :) Concerning the proposal about a joined talk for httpd and mod_jk reverse proxy solutions: putting all this into one slot will be very dificult. Then we would need to keep it an overview thing and again people might not get the answers they are seeking (to many it depends without really explaining how you decide). So I prefer to do either a more specific talk (like one on mod_jk), or we would need two adjacent time slots. The latter gives maybe to much precious time ressources to this topic. How about a BOF session one evening where we can have more of a discussion? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JK 1.2.28 - load balancer worker fails on startup with one worker down ?
On 16.04.2009 17:55, Scott Bradshaw wrote: Still continuing to guess.. This is about efficiency. If mod_jk had to do a DNS lookup each time it wants to send a packet to a backend Tomcat (or at least each time it wants to create a new connection to a backend Tomcat), that would be very inefficient. So, instead, mod_jk stores the IP address of each backend Tomcat, and during normal operation uses only that stored IP. But, as a convenience, in the configuration file, it allows you to specify the worker's host as a name if you wish; and if you do that, it does the lookup once at startup, to resolve that to an IP which it stores. But if it cannot at startup do this lookup and resolve the name to an IP, then it is stuck and cannot go further. Agreed - it cannot go further for this worker. I would expect an error to get logged and the load balanced worker to continue on to the next worker configured. Because if it did go further, then it would have to store this workers'host as an unresolved name, and then it would have to do a lookup during normal operation. CQFD. Now, I have really no idea if the code is really like that, but if not at least it seems logical, doesn't it ? ;-) Yes, it does seem logical, but flawed for a load balancer. If it was a normal worker, I would 100% agree it should quit. I will go ahead and configure all the Tomcat nodes by IP address in the mod_jk config file instead of the host name. The risk of having our whole production web application go down if one host is not available is not worth this convenient feature of mod_jk. :-) André is very close to our original reasoning: As he explained, it is only necessary, that the address is resolvable during startup. This is not related to whether the node does work or not. The latter is detected by the balancer dynamically. Why do we force the address to be resolvable during startup? This is because we think an address that has already formally no chance to work most likely presents a configuration error. I could phrase it like this: if you are using names as addresses (instead of IPs), then it is critical, that your DNS does work (and contain the data). In your case the missing data in DNS is close to a failed DNS and this will be a problem for almost all applications configured with names. Yes, there are too many error messages in this situation, but the first one said: worker mygpgby06 can't resolve tomcat address mygpgby06.mycompany.com So its not completely unlikely you can spot there's a name resolution problem. What remains for me is your suggestion, that the error is not a fatal one, since there are other balanced workers left. We could include such a check in the startup code, although I'm not really convinced, that your problem is a good reason for this. I'm open to more argumntation and suggestions :) Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: DEPLOY ON STARTUP
From: Joan Ventus Proxy [mailto:joan.balagu...@ventusproxy.com] Subject: DEPLOY ON STARTUP I'm working with Tomcat 6.0.16. Is there any way to avoid tomcat deploys war files when starting? In my host I've set autoDeploy to false and deployOnStartup to false, but when Tomcat starts, it deploys my wars. I've never seen this problem; post the server.xml you think you're using. You didn't tell us how you're running Tomcat - via scripts, as a service, or under an IDE. If it's the last, IDEs have this annoying habit of ignoring your configuration and using their own. Make sure the problem occurs when you're running Tomcat by itself. Also, try moving up to 6.0.18; no one likes looking at bugs in non-current levels. - 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: DEPLOY ON STARTUP
Hello, I'm starting Tomcat with the startup.sh script located in /bin Tomcat installation directory (Linux RHES 3). I attach my server.xml. Thanks, Joan. -Mensaje original- De: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Enviado el: jueves, 16 de abril de 2009 18:28 Para: Tomcat Users List Asunto: RE: DEPLOY ON STARTUP From: Joan Ventus Proxy [mailto:joan.balagu...@ventusproxy.com] Subject: DEPLOY ON STARTUP I'm working with Tomcat 6.0.16. Is there any way to avoid tomcat deploys war files when starting? In my host I've set autoDeploy to false and deployOnStartup to false, but when Tomcat starts, it deploys my wars. I've never seen this problem; post the server.xml you think you're using. You didn't tell us how you're running Tomcat - via scripts, as a service, or under an IDE. If it's the last, IDEs have this annoying habit of ignoring your configuration and using their own. Make sure the problem occurs when you're running Tomcat by itself. Also, try moving up to 6.0.18; no one likes looking at bugs in non-current levels. - 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 Server port=8005 shutdown=SHUTDOWN !--APR library loader. Documentation at /docs/apr.html -- Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -- Listener className=org.apache.catalina.core.JasperListener / !-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -- 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=VPFW Connector port=80 protocol=HTTP/1.1 maxThreads=150 connectionTimeout=2 redirectPort=8443 / Engine name=VPFW defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=/var/local/projectes/vpfw52/war debug=0 unpackWARs=true autoDeploy=false deployOnStartup=false xmlValidation=false xmlNamespaceAware=false Context path= docBase=vpfw.war debug=0 reloadable=false crossContext=false Resource name=jdbc/dsVPFW auth=Container type=javax.sql.DataSource password=vpfw52 driverClassName=com.mysql.jdbc.Driver maxIdle=2 maxWait=5000 username=vpfw52 url=jdbc:mysql://localhost/vpfw52 maxActive=50/ /Context /Host /Engine /Service /Server - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: request.getSession() generates IllegalStateException in top filter(appears, response not being recycled properly if SocketException happenedfor it in the past)
From: Leonard Gestrin [mailto:leonard.gest...@markettools.com] Subject: request.getSession() generates IllegalStateException in top filter(appears, response not being recycled properly if SocketException happenedfor it in the past) After a while, the same response object is being used by tomcat again, but as it gets to a first filter, I can see that it's already in commited state (response.isCommitted()==true) It's not completely clear from your description whether the filter is part of the request that encountered the socket error or a different request. If the former, the behavior you observe is expected; if the latter, you may be running into this bug, fixed over a year ago: https://issues.apache.org/bugzilla/show_bug.cgi?id=30949 This is tomcat apache-tomcat-5.5.20, JRE 15, WinXP. What happens if you try it on a version that's not over 2.5 years old? - 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: DEPLOY ON STARTUP
Joan Ventus Proxy wrote: Hello, I'm starting Tomcat with the startup.sh script located in /bin Tomcat installation directory (Linux RHES 3). Any context defined in server.xml always gets deployed. deployOnStartup and autoDeploy apply only to contexts 'discovered' by Tomcat. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: DEPLOY ON STARTUP
Hello, What does 'discovered' by Tomcat mean? Those contexts located in conf/Catalina/hostname, with the associated xml? Joan. -Mensaje original- De: Mark Thomas [mailto:ma...@apache.org] Enviado el: jueves, 16 de abril de 2009 18:50 Para: Tomcat Users List Asunto: Re: DEPLOY ON STARTUP Joan Ventus Proxy wrote: Hello, I'm starting Tomcat with the startup.sh script located in /bin Tomcat installation directory (Linux RHES 3). Any context defined in server.xml always gets deployed. deployOnStartup and autoDeploy apply only to contexts 'discovered' by Tomcat. 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: mod_jk ping_timeout revisit
Hi Anthony, On 16.04.2009 01:49, Anthony J. Biacco wrote: A month or so ago I posted that I was having problems with mod_jk (1.2.27) getting a pong response back from tomcat (6.0.18) in responses to a ping. Apache is 2.2.11 with worker mpm. I have a little more information now and am hoping with help I can solve the problem so I can keep the ping timeout low and get rid of the error. Error does not show up when ping timeout is = 25000. It sounds like you can easily reproduce on a test system? If yes, despite what I'll write below, increasing the log level to trace presents even more info for us developers, so in case we do another test, please adjust the log level. But debug is fine for now. My tomcat connectionTimeout is set to 6 My jkwatchdoginterval is set to 60 My relevant workers.properties is: worker.template.connection_pool_timeout=60 worker.template.reply_timeout=2 Not related to your ping observation, but if you really want to set your reply_timeout that small, consider using max_reply_timeouts too. Otherwise one single long running request will throw the whole worker out of the balancing for some time (due to the reply_timeout indicating a failed node). worker.template.socket_timeout=10 I'm not very much in favor of the socket_timeout, but well, if you think you need it. Just for the sake of completeness, please check, whether having no socket_timeout changes anything about your problem. worker.template.socket_connect_timeout=5000 worker.template.ping_mode=A worker.template.ping_timeout=1 The mod_jk error is: First of all, we note that the process id and thread id in all those log lines is 23222:1085466944. So all lines come from the same thread. There are no lines mixed between two or more concurrent things going on. The log lines reflect some sequential thing going on. [Wed Apr 15 17:25:06 2009] [23222:1085466944] [debug] wc_maintain::jk_worker.c (339): Maintaining worker app-01 We start doing internal maintenance, i.e. checking for idle connections, doing ping (if it is the watchdog thread and interval ping is active - it is for your config), adjust some load numbers etc. [Wed Apr 15 17:25:06 2009] [23222:1085466944] [debug] ajp_maintain::jk_ajp_common.c (3081): reached pool min size 13 from 25 cache slots OK, our connection pool will not be checked for more idle connections, because we already reached the configured (=default) minimum. I think here's the culprit. If connections would have been closed due to idleness (connection_pool_timeout), there would have been a message of type cleaning pool slot=XX elapsed NN in MM. NN would be the idle time, MM how long it took to close the connection. Checking the idleness stopps as soon as we reach the allowed min pool size, which is immediately the case here. [Wed Apr 15 17:25:06 2009] [23222:1085466944] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): sending to ajp13 pos=4 len=5 max=16 We are doing a Cping/Cpong test [Wed Apr 15 17:25:06 2009] [23222:1085466944] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 12 34 00 01 0A 00 00 00 00 00 00 00 00 00 00 00 - .4.. Send the Cping packet over the wire [Wed Apr 15 17:25:06 2009] [23222:1085466944] [debug] jk_shutdown_socket::jk_connect.c (681): About to shutdown socket 52 This is a consequence of the line marked with (*) Shutting down the connection. [Wed Apr 15 17:25:06 2009] [23222:1085466944] [debug] jk_shutdown_socket::jk_connect.c (732): Shutdown socket 52 and read 0 lingering bytes Yep, we shut it down. [Wed Apr 15 17:25:06 2009] [23222:1085466944] [info] ajp_connection_tcp_get_message::jk_ajp_common.c (1143): (app-01) can't receive the response header message from tomcat, tomcat (10.10.10.16:8009) has forced a connection close for socket 52 (*) We failed to read the Cpoong response. Note that we are still in the same second, so the wait time did not expire. We must have had some other failure. My expectation: Tomcat closed the connection due to connectionTimeout. mod_jk didn't check the connection_pool_timeout for this connection, because our pool is already small enough (13 conns). Try setting connection_pool_minsize to 0 and check, whether the observation goes away. Even with minsize 0, it can happen rarely, because Tomcat closes the connection at the moment the connectionTimeout is reached, whereas mod_jk needs to run the internal maintenance (once a minute) to check the idle connection timeouts. On a more busy server this happens fewer times, because we try to reuse the connections used most recently, so idle connections tend to not get reused and then detecting them every now and then is enough. [Wed Apr 15 17:25:06 2009] [23222:1085466944] [info] ajp_handle_cping_cpong::jk_ajp_common.c (876): awaited reply cpong, not received Yeah, we saw that in the debug lines. [Wed Apr 15 17:25:06 2009] [23222:1085466944] [info] ajp_maintain::jk_ajp_common.c
Re: What Tomcat presentations / demos / discussions do you want to see at ApacheCon US 2009?
Mark Thomas wrote: Rainer Jung wrote: On 16.04.2009 12:44, Mark Thomas wrote: Gregor Schneider wrote: - Concerning how often questions regarding mod_jk are showing up in the list: mod_jk - HowTo / Best practices Any takers for presenting this? Not sure, whether this is too specific for ApacheCon, but yes, if there is interest, I could give the talk. I'll submit a proposal and let the committee decide :) Concerning the proposal about a joined talk for httpd and mod_jk reverse proxy solutions: putting all this into one slot will be very dificult. Then we would need to keep it an overview thing and again people might not get the answers they are seeking (to many it depends without really explaining how you decide). So I prefer to do either a more specific talk (like one on mod_jk), or we would need two adjacent time slots. The latter gives maybe to much precious time ressources to this topic. How about a BOF session one evening where we can have more of a discussion? Hi guys. I realise that this is a discussion on the Tomcat list, and that the subject of ApacheCON presentations was brought up by Mark. Also, I'm probably not going to personally attend ApacheCON US (a bit far and expensive), so my suggestion is purely platonic. (*) This being said/written, there was a specific reason why I was suggesting this topic as both broad, and involving httpd as well as Tomcat experts, (and of course connector experts to sit in-between them). But it may depend on the kind of expected attendees of an ApacheCON US conference, of which I have no idea. The reason for the broadness is as follows : I believe that there are many more users/sysadmins/integrators of Apache httpd and Tomcat, than there are developers in each specific area. And, going from the users mailing lists of both Apache httpd and Tomcat, the first kind of question which the first category has, are broad questions of the kind : I would like to set up a configuration such that users call up URLs like so and so, and this results in requests being forwarded/balanced so an so to 3 backend Tomcat applications with URLs like so and so. What do I need to use for that ?. And what they are looking for, is some criteria and guidance as to what to choose among the different techniques available among the ones that exist within the broad Apache (ASF) palette (and maybe even outside of it), to get the job done. Not to say that there would not be a need for some session dedicated to drilling deeper into the pings and pong timeouts of mod_jk per se, but it's a different kind of issue, and different kind of presentation than what I had in mind. I attended ApacheCON in Amsterdam, and loved it. The sessions which I attended were extremely interesting and they were of the one-intensive-subject kind. One mildly frustrating aspect however, was that often there were several subjects I was interested in, but I could not go to all of them because the interesting sessions (for me) were often simultaneous. On the other hand, I was a bit surprised that there were basically no sessions (or very few) where several of these ASF tools were presented together in combination, as a means to an end. My proposal was something in that direction. I realise that considering the breadth of scope of the ASF projects nowadays, it is not possible to cover them all in one session, never mind finding the universally competent speakers. But the httpd+connector+Tomcat combination seems to be an almost ideal case, as it probably also represents 75% of the real-world configurations out there. Maybe a 2-hour session toward the beginning of the conference, to provide some general orientation, to be followed later on by sessions more dedicated to one aspect, when people see more clearly what they want or need. That wasn't really a 3-sentence summary, was it ? André (*) Although if someone suggested that I participate as moderator to the session, and offered to pay my travel expenses, I might possibly find a slot in my busy schedule. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: DEPLOY ON STARTUP
Joan Ventus Proxy wrote: Hello, What does 'discovered' by Tomcat mean? Anything found by the autodeployment process as per the docs. Mark Those contexts located in conf/Catalina/hostname, with the associated xml? Joan. -Mensaje original- De: Mark Thomas [mailto:ma...@apache.org] Enviado el: jueves, 16 de abril de 2009 18:50 Para: Tomcat Users List Asunto: Re: DEPLOY ON STARTUP Joan Ventus Proxy wrote: Hello, I'm starting Tomcat with the startup.sh script located in /bin Tomcat installation directory (Linux RHES 3). Any context defined in server.xml always gets deployed. deployOnStartup and autoDeploy apply only to contexts 'discovered' by Tomcat. 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: DEPLOY ON STARTUP
From: Mark Thomas [mailto:ma...@apache.org] Subject: Re: DEPLOY ON STARTUP Any context defined in server.xml always gets deployed. deployOnStartup and autoDeploy apply only to contexts 'discovered' by Tomcat. With both autoDeploy and deployOnStartup disabled and no Context elements in server.xml in Tomcat 6.0, I have been unable to discover any means of deploying a webapp. Is there a trick to making this a usable configuration, other than putting a Context for the manager webapp in server.xml? - 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: What Tomcat presentations / demos / discussions do you want tosee at ApacheCon US 2009?
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: What Tomcat presentations / demos / discussions do you want tosee at ApacheCon US 2009? Although if someone suggested that I participate as moderator to the session, and offered to pay my travel expenses, I might possibly find a slot in my busy schedule. What if I buy you a beer (or chocolate)? - 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: DEPLOY ON STARTUP
Caldarale, Charles R wrote: From: Mark Thomas [mailto:ma...@apache.org] Subject: Re: DEPLOY ON STARTUP Any context defined in server.xml always gets deployed. deployOnStartup and autoDeploy apply only to contexts 'discovered' by Tomcat. With both autoDeploy and deployOnStartup disabled and no Context elements in server.xml in Tomcat 6.0, I have been unable to discover any means of deploying a webapp. Is there a trick to making this a usable configuration, other than putting a Context for the manager webapp in server.xml? I don't think so. You *might* be able to do something via JMX but I haven't checked. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: request.getSession() generates IllegalStateException in top filter(appears, response not being recycled properly if SocketException happenedfor it in the past)
Hi Chuck, I downloaded tomcat 6.0.18 and the problem still happens. The filter is not on the path to servlet that generates image; The problem with response being already committed happens in various places (in filter and in graph servlet itself on the subsequent calls). I can see that only tomcat's code in on the stack when it happens. Thanks -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, April 16, 2009 9:45 AM To: Tomcat Users List Subject: RE: request.getSession() generates IllegalStateException in top filter(appears, response not being recycled properly if SocketException happenedfor it in the past) From: Leonard Gestrin [mailto:leonard.gest...@markettools.com] Subject: request.getSession() generates IllegalStateException in top filter(appears, response not being recycled properly if SocketException happenedfor it in the past) After a while, the same response object is being used by tomcat again, but as it gets to a first filter, I can see that it's already in commited state (response.isCommitted()==true) It's not completely clear from your description whether the filter is part of the request that encountered the socket error or a different request. If the former, the behavior you observe is expected; if the latter, you may be running into this bug, fixed over a year ago: https://issues.apache.org/bugzilla/show_bug.cgi?id=30949 This is tomcat apache-tomcat-5.5.20, JRE 15, WinXP. What happens if you try it on a version that's not over 2.5 years old? - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
what can Tomcat be doing that a profiler can't see?
In brief: I am load-testing an app running on Tomcat 6 NIO and am observing a big discrepancy between avg request latency as reported by JMeter (660ms) and the profiler (19ms). I would like to understand where is the delta being spent. In detail I have two windows boxes on the same subnet of a 1GB local network: box A is running our app on Tomcat 6 NIO; box B is running JMeter and YourKit GUI. JMeter is simulating 40 users, each repeatedly hitting the server with the same request (against port 8080), with 50ms think time. The response for each request is in plain text, about 10-20k worth. The request hits app-level cache 100% of the time, so JDBC connection aren't even being checked out of the cxn pool and no DB work is being done. After 20,000+ requests: -JMeter reports average latency of 661ms -The profiler reports a 19ms average and the same invocation count. YourKit is doing sampling. Given the huge discrepancy, I would like to determine where is 642ms (=661-19) being spent. Network latency should not be an issue. Is it possible that Tomcat is spending time doing something in NIO poller - before Tomcat's exec threads are engaged? thanks! -nikita App Stack/ Hardware Tomcat 6.0.18 NIO Sun JVM 1.6, 1000mb heap Spring 2.5.6 Hibernate 3.3.1 JBossCache 3.0.3 (MVCC) Windoze Vista 4GB ram, Intel Core Duo CPU Tomcat Config: Server port=8005 shutdown=SHUTDOWN Service name=Catalina Executor name=MainPool maxThreads=60 minSpareThreads=25 namePrefix=dg-request- / !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector protocol=org.apache.coyote.http11.Http11NioProtocol port=8080 redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true enableLookups=false maxHttpHeaderSize=8192 executor=MainPool / Connector protocol=org.apache.coyote.http11.Http11NioProtocol port=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true enableLookups=false maxHttpHeaderSize=8192 executor=MainPool scheme=https secure=true SSLEnabled=true keystoreFile=conf/tomcat.keystore keystorePass=eviltwin clientAuth=false sslProtocol=TLS / Engine name=Catalina defaultHost=localhost Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host /Engine /Service /Server - Nikita Tovstoles vside.com -- View this message in context: http://www.nabble.com/what-can-Tomcat-be-doing-that-a-profiler-can%27t-see--tp23084469p23084469.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
Cookies and values with ':' in them
Hi, The company I am working for is in the process of migrating from Tomcat 5.x.x to Tomcat5.5.27. In doing so we noticed that the any cookie value containing a colon will have the value trimmed up to before that character. This is new. A work around is to add quotes around the value, but we were hoping to avoid such changes: To write: Cookie cookie = new Cookie(PROFILE_UPDATE_TS_X,2009-04-16T23:34:19Z); cookie.setSecure(true); cookie.setPath(/); response.addCookie(cookie); To read: /** * This is a convenience method for getting a cookie by name. If the * cookie is not present in the request, a null value will be returned. */ protected Cookie getCookie ( String cookieName, HttpServletRequest request ) { Cookie[] cookies = request.getCookies(); for ( int i=0; icookies.length; i++ ) { if ( cookies[i].getName().equals(cookieName) ) { return cookies[i]; } } return null; } This is certainly a regression. André-John - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Cookies and values with ':' in them
Andre-John Mas wrote: Hi, The company I am working for is in the process of migrating from Tomcat 5.x.x to Tomcat5.5.27. In doing so we noticed that the any cookie value containing a colon will have the value trimmed up to before that character. This is new. A work around is to add quotes around the value, but we were hoping to avoid such changes: Using a ':' in a v0 cookie is not legal. You have to use a v1 cookie which is as simple as using: cookie.setVersion(1); 5.5.28 will (hopefully - if it gets enough votes) an feature (enabled by default) to automatically switch invalid v0 cookies to v1 cookies and quote them. Mark To write: Cookie cookie = new Cookie(PROFILE_UPDATE_TS_X,2009-04-16T23:34:19Z); cookie.setSecure(true); cookie.setPath(/); response.addCookie(cookie); To read: /** * This is a convenience method for getting a cookie by name. If the * cookie is not present in the request, a null value will be returned. */ protected Cookie getCookie ( String cookieName, HttpServletRequest request ) { Cookie[] cookies = request.getCookies(); for ( int i=0; icookies.length; i++ ) { if ( cookies[i].getName().equals(cookieName) ) { return cookies[i]; } } return null; } This is certainly a regression. André-John- 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: What Tomcat presentations / demos / discussions do you want to see at ApacheCon US 2009?
Mark Thomas wrote: Folks, The next ApacheCon (in Oakland, CA, USA - Nov 2 to 6 2009) is being organised a little differently. Each project is being given the opportunity suggest a possible conference track based on that project. As part of this process we have a week to put together the outline of a plan which we then submit to the conference planners. They will get back to us at the end of the month with how our proposal fits into the overall plan and give us a further two weeks to firm up the schedule. So, at this stage what we need to hear from you, the Tomcat user community, is what sort of topics would you like to see covered? Remember as well as regular sessions there can also be MeetUps, BOFs, symposiums, un-conference style activities, etc. Please feel free to pitch in with your suggestions on this thread and comment on suggestions made by other people. The more involved the community gets, the better the outcome is likely to be. Ideally, each idea for a session / BOF / symposium etc would include: - Title - Type of session - Short (sentence or two) abstract - Intended audience Although the call for papers has closed, there is some flexibility that would allow us to include sessions that weren't offered through the call for papers. So, if you would like to present on a Tomcat related topic then please feel free to offer to do that as well as letting us know what types of sessions you would like to attend. We only have a week so get your suggestions in quickly. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Just building on the Tomcat Superuser idea. It would be very neat in the interest of development users and operational staff to have a thorough grounding in Tomcat related debugging and problem diagnosis. RGS Steve - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Cookies and values with ':' in them
On 16-Apr-2009, at 17:08, Mark Thomas wrote: Using a ':' in a v0 cookie is not legal. You have to use a v1 cookie which is as simple as using: cookie.setVersion(1); 5.5.28 will (hopefully - if it gets enough votes) an feature (enabled by default) to automatically switch invalid v0 cookies to v1 cookies and quote them. Will this only be for writing? I depend a cookie set by a third-party web application in the same domain, which sends me the cookies this way. If it is only for writing, then I will have to find a way of convincing the developers of the other application to make the change. André-John - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Cookies and values with ':' in them
Andre-John Mas wrote: On 16-Apr-2009, at 17:08, Mark Thomas wrote: Using a ':' in a v0 cookie is not legal. You have to use a v1 cookie which is as simple as using: cookie.setVersion(1); 5.5.28 will (hopefully - if it gets enough votes) an feature (enabled by default) to automatically switch invalid v0 cookies to v1 cookies and quote them. Will this only be for writing? Yes. I depend a cookie set by a third-party web application in the same domain, which sends me the cookies this way. If it is only for writing, then I will have to find a way of convincing the developers of the other application to make the change. If that app is running on Tomcat then Tomcat (5.5.28 hopefully) will do the switch for them. If not, they'll have to do it themselves. Either way using ':' in a v0 cookie is simply not legal. I would argue the app is broken and needs fixing. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: mod_jk ping_timeout revisit
Rainer thanx for the input, comments below. On 16.04.2009 01:49, Anthony J. Biacco wrote: A month or so ago I posted that I was having problems with mod_jk (1.2.27) getting a pong response back from tomcat (6.0.18) in responses to a ping. Apache is 2.2.11 with worker mpm. I have a little more information now and am hoping with help I can solve the problem so I can keep the ping timeout low and get rid of the error. Error does not show up when ping timeout is = 25000. It sounds like you can easily reproduce on a test system? If yes, despite what I'll write below, increasing the log level to trace presents even more info for us developers, so in case we do another test, please adjust the log level. But debug is fine for now. Yes, this is a test system, so the requests I'm sending are the only ones going into it. worker.template.socket_timeout=10 I'm not very much in favor of the socket_timeout, but well, if you think you need it. Just for the sake of completeness, please check, whether having no socket_timeout changes anything about your problem. Confirmed same errors with socket_timeout commented out (*) We failed to read the Cpoong response. Note that we are still in the same second, so the wait time did not expire. We must have had some other failure. My expectation: Tomcat closed the connection due to connectionTimeout. mod_jk didn't check the connection_pool_timeout for this connection, because our pool is already small enough (13 conns). Try setting connection_pool_minsize to 0 and check, whether the observation goes away. Even with minsize 0, it can happen rarely, because Tomcat closes the connection at the moment the connectionTimeout is reached, whereas mod_jk needs to run the internal maintenance (once a minute) to check the idle connection timeouts. With connection_pool_minsize=0 I can confirm the different event from mod_jk after the tomcat connectionTimeout. This is for a request finished at 16:42:12. [Thu Apr 16 16:44:08 2009] [26891:1114327360] [debug] wc_maintain::jk_worker.c (339): Maintaining worker app-01 [Thu Apr 16 16:44:08 2009] [26891:1114327360] [debug] ajp_reset_endpoint::jk_ajp_common.c (743): (app-01) resetting endpoint with sd = 52 (socket shutdown) [Thu Apr 16 16:44:08 2009] [26891:1114327360] [debug] jk_shutdown_socket::jk_connect.c (681): About to shutdown socket 52 [Thu Apr 16 16:44:08 2009] [26891:1114327360] [debug] jk_shutdown_socket::jk_connect.c (732): Shutdown socket 52 and read 0 lingering bytes [Thu Apr 16 16:44:08 2009] [26891:1114327360] [debug] ajp_maintain::jk_ajp_common.c (3074): cleaning pool slot=0 elapsed 116 in 0 [Thu Apr 16 16:44:08 2009] [26891:1114327360] [debug] ajp_maintain::jk_ajp_common.c (3081): reached pool min size 0 from 25 cache slots [Thu Apr 16 16:44:08 2009] [26891:1114327360] [debug] ajp_maintain::jk_ajp_common.c (3121): recycled 1 sockets in 0 seconds from 25 pool slots *But*: I don't fully understand, why the problem goes away by switching to a ping timeout of 25000 milliseconds. Maybe the 10 second socket_timeout hides the thing in this case [wild guess]. There is also a relation between the ping_timeout and which connections do get checked during maintenance (the connection_ping_interval). So a longer ping_timeout reduces also the frequency of ping checks, so it should also reduce the frequency of the info messages. Not sure whether the combination of all results in not getting them any longer. If I increase the ping timeout to 2 the maintaining worker process still executes 2 minutes (almost to the second) after the tomcat request finished. No error. The 3rd minute's process, same. It isn't until 4 minutes after the tomcat request finished that I get the cpong error. If I set connection_ping_interval to something like 10 (with a 1 ping_timeout), the cpong error shows up 1 minute after the tomcat request finished instead of 2. Go with connection_pool_minsize=0 and ignore very occasional info level messages. Will this affect my performance since it won't keep any connections in the pool and have to recreate one on every request? As long as the ping without pong isn't going to break anything (like you said, it's info, not error (just sounds like a not-good thing)), i'm fine with it. I send a request to tomcat via apache/mod_jk. Request's mount is mapped to worker, not loadbalancer. After successful request, Tomcat manager status shows the socket in stage 'R' and keeped alive socket count as 1. After 60 seconds, Tomcat manager status shows keeped alive socket count as 0, socket still in stage 'R' Above error happens 2 minutes after a request is finished, I'm assuming because the keep alive socket is not there anymore. You could have a look at netstat -an | grep 8009 on the Apache server (or whatever your AJP port is) and see, how the status of the connections changes, e.g. from ESTABLISHED to CLOSE_WAIT (remote side
Sharing an abandoned connection pool help
Hi everyone I have several web apps that are getting info from a database under the same username. I had it set up with a context in each app. However I have a limit on the number of connection I am allowed to have and I run into an issue with one app dominating the pool. For example, I have 10 connections (limited at the DB level) available to me and would like every app to have access to all 10. However if I put this in the context then the first app to use the pool will 'own' those connections and the other apps get nothing. Giving each app a set number of connection, like 2, 3, and 5, does not seem like a good solution. I tried putting the context in the conf/Catalina/myhost/ context.xml.default file and got much the same results. I would really love a solution that allows me to share the connection pool for each of the apps. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Need to share JVM for both tomcat and RMI server
Hi Jorge Thanks for your reply. I used Bootstrap.start() in my code to start tomcat. But i get the following exception in the spring frame work. ERROR 04/16 11:06:58 Stderr 700100 Apr 16, 2009 11:06:58 AM org.apache.catalina.core.ApplicationContext log INFO: Loading Spring root WebApplicationContext ERROR 04/16 11:07:00 Stderr 700100 Apr 16, 2009 11:07:00 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'componentMetricsDataServiceBean' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'com.bmc.sas.ngp.service.component.NGPComponentMetricsDataService' while setting bean property 'componentMetricsService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.bmc.sas.ngp.service.component.NGPComponentMetricsDataService' is defined at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) at com.proactivenet.server.EmbedTomcatThread.run(PlatformFactoryImpl.java:980) Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.bmc.sas.ngp.service.component.NGPComponentMetricsDataService' is defined at