Re: Tutorial: Load Balancing Tomcat with Apache
Thank You for feedback. The answers: 1) I'll add that note. You're right, It's important. 2) Usually, I keep the main ServerRoot of Apache Httpd just as a dummy website, and even if I have just one website to setup, I always create a virtual host (for example on Debian, using the symbolic linking to unable/disable virtual hosts, it's so easy to switch them on or off and I love this feature :-) On Mon, Feb 16, 2009 at 11:19 PM, Ben Stringer b...@burbong.com wrote: Hi, Nice work on the tutorial. I have some feedback. 1) I would mention the version of the httpd and tomcat that you are using. For instance, the load balancing mechanism you are using in httpd is only supported by Apache Httpd 2.2 2) I don't see why you need to create a virtual host in httpd, unless you are using the same httpdto host other sites. Otherwise, this just complicates the httpd configuration. Cheers, Ben Hello everyone I wrote a tutorial about load balancing Tomcat with Apache Proxy Module. This is the url: http://www.zulutown.com/blog/2009/02/16/java-ee-load-balancing-with-tomcat-and-apache/ Any feedback will be really appreciated. Thank You. - 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
ssl_error_handshake_failure_alert
Hi all A colleague has set up a web app via https using tomcat on a server that I have access to. When I try to access the web app via a browser (Firefox 3) from my own PC or from a browser (IE) on the server running the web app, I get an ssl_error_handshake_failure_alert error. Something else to note: I can access other web apps running on that same Tomcat on that same server (via https), but I just cannot access the one my colleage added. He's on a week's leave as of today and I really need to access this web app! My question: how can i get the needed certificate to access this web app from my PC (bearing in mind that I have access to the server running Tomcat and the web app). Can I check somewhere in the Tomcat conf directory or the webapp's directory for security settings or can I somehow export the certificate from the server and import it on my own PC? Thanks in advance. -- View this message in context: http://www.nabble.com/ssl_error_handshake_failure_alert-tp22053887p22053887.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: [OT] of the different methods to get a user-id
From: Christopher Schultz [mailto:ch...@christopherschultz.net] IMHO, you either have control of your production environment yourself (and can do whatever you want) or you have an ops team with complete control of your production environment (and they ought to be able to handle scary stuff like scheduling cron jobs and running shell scripts) or you have no control whatsoever and therefore do not have a production environment. Chris, how would you handle the case of writing software for installation by third parties in environments over which you have no control? Those third parties' environments are still production environments, but you have no control over them. - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Wrong Time Shown in Catalina.out of Tomcat.
Hi All, These days i am facing a strange problem on Production Server. here is my issue. We are running tomcat 6.0.18 in QA and Production environment. ON QA Server, When i start tomcat, its catalina shows the same time as of OS. [r...@qatest ~]# date Tue Feb 17 10:04:53 GMT 2009 [r...@qatest ~]# tail -f /usr/local/apache-tomcat-6.0.18/logs/catalina.out 2009-02-17 10:04:38,333 INFO [com. On Production Server. When i start Tomcat, its catalina shows time OS Time +1 hour. [r...@production ~]# date Tue Feb 17 10:20:05 GMT 2009 [r...@production ~]# /usr/local/apache-tomcat-6.0.18/logs/catalina.out 2009-02-17 11:20:00,840 INFO [com. i am unable to understand that why tomcat is not picking the time of OS to put in Catalina.out and from where it is getting that time??? can anyone tell me that from where Tomcat reads this time to put in Catalina.out. and what can be the reason of this wrong time in Catalina.out? Thanks in advance. Kashif -- View this message in context: http://www.nabble.com/Wrong-Time-Shown-in-Catalina.out-of-Tomcat.-tp22054371p22054371.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: Wrong Time Shown in Catalina.out of Tomcat.
The Java runtime (JRE or JDK) maintains it's own timezone files. Most likely there is a mismatch between the timezone for the OS and the Java runtime (eg. daylight savings time). Try installing the latest Java runtime and rechecking. For more info, google for Java Olson timezone. Cheers, Ben On Tue, 2009-02-17 at 02:25 -0800, kashif_tomcat wrote: Hi All, These days i am facing a strange problem on Production Server. here is my issue. We are running tomcat 6.0.18 in QA and Production environment. ON QA Server, When i start tomcat, its catalina shows the same time as of OS. [r...@qatest ~]# date Tue Feb 17 10:04:53 GMT 2009 [r...@qatest ~]# tail -f /usr/local/apache-tomcat-6.0.18/logs/catalina.out 2009-02-17 10:04:38,333 INFO [com. On Production Server. When i start Tomcat, its catalina shows time OS Time +1 hour. [r...@production ~]# date Tue Feb 17 10:20:05 GMT 2009 [r...@production ~]# /usr/local/apache-tomcat-6.0.18/logs/catalina.out 2009-02-17 11:20:00,840 INFO [com. i am unable to understand that why tomcat is not picking the time of OS to put in Catalina.out and from where it is getting that time??? can anyone tell me that from where Tomcat reads this time to put in Catalina.out. and what can be the reason of this wrong time in Catalina.out? Thanks in advance. Kashif - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat vs deflate
Hi Guys/Gals, I tried to search for an answer whether Tomcat can support deflate as compression but I found nothing really except that it supports gzip by adding the compression parameter to the Connector definition. Is there a way to enable deflate besides/instead of gzip in any version of Tomcat (preferably recent ones, not 1.0 ;) ? If deflate is not supported then why not? Reason I need deflate is we use Adobe Air for an interface which receives a huge amount of XML data and it's not bandwidth economical to send it uncompressed and Air does not support gzip out of the box. Answers like use Apache instead of Tomcat as front-end web server can be spared. Thanks, Gabor 'Morc' Kormos. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ssl_error_handshake_failure_alert
It looks as if tomcat is configured for 2-way SSL. So the client (browser) should have a certificate that the server can trust. I think you could try to install a certificate from a good CA in your browser truststore, and try using that. I wonder if the other apps are running because tomcat selectively allows apps to be 2 way ssl configured - I am not sure of this. 2009/2/17 gmail_ber berh...@gmail.com Hi all A colleague has set up a web app via https using tomcat on a server that I have access to. When I try to access the web app via a browser (Firefox 3) from my own PC or from a browser (IE) on the server running the web app, I get an ssl_error_handshake_failure_alert error. Something else to note: I can access other web apps running on that same Tomcat on that same server (via https), but I just cannot access the one my colleage added. He's on a week's leave as of today and I really need to access this web app! My question: how can i get the needed certificate to access this web app from my PC (bearing in mind that I have access to the server running Tomcat and the web app). Can I check somewhere in the Tomcat conf directory or the webapp's directory for security settings or can I somehow export the certificate from the server and import it on my own PC? Thanks in advance. -- View this message in context: http://www.nabble.com/ssl_error_handshake_failure_alert-tp22053887p22053887.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: Tomcat vs deflate
Can support - yes Out of the box - no. Why not out of the box? Because gzip is there and most people use apache in front of tomcat. -Tim Gabor 'Morc' KORMOS wrote: Hi Guys/Gals, I tried to search for an answer whether Tomcat can support deflate as compression but I found nothing really except that it supports gzip by adding the compression parameter to the Connector definition. Is there a way to enable deflate besides/instead of gzip in any version of Tomcat (preferably recent ones, not 1.0 ;) ? If deflate is not supported then why not? Reason I need deflate is we use Adobe Air for an interface which receives a huge amount of XML data and it's not bandwidth economical to send it uncompressed and Air does not support gzip out of the box. Answers like use Apache instead of Tomcat as front-end web server can be spared. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat vs deflate
Hi Tim, Thanks for the speedy response. Can you point me in the direction of some documentation which describes how to do it? I'm willing to read just did not find what to read :) Thanks, Morc. On 17/02/2009 13:23, Tim Funk wrote: Can support - yes Out of the box - no. Why not out of the box? Because gzip is there and most people use apache in front of tomcat. -Tim Gabor 'Morc' KORMOS wrote: Hi Guys/Gals, I tried to search for an answer whether Tomcat can support deflate as compression but I found nothing really except that it supports gzip by adding the compression parameter to the Connector definition. Is there a way to enable deflate besides/instead of gzip in any version of Tomcat (preferably recent ones, not 1.0 ;) ? If deflate is not supported then why not? Reason I need deflate is we use Adobe Air for an interface which receives a huge amount of XML data and it's not bandwidth economical to send it uncompressed and Air does not support gzip out of the box. Answers like use Apache instead of Tomcat as front-end web server can be spared. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat vs deflate
From: Tim Funk [mailto:funk...@joedog.org] most people use apache in front of tomcat. Tim, I'm interested - do you have any real-world usage figures? I'm genuinely not trying to challenge your assertion; I'd just love to see the data, and how it's changed over time! - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat vs deflate
There aren't really any docs to point to beyond http://tomcat.apache.org/tomcat-6.0-doc/config/http.html From there you can dig into the source. Since gzip and deflate are much the same - it might be relatively easy. -Tim Gabor 'Morc' KORMOS wrote: Hi Tim, Thanks for the speedy response. Can you point me in the direction of some documentation which describes how to do it? I'm willing to read just did not find what to read :) Thanks, Morc. On 17/02/2009 13:23, Tim Funk wrote: Can support - yes Out of the box - no. Why not out of the box? Because gzip is there and most people use apache in front of tomcat. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat vs deflate
Sadly no. As I rethink the previous statement - I wonder how true it is. For small self contained webapps - Tomcat is usually enough. But once you introduce clustering or use it as public face to the world, instead of a internal app - I would kind of expect apache to be out front to handle lots of the goofy issues that apache httpd is good at. (But now I venture into off topic my own opinion land .. and place where bad things usually happen) -Tim Peter Crowther wrote: From: Tim Funk [mailto:funk...@joedog.org] most people use apache in front of tomcat. Tim, I'm interested - do you have any real-world usage figures? I'm genuinely not trying to challenge your assertion; I'd just love to see the data, and how it's changed over time! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat vs deflate
So basically you say code it for yourself by modifying the HTTP connector? Morc. On 17/02/2009 13:46, Tim Funk wrote: There aren't really any docs to point to beyond http://tomcat.apache.org/tomcat-6.0-doc/config/http.html From there you can dig into the source. Since gzip and deflate are much the same - it might be relatively easy. -Tim Gabor 'Morc' KORMOS wrote: Hi Tim, Thanks for the speedy response. Can you point me in the direction of some documentation which describes how to do it? I'm willing to read just did not find what to read :) Thanks, Morc. On 17/02/2009 13:23, Tim Funk wrote: Can support - yes Out of the box - no. Why not out of the box? Because gzip is there and most people use apache in front of tomcat. - 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
SSL
Hi, I would like to know how to configure SSL in Tomcat6.0. Could you please provide me the steps to configure SSL and how to register Verisgn test certificate . Thanks in advance. Thanks Siva Notice: The information contained in this electronic mail message is intended only for the use of the designated recipient. This message is privileged and confidential. and the property of GVK BIO or its affiliates and subsidiaries. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone +91-40-6692 and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).
RE: SSL
From: Venkata Siva Gangavarapu [mailto:siva.gangavar...@gvkbio.com] I would like to know how to configure SSL in Tomcat6.0. http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: SSL
Hi, Thanks for the quick response. When I followed the link given below, I was stuck @ the below point C:\Program Files\Apache Software Foundation\Tomcat 6.0\binkeytool -import -alia s tomcat -keystore C:\Documents and Settings\siva.gangavarapu\.keystore -trus tcacerts -file C:\Documents and Settings\siva.gangavarapu\Desktop\SSL certific ates\intermediateCA.cer Enter keystore password: changeit keytool error: java.lang.Exception: Public keys in reply and keystore don't matc h C:\Program Files\Apache Software Foundation\Tomcat 6.0\binkeytool -import -alia s tomcat -keystore C:\Documents and Settings\siva.gangavarapu\.keystore -trus tcacerts -file C:\Documents and Settings\siva.gangavarapu\Desktop\SSL certific ates\intermediateCA.cer Enter keystore password: changeit keytool error: java.security.cert.CertificateException: Unsupported encoding C:\Program Files\Apache Software Foundation\Tomcat 6.0\binkeytool -import -alia s tomcat -keystore C:\Documents and Settings\siva.gangavarapu\.keystore -file C:\ssl\verisignTestcertificate\TestCERT.cer Enter keystore password: changeit keytool error: java.lang.Exception: Failed to establish chain from reply How to overcome the errors. Please help. -Siva -Original Message- From: Peter Crowther [mailto:peter.crowt...@melandra.com] Sent: Tuesday, February 17, 2009 7:46 PM To: 'Tomcat Users List' Subject: RE: SSL From: Venkata Siva Gangavarapu [mailto:siva.gangavar...@gvkbio.com] I would like to know how to configure SSL in Tomcat6.0. http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Notice: The information contained in this electronic mail message is intended only for the use of the designated recipient. This message is privileged and confidential. and the property of GVK BIO or its affiliates and subsidiaries. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone +91-40-6692 and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies). - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat vs deflate
yup - and if your inclined - you can submit an bug enhancement with the patch -Tim Gabor 'Morc' KORMOS wrote: So basically you say code it for yourself by modifying the HTTP connector? Morc. On 17/02/2009 13:46, Tim Funk wrote: There aren't really any docs to point to beyond http://tomcat.apache.org/tomcat-6.0-doc/config/http.html From there you can dig into the source. Since gzip and deflate are much the same - it might be relatively easy. -Tim Gabor 'Morc' KORMOS wrote: Hi Tim, Thanks for the speedy response. Can you point me in the direction of some documentation which describes how to do it? I'm willing to read just did not find what to read :) Thanks, Morc. On 17/02/2009 13:23, Tim Funk wrote: Can support - yes Out of the box - no. Why not out of the box? Because gzip is there and most people use apache in front of tomcat. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Fatal error: Cleaner terminated abnormally
Hi Guys, Our application is a servlet running in a container in Tomcat standalone. It uses the following NIO connector definition: Connector port=80 protocol=org.apache.coyote.http11.Http11NioProtocol connectionTimeout=65000 keepAliveTimeout=1 maxKeepAliveRequests=1000 redirectPort=443 maxThreads=2000/ Lately we've been experiencing a fatal error, related to gc, with Tomcat that causes it to stop and unload, which I hoped you could give some advice for. I'm still unclear on what is causing the cleaner to terminate, but I guess that's more of a question for the java forums (I cannot find anything related to tomcat when I cross reference) Following the gc trail, it looks like an oom situation (maybe a mem leak in our application, our heapsize is 4GB), is it normal behavior for tomcat to destroy itsself like this? Has anyone experienced a similar problem before? What are usual causes for Tomcat to stop like this? *Any* advice or feedback is welcome. Either way, thanks in advance. Debian 4.0 Tomcat 6.0.18 Sun jdk 1.6.0.11 We use the following java options: OPTS= -verbose:gc -Dsun.net.inetaddr.ttl=60 -Dfile.encoding=UTF-8 -Djava.io.tmpdir=$TMP_DIR -Djava.library.path=/usr/local/lib -Djava.endorsed.dirs=$CATALINA_BASE/endorsed -Dcatalina.base=$CATALINA_BASE -Dcatalina.home=$CATALINA_HOME -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMode -Xms4096M -Xmx4096M -Xss128k -XX:PermSize=256M -XX:MaxPermSize=256M --- catalina.out snippet [GC 4052829K-3924296K(4177280K), 0.0519680 secs] [GC 4060616K-3924100K(4177280K), 0.1517880 secs] [GC 4060420K-3926867K(4177280K), 0.0883940 secs] [GC 4062488K-3931589K(4177280K), 0.1008470 secs] [GC 4067906K-3935097K(4177280K), 0.0931530 secs] [GC 4071417K-3934946K(4177280K), 0.0787300 secs] [GC 4029027K(4177280K), 0.1941170 secs] java.lang.Error: Cleaner terminated abnormally at sun.misc.Cleaner$1.run(Cleaner.java:130) at java.security.AccessController.doPrivileged(Native Method) at sun.misc.Cleaner.clean(Cleaner.java:127) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:124) Caused by: java.lang.Error: java.io.IOException: Broken pipe at sun.nio.ch.Util$SelectorWrapper$Closer.run(Util.java:97) at sun.misc.Cleaner.clean(Cleaner.java:125) ... 1 more Caused by: java.io.IOException: Broken pipe at sun.nio.ch.EPollArrayWrapper.interrupt(Native Method) at sun.nio.ch.EPollArrayWrapper.interrupt(EPollArrayWrapper.java:242) at sun.nio.ch.EPollSelectorImpl.wakeup(EPollSelectorImpl.java:170) at sun.nio.ch.SelectorImpl.implCloseSelector(SelectorImpl.java:92) at java.nio.channels.spi.AbstractSelector.close(AbstractSelector.java:91) at sun.nio.ch.Util$SelectorWrapper$Closer.run(Util.java:95) ... 2 more Feb 17, 2009 12:10:38 AM org.apache.coyote.http11.Http11NioProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-80 Feb 17, 2009 12:10:38 AM org.apache.coyote.http11.Http11AprProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-443 Feb 17, 2009 12:10:38 AM org.apache.coyote.ajp.AjpAprProtocol pause INFO: Pausing Coyote AJP/1.3 on ajp-8009 [GC 4071265K-3937784K(4177280K), 0.0921220 secs] Feb 17, 2009 12:10:39 AM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Feb 17, 2009 12:10:39 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 28,017 instance(s) to be deallocated Feb 17, 2009 12:10:41 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 27,669 instance(s) to be deallocated Feb 17, 2009 12:10:42 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 27,666 instance(s) to be deallocated Feb 17, 2009 12:10:43 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 3 instance(s) to be deallocated Feb 17, 2009 12:10:44 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 3 instance(s) to be deallocated Feb 17, 2009 12:10:45 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 3 instance(s) to be deallocated 360358820 [SocketConnectorIoProcessor-0.0] null org.apache.mina.common.support.DefaultExceptionMonitor - Unexpected exception. java.lang.NullPointerException at org.apache.mina.common.ByteBuffer.allocate(ByteBuffer.java:225) at org.apache.mina.common.ByteBuffer.allocate(ByteBuffer.java:208) at org.apache.mina.transport.socket.nio.SocketIoProcessor.read(SocketIoProcessor.java:210) at org.apache.mina.transport.socket.nio.SocketIoProcessor.process(SocketIoProcessor.java:198) at org.apache.mina.transport.socket.nio.SocketIoProcessor.access$400(SocketIoProcessor.java:45) at org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProcessor.java:485) at
Re: [OT] of the different methods to get a user-id
Just in case it was missed in the subsequent conflagration (and I always marvel at how easy it is to start a conflagration by saying something like language X is better than language Y), I would just like to state that my blurb was meant to be taken lightly, with ;-) and so on. Comparing programming languages is a lot like comparing Microsoft software to Open Source, or comparing car brands, or (in my younger times) comparing stereo brands, etc.. One more thing I would like to add however to all the Java crazies around here, at least the open-minded subset of them : perl is fun. I am not saying that it is the ideal language to develop a large application with a team of people, and I am not saying that it is faster or better or uses less memory or any of these things (though it does, really). But it is, definitely, more /fun/ than Java. And you can do serious things with it too. And a serious tip : if you are ever in the situation of having to start a new project on some theme you know nothing about (say, credit card payments, or talking to Amazon, or filtering emails, or reading meta-data in photos, or stemming German words, or authenticating against OpenId,..), then you could do worse than first having a look at the Perl module library (http://kobesearch.cpan.org/), and perusing the perl modules documentation. Even if you know nothing of perl and don't want to know anything about it, the documentation of these (hundreds of) modules, all in one place and searchable, is one of the best sources of information I know. It is like a Wikipedia of everything one can do with software. And if in addition to be a Java fan, you're also an OO fan, search for class. Don't the names just sound like fun ? Is there, by the way, any comparable source for Java libraries ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache/mod_jk serves random files from tomcat
Hi, We had similar behaviour on our server, apache in the front serving tomcat on SSL, mostly servlets. First off, this is what we installed: Tomcat 5.5.27 and Apache 2.2.11 with mod_jk 1.2.26. The server is a 64 bit version of Windows Server 2008 (2 CPUs). We got some strange problems with constant high CPU usage. A thread suggested to change the tcnative.dll to an older version since there was a bug in that, so we did and changed to version 1.1.6.0 (somewhere in the process we have misplaced the tomcat version this file came with..) , and that got rid of the CPU usage problems. But then another problem arose. After uploading documents into our system, we could not download them successfully - this was first seen with PDF files. And the larger the file, the more likely the problem. Then we noticed that going directly towards Tomcat (on 8080) worked like a charm, so did accessing static files under apache - but when trying the same static files under tomcat - going through apache - it failed again. We have tried different versions of mod_jk with no success, and experimented with mod_expires settings etc. Then we got reports of issues where large servlet generated reports got messed up, and it seemed the stream had just left out parts of the produced HTML code, only to continue further down in the expected report. And finally, to top it, we also got data from one user showing up at another user! After having no success we finally decided to try to remove the tcnative DLL, and what do you know, it worked! No more problems with PDFs, and so far, no more cut or mixed servlet response! So what I want to know is, what could have caused this? My knowledge of both Apache server and Tomcat is rather limited, so I hope someone can come up with a good answer :) Yuval Perlov wrote: We started restarting apache on a regular basis but if a user is in mid request (consider a user that just filled a big form and is upload a file). I moved all static content to apache so tomcat is now only delivering the actual jsp file. The result was that the mix up took longer to appear, however when it did USERS STARTED SEEING EACH OTHERS DATA!!! (before that, the mixup was usually with images etc just because there are more of them). I am actually amazed that this can even happen in such a mature version and that such a small number of us are experiencing it. This is slowly killing our project. Trying to move to proxy_ajp did not help which makes the whole thing even more mysterious - these are two separate code bases, no? (BTW - are mod_jk developers reading this?) We are contemplating two approaches: 1) moving to proxy_http. My only concern is that this won't help - maybe the problem is unrelated to AJP? Upgrading has helped some users but not all and the problem exists in both mod_jk and proxy_ajp. 2) getting rid of apache and moving tomcat to the front (much harder to configure but ensures we are rid of this problem). Any Thoughts? Regards, Yuval Perlov On Feb 5, 2009, at 11:27 PM, LukeK wrote: JohnHardin wrote: * Have others (that now seem to be fixed) gotten things to work by updating to the latest mod_jk (1.2.27)? I suspect that it's related to 1.2.27 - I have been playing around with older versions. .24 and .25 have had issues forwarding certain request headers, but so far .26 seems to be working OK. Is periodically restarting apache a suitable (if not hackish) work- around until we can get our production environment upgraded? That'd be my fallback position. Cheers! Luke -- View this message in context: http://www.nabble.com/Apache-mod_jk- serves-random-files-from-tomcat-tp18385568p21861548.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 -- View this message in context: http://www.nabble.com/Apache-mod_jk-serves-random-files-from-tomcat-tp18385568p22059232.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: Fatal error: Cleaner terminated abnormally
Taylan Develioglu wrote: Following the gc trail, it looks like an oom situation (maybe a mem leak in our application, our heapsize is 4GB), is it normal behavior for tomcat to destroy itsself like this? Are you on a 64-bit JVM? If not, the process heap is limited to 4GB so the Java object heap (set with Xmx) needs to allow for this. I would use 3.5GB as a starting point. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat vs deflate
From: Gabor 'Morc' KORMOS [mailto:m...@baxter-it.com] Subject: Re: Tomcat vs deflate So basically you say code it for yourself by modifying the HTTP connector? Preferably you'd write a filter to do it, rather than modifying Tomcat source. Oh look, someone's already done it: https://www.ohloh.net/tags/deflate/library/tomcat GIYF. - 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: Fatal error: Cleaner terminated abnormally
From: Taylan Develioglu [mailto:tdevelio...@ebuddy.com] Subject: Fatal error: Cleaner terminated abnormally Lately we've been experiencing a fatal error, related to gc, with Tomcat that causes it to stop and unload It's not really a GC problem - rather a silly bug in NIO. You might try the standard HTTP connector to avoid the problem. Sun seems to be continually fixing NIO, so there may be something for this in 6u12, if you want to keep using the NIO connector. I'm still unclear on what is causing the cleaner to terminate The Cleaner terminates if the run() method of the registered object throws *any* kind of exception - and then takes the entire JVM down with it, via a System.exit() call (bloody brilliant, that one). In this case, the NIO Selector Closer object didn't like the fact that its peer had gone away, and puked. Not quite as robust as one might hope. - 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: Resource JDBC connection pooling USING LDAP
Thanks, that is exactly what I did. Since the documentation stated that it used apache (tomcat's version) dbcp and the BasicDataSourceFactory, I looked at the source for this class through SVN. It fairly simply creates a BasicDataSource. So that is what I did. I retrieved all the parameters from LDAP within my factory class. Worked out great. Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 2/13/2009 5:02 PM, trames wrote: My goal is to NOT embed the database connection user name, password, or even server url like it is shown below. I have the ApacheDS LDAP server set up, and would like to retrieve the credentials/server from that. I don't believe Tomcat has anything built-in that can do that. Is there a way to get the entire URL string from LDAP? Is there some other way to do what I would like to do? Would I have to write my own Resource Factory? I believe you will have to write your own ResourceFactory. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmZ3mQACgkQ9CaO5/Lv0PD8lQCfYaV1e3nw9xyOqxm4KGtW9/RP f6sAn35DIZ54DC5li+bnxCowMufIeHLW =mRq5 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/Resource-JDBC-connection-pooling-USING-LDAP-tp22005711p22059917.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
Tomcat in-memory (session) cookie
Hello... As I understood (maybe I understood wrongly) with every GET and POST request Tomcat generates cookie which it do not write on hard drive (so it cannot be seen in browser cookie manager). It is some kind of in-memory (session) cookie which is active only while browser's page is opened. Does this in-memory (session) cookie exists? What exactly is bothering me? In one servlet I need to generate THIS cookie (in-memory cookie which nobody can't find on hard drive) and than other servlet will try to find that in-memory cookie and if this cookie exists and caries one value (true) to redirect to one page and if it does not exits only to inform user. So if this cookie exists can I edit it's value? What I found by google and little experiments, JSESSIONID cookie. Is this what I am looking for, JSESSIONID cookie? And I found also that you can set session attribute with request.getSession().setAttribute(), get value with getAttribute() . Is this what I am looking for? Is there any relationship with all this? What are JSESSIONID, session, are those cookies? -- View this message in context: http://www.nabble.com/Tomcat-in-memory-%28session%29-cookie-tp22060645p22060645.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: Tomcat in-memory (session) cookie
From: makaira nigricans [mailto:liame.e...@yahoo.com] Subject: Tomcat in-memory (session) cookie As I understood (maybe I understood wrongly) You did. with every GET and POST request Tomcat generates cookie which it do not write on hard drive (so it cannot be seen in browser cookie manager). You seem to be referring to HttpSession objects, which are not cookies. Session objects are created when a user is authenticated or when a webapp chooses to create a session. An identifier (JSESSIONID) for the Session is passed back to the client (browser) either via a cookie or as part of the URLs embedded in the response. Whether or not the browser chooses to accept or persist the cookie is up to the browser, not Tomcat. What are JSESSIONID, session, are those cookies? Sounds like you need some basic education; try the servlet spec first: http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index2.html Wikipedia has definitions and examples of standard computing terms such as cookie. - 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: [OT] of the different methods to get a user-id
From: Ken Bowen [mailto:kbo...@als.com] The only thing more fiery than language X is better than language Y is editor Z is better than editor W :-) To skip a few levels in the inevitable impending debate... Well I edited the inodes by hand. With magnets. (http://www.userfriendly.org) - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] of the different methods to get a user-id
The only thing more fiery than language X is better than language Y is editor Z is better than editor W :-) On Feb 17, 2009, at 9:45 AM, André Warnier wrote: language X is better than language Y - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache/mod_jk serves random files from tomcat
Is APR part of tomcat or apache? If I am running on linux and have no .so files in my tomcat directory does that mean I have no APR installed? On a more positive note, we switched to proxy_http (after making the necessary code changes) and everything works now - no more mixed content. Of course we lost a lot of necessary functionality: 1. request.isSecure() doesn't work 2. we don't know the server name we are hit with (since it is hard coded in httpd.conf) 3. we have no access to the source IP (for geo location) 4. We had to some make all client redirection code use the full URL with the server name - turns out client redirect uses the server name from the request so it tries to hit the 8080 port (tomcat) instead of 80 (httpd). BTW - Am I the only one that is seriously worried that this kind of problem can even exist on a platform of this maturity? Yuval Perlov www.r-u-on.com On Feb 17, 2009, at 1:38 AM, dave smith wrote: Sorry for not providing an update sooner. I disabled the APR and the problem went away. On 2/12/09, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yuval, On 2/12/2009 3:12 AM, Yuval Perlov wrote: I actually upgraded from mod_jk 1.2.26 to 27 to try and make the problem go away. Ha! Okay. Sorry for a bad tip. ;) So, I'm definitely not going to be able to help you from here on out, but I know that folks like Rainer and Mladen could use some more information, so I'll go ahead and ask for some. The mixup occurs only in tomcat originated data - the static stuff coming from httpd stays fine. Good to know. Moreover, in the past I had it setup so the static stuff came from tomcat as well. This naturally resulted in significantly more hits between apache and tomcat which made the problem appear much faster (hence my theory that some resource is being depleted over time). Is this something you can reproduce reliably in a test environment? Does it require heavy load in order for this behavior to manifest itself? Or, is it just after 5M requests everything goes to hell? I'm wondering if concurrency is the problem or maybe something silly like logging or maintaining worker status that somehow corrupts something. It's very odd that responses would be crossed. I don't think any of that stuff is shared between threads/processes in mod_jk/httpd, but I suppose when you overwrite memory (which is the only explanation I can think of), you can't really expect the program to operate properly. Oh, are you using worker or prefork MPM? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmUplsACgkQ9CaO5/Lv0PANwQCeM7IEsDUu+o8cKjZP3kxAZgXP 7g4AoLyLW2cvmLC7AGGJnEf8jHBzNBvM =E4BT -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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Expired Self-Signed Certificates?
We have noticed that our expired self-signed certificates are still functioning with no error messages. When using self-signed certificates with Tomcat 6, are the expiration dates valid?
Re: Expired Self-Signed Certificates?
Hi, We have noticed that our expired self-signed certificates are still functioning with no error messages. What error messages would you expect?Is there nothing displayed prior to showing the page? Regards, Serge Fonville
RE: Expired Self-Signed Certificates?
Our application is using a SSL connection to communicate with Tomcat. If we were using a browser I might expect to see a connection denied response or an invalid certificate message in the Tomcat logs. R/ Mark -Original Message- From: Serge Fonville [mailto:serge.fonvi...@gmail.com] Sent: Tuesday, February 17, 2009 2:41 PM To: Tomcat Users List Subject: Re: Expired Self-Signed Certificates? Hi, We have noticed that our expired self-signed certificates are still functioning with no error messages. What error messages would you expect?Is there nothing displayed prior to showing the page? Regards, Serge Fonville - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Expired Self-Signed Certificates?
Thanks Serge. I believe that answers my question. -Original Message- From: Serge Fonville [mailto:serge.fonvi...@gmail.com] Sent: Tuesday, February 17, 2009 2:56 PM To: Tomcat Users List Subject: Re: Expired Self-Signed Certificates? Our application is using a SSL connection to communicate with Tomcat. If we were using a browser I might expect to see a connection denied response or an invalid certificate message in the Tomcat logs. SSL does not allow or deny connections by itself, it's just a means to verify the validity of the connecting party.It is upto the implementation to verify if the certificate is valid. SSL operates on top of IP and encrypts all traffic whether the other party is trusthworty is up to the application that is setting up the connection to determine. Certificates are a means to verify the other party is who they say they are by means of acknowledgement of a recognized authority. If you wan't your application to deny the connection if the certificate is expired, the application must be written to do so. Hope this helps, Serge Fonville - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat in-memory (session) cookie
Hi Makaira, I also found hard to understand the concept of sessions and its relation to cookies. After all, HTTP is a stateless protocol, right? Well, a servlet engine (as stated in the Servlet Engine specification pointed by Charles) must provide a way to provide some state. This is done by a special cookie with the name JSESSIONID. This value is passed back and forth between the client (a browser) and the server. If the request has the cookie JSESSIONID, then the server looks for the active sessions and joins the request to that session. My confusion came from the fact that through the HttpSession object, you can access the cookies with methods that names then Attributes (getAttribute/setAttribute). It was unclear -to me- that it is the same stuff as a cookie. The JSESSION attribute is handled by Tomcat, you don't have to set it. It is enough to add the attribute(s) you will later use. By the way, cookies are stored -as files- by the browser just to persist them and made them available later on; but a cookie is not neccesarily a file; certainly, you won't find them in the server filesystem, they live only in the Tomcat memory. -Jorge -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, February 17, 2009 11:59 AM To: Tomcat Users List Subject: RE: Tomcat in-memory (session) cookie From: makaira nigricans [mailto:liame.e...@yahoo.com] Subject: Tomcat in-memory (session) cookie As I understood (maybe I understood wrongly) You did. with every GET and POST request Tomcat generates cookie which it do not write on hard drive (so it cannot be seen in browser cookie manager). You seem to be referring to HttpSession objects, which are not cookies. Session objects are created when a user is authenticated or when a webapp chooses to create a session. An identifier (JSESSIONID) for the Session is passed back to the client (browser) either via a cookie or as part of the URLs embedded in the response. Whether or not the browser chooses to accept or persist the cookie is up to the browser, not Tomcat. What are JSESSIONID, session, are those cookies? Sounds like you need some basic education; try the servlet spec first: http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index2.html Wikipedia has definitions and examples of standard computing terms such as cookie. - 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
Re: Fatal error: Cleaner terminated abnormally
search the sun database, some results there http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6521677 supposedly fixed in Java 7 :( Filip Taylan Develioglu wrote: Hi Guys, Our application is a servlet running in a container in Tomcat standalone. It uses the following NIO connector definition: Connector port=80 protocol=org.apache.coyote.http11.Http11NioProtocol connectionTimeout=65000 keepAliveTimeout=1 maxKeepAliveRequests=1000 redirectPort=443 maxThreads=2000/ Lately we've been experiencing a fatal error, related to gc, with Tomcat that causes it to stop and unload, which I hoped you could give some advice for. I'm still unclear on what is causing the cleaner to terminate, but I guess that's more of a question for the java forums (I cannot find anything related to tomcat when I cross reference) Following the gc trail, it looks like an oom situation (maybe a mem leak in our application, our heapsize is 4GB), is it normal behavior for tomcat to destroy itsself like this? Has anyone experienced a similar problem before? What are usual causes for Tomcat to stop like this? *Any* advice or feedback is welcome. Either way, thanks in advance. Debian 4.0 Tomcat 6.0.18 Sun jdk 1.6.0.11 We use the following java options: OPTS= -verbose:gc -Dsun.net.inetaddr.ttl=60 -Dfile.encoding=UTF-8 -Djava.io.tmpdir=$TMP_DIR -Djava.library.path=/usr/local/lib -Djava.endorsed.dirs=$CATALINA_BASE/endorsed -Dcatalina.base=$CATALINA_BASE -Dcatalina.home=$CATALINA_HOME -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMode -Xms4096M -Xmx4096M -Xss128k -XX:PermSize=256M -XX:MaxPermSize=256M --- catalina.out snippet [GC 4052829K-3924296K(4177280K), 0.0519680 secs] [GC 4060616K-3924100K(4177280K), 0.1517880 secs] [GC 4060420K-3926867K(4177280K), 0.0883940 secs] [GC 4062488K-3931589K(4177280K), 0.1008470 secs] [GC 4067906K-3935097K(4177280K), 0.0931530 secs] [GC 4071417K-3934946K(4177280K), 0.0787300 secs] [GC 4029027K(4177280K), 0.1941170 secs] java.lang.Error: Cleaner terminated abnormally at sun.misc.Cleaner$1.run(Cleaner.java:130) at java.security.AccessController.doPrivileged(Native Method) at sun.misc.Cleaner.clean(Cleaner.java:127) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:124) Caused by: java.lang.Error: java.io.IOException: Broken pipe at sun.nio.ch.Util$SelectorWrapper$Closer.run(Util.java:97) at sun.misc.Cleaner.clean(Cleaner.java:125) ... 1 more Caused by: java.io.IOException: Broken pipe at sun.nio.ch.EPollArrayWrapper.interrupt(Native Method) at sun.nio.ch.EPollArrayWrapper.interrupt(EPollArrayWrapper.java:242) at sun.nio.ch.EPollSelectorImpl.wakeup(EPollSelectorImpl.java:170) at sun.nio.ch.SelectorImpl.implCloseSelector(SelectorImpl.java:92) at java.nio.channels.spi.AbstractSelector.close(AbstractSelector.java:91) at sun.nio.ch.Util$SelectorWrapper$Closer.run(Util.java:95) ... 2 more Feb 17, 2009 12:10:38 AM org.apache.coyote.http11.Http11NioProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-80 Feb 17, 2009 12:10:38 AM org.apache.coyote.http11.Http11AprProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-443 Feb 17, 2009 12:10:38 AM org.apache.coyote.ajp.AjpAprProtocol pause INFO: Pausing Coyote AJP/1.3 on ajp-8009 [GC 4071265K-3937784K(4177280K), 0.0921220 secs] Feb 17, 2009 12:10:39 AM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Feb 17, 2009 12:10:39 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 28,017 instance(s) to be deallocated Feb 17, 2009 12:10:41 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 27,669 instance(s) to be deallocated Feb 17, 2009 12:10:42 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 27,666 instance(s) to be deallocated Feb 17, 2009 12:10:43 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 3 instance(s) to be deallocated Feb 17, 2009 12:10:44 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 3 instance(s) to be deallocated Feb 17, 2009 12:10:45 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 3 instance(s) to be deallocated 360358820 [SocketConnectorIoProcessor-0.0] null org.apache.mina.common.support.DefaultExceptionMonitor - Unexpected exception. java.lang.NullPointerException at org.apache.mina.common.ByteBuffer.allocate(ByteBuffer.java:225) at org.apache.mina.common.ByteBuffer.allocate(ByteBuffer.java:208) at org.apache.mina.transport.socket.nio.SocketIoProcessor.read(SocketIoProcessor.java:210) at org.apache.mina.transport.socket.nio.SocketIoProcessor.process(SocketIoProcessor.java:198) at
Re: Tomcat in-memory (session) cookie
Thanks Chuck and Jorge... My English is not so great and maybe my questions did not had good grammatical form. Chuck thanks for answer, and I know what cookie is :) but I was confused... Just for practice I created two jsp, one calls another through form tag. And after that I created one servlet who prints all cookies. Than for experiment I run jsp A who on-click called (opens) jsp B, than after that I run servlet C to print current cookies and it printed JSESSIONID cookie. I was confused what is relation between session (HttpSession) and JSESSIONID cookie because JSESSIONID has session in it's name and through my cookie-printing servlet I saw that JSESSIONID is cookie? And is there in-memory cookie which generates on every get and post request? I thought that this Tomcat in-memory (session) cookie which I am looking for is JSESSIONID. I could print it value but I was wondering could I change it value? Or add more values to this cookie? In manual Chuck gave me I found this: Session tracking through HTTP cookies is the most used session tracking mechanism and is required to be supported by all servlet containers. The container sends a cookie to the client. The client will then return the cookie on each subsequent request to the server, unambiguously associating the request with a session. The name of the session tracking cookie must be JSESSIONID. So after my all my dilemmas JSESSIONID is simple cookie! But I still do not know is this the cookie which exists only when browser is opened because I closed browser and run my cookie-printing servlet which printed this cookie again?! Jorge, thanks, you cleared some of my dilemmas but I still have few... :) You said that through the HttpSession object I can access the cookies and you said and that JSESSIONID attribute is handled by Tomcat but you said It is enough to add the attribute(s) you will later use. Does this means that I can add more values to JSESSIONID cookie?! If I can this is great, it solves my problem, I can check with my second servlet is JSESSIONID present and I can check does it contains my value and if it does I redirect, if it doesn't I inform user. -- View this message in context: http://www.nabble.com/Tomcat-in-memory-%28session%29-cookie-tp22060645p22067923.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: Tomcat in-memory (session) cookie
Thanks Chuck and Jorge... My English is not so great and maybe my questions did not had good grammatical form. Chuck thanks for answer, and I know what cookie is :) but I was confused... Just for practice I created two jsp, one calls another through form tag. And after that I created one servlet who prints all cookies. Than for experiment I run jsp A who on-click called (opens) jsp B, than after that I run servlet C to print current cookies and it printed JSESSIONID cookie. I was confused what is relation between session (HttpSession) and JSESSIONID cookie because JSESSIONID has session in it's name and through my cookie-printing servlet I saw that JSESSIONID is cookie? And is there in-memory cookie which generates on every get and post request? I thought that this Tomcat in-memory (session) cookie which I am looking for is JSESSIONID. I could print it value but I was wondering could I change it value? Or add more values to this cookie? In manual Chuck gave me I found this: Session tracking through HTTP cookies is the most used session tracking mechanism and is required to be supported by all servlet containers. The container sends a cookie to the client. The client will then return the cookie on each subsequent request to the server, unambiguously associating the request with a session. The name of the session tracking cookie must be JSESSIONID. So after my all my dilemmas JSESSIONID is simple cookie! But I still do not know is this the cookie which exists only when browser is opened because I closed browser and run my cookie-printing servlet which printed this cookie again?! Jorge, thanks, you cleared some of my dilemmas but I still have few... :) You said that through the HttpSession object I can access the cookies and you said and that JSESSIONID attribute is handled by Tomcat but you said It is enough to add the attribute(s) you will later use. Does this means that I can add more values to JSESSIONID cookie?! If I can this is great, it solves my problem, I can check with my second servlet is JSESSIONID present and I can check does it contains my value and if it does I redirect, if it doesn't I inform user. -- View this message in context: http://www.nabble.com/Tomcat-in-memory-%28session%29-cookie-tp22060645p22067936.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: Fatal error: Cleaner terminated abnormally
From: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] Subject: Re: Fatal error: Cleaner terminated abnormally search the sun database, some results there http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6521677 It's somewhat related, but I don't think it will cover the case reported here, which looked like a simple socket closure rather than anything to do with memory mapping of files. I think a new bug submission is in order (preferably by the OP). - 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: Tomcat in-memory (session) cookie
From: makaira nigricans [mailto:liame.e...@yahoo.com] Subject: RE: Tomcat in-memory (session) cookie And is there in-memory cookie which generates on every get and post request? First, let's do the terminology: there's no such thing as an in-memory cookie. A cookie is just a piece of information passed back and forth between a client and a server that preserves state information for an otherwise stateless connection. Clients (browsers) usually persist cookies on disk, but Tomcat and webapps running therein don't know or care about that. What Tomcat keeps track of is the HttpSession object, one attribute of which is the JSESSIONID value. Or add more values to this cookie? To repeat: it's not a cookie, it's an HttpSession object. If you look at the servlet spec and the API doc for HttpSession, you'll see the setAttribute() and removeAttribute() methods, which you may utilize as you see fit. If you want to send additional cookies to the client, you'll need to use the addCookie() method of HttpServletResponse, again documented in the spec and API pages: http://java.sun.com/products/servlet/2.5/docs/servlet-2_5-mr2/index.html You said that through the HttpSession object I can access the cookies No, he said you can access *attributes*, not cookies. Does this means that I can add more values to JSESSIONID cookie?! No, but you can add more attributes (names and values) to the *session* object. - 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: Fatal error: Cleaner terminated abnormally
Sadly there is no mention of a fix related to NIO in the 6u12 release notes. This comes as kind of a bummer, as we were hoping to make a comet implementation soon. The native/apr connector looks like it could be a replacement for NIO for us, but after searching I could not find anything conclusive about the scalability and performance compared to NIO. Opinions on native vs nio in discussions I have found seem to be divided. I'm also not sure if the native/apr implementation is completely separate from the NIO api. Does anyone know of any downsides/pitfalls I should look out for when using native/apr ? As always, any comment is appreciated. - Taylan -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: dinsdag 17 februari 2009 16:36 To: Tomcat Users List Subject: RE: Fatal error: Cleaner terminated abnormally From: Taylan Develioglu [mailto:tdevelio...@ebuddy.com] Subject: Fatal error: Cleaner terminated abnormally Lately we've been experiencing a fatal error, related to gc, with Tomcat that causes it to stop and unload It's not really a GC problem - rather a silly bug in NIO. You might try the standard HTTP connector to avoid the problem. Sun seems to be continually fixing NIO, so there may be something for this in 6u12, if you want to keep using the NIO connector. I'm still unclear on what is causing the cleaner to terminate The Cleaner terminates if the run() method of the registered object throws *any* kind of exception - and then takes the entire JVM down with it, via a System.exit() call (bloody brilliant, that one). In this case, the NIO Selector Closer object didn't like the fact that its peer had gone away, and puked. Not quite as robust as one might hope. - Chuck - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Fatal error: Cleaner terminated abnormally
Yes, 64-bit hotspot server vm. -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: dinsdag 17 februari 2009 16:23 To: Tomcat Users List Subject: Re: Fatal error: Cleaner terminated abnormally Taylan Develioglu wrote: Following the gc trail, it looks like an oom situation (maybe a mem leak in our application, our heapsize is 4GB), is it normal behavior for tomcat to destroy itsself like this? Are you on a 64-bit JVM? If not, the process heap is limited to 4GB so the Java object heap (set with Xmx) needs to allow for this. I would use 3.5GB as a starting point. 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: Fun with the JVM crashing.
Rainer Jung wrote: In case you only want to exclude few methods from compilation, -XX:CompileCommand=exclude,com/myCompany/servlets/sales/blah/some,method will do it. Since we put this change into production, we haven't seen the problem. Thank you so much. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Fatal error: Cleaner terminated abnormally
I found bug 4938372, but it didn't seem related to me at the time. There's a post dated 2007, from Alan Bateman, indicating they'd try putting the fix in a java 6 update. I'll submit a bug report and in the meanwhile explore other options such as native/apr then. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: dinsdag 17 februari 2009 23:46 To: Tomcat Users List Subject: RE: Fatal error: Cleaner terminated abnormally From: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] Subject: Re: Fatal error: Cleaner terminated abnormally search the sun database, some results there http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6521677 It's somewhat related, but I don't think it will cover the case reported here, which looked like a simple socket closure rather than anything to do with memory mapping of files. I think a new bug submission is in order (preferably by the OP). - 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
mod_jk
Is there a way to verify if mod_jk is load balancing properly among given live servers - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org