Tomcat7 APR Connectors Config: Unable to load certificate key conf/key1cert.pem

2010-11-24 Thread Scott Li
Hi All, I followed the instruction below http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#SSL_Support to config Tomcat7's *APR Connectors *SSL, but get error: Error initializing endpoint java.lang.Exception: Unable to load certificate key conf/key1cert.pem (error:02001003:system

Re: clearThreadLocalMap and NullPointerException

2010-11-24 Thread Mark Thomas
On 24/11/2010 01:28, Blair Zajac wrote: On Nov 23, 2010, at 4:49 PM, Blair Zajac wrote: On Nov 23, 2010, at 2:24 AM, Mark Thomas wrote: Do let us know what the problem was when you find it. Does JNA provide its own clean up methods that I could run at shutdown? I haven't looked yet to see.

Re: Server affinity instead of session affinity

2010-11-24 Thread Mark Thomas
On 23/11/2010 23:34, André Warnier wrote: Andrew Hole wrote: I'm reading about domain directive in worker properties. I can setup different workers to be in the same domain (p.e. a machine) and have domain affinity. Do you have some idea how it really works? No, but it kind of sounds like

Re: the memory puzzle me....

2010-11-24 Thread Mark Thomas
On 24/11/2010 05:47, Caldarale, Charles R wrote: From: xu cheng [mailto:xcheng@gmail.com] Subject: Re: the memory puzzle me by the way, do you know *any tool that can monitor the permanent generation*, such what's now resident in the perm gen? I presume you mean on Windows, since

Re: Unable to find WEB INF

2010-11-24 Thread Mark Thomas
On 24/11/2010 06:56, Sandip Hirwale wrote: Hello i am new to tomcat i deployed my application by copy it into webapps folder in tomcat now i have to make some change in index file but unable to find that directory with application name where is it located ??? thanks You'll need to

Re: Tomcat7 APR Connectors Config: Unable to load certificate key conf/key1cert.pem

2010-11-24 Thread Mark Thomas
On 24/11/2010 08:22, Scott Li wrote: SSLCertificateFile=conf/key1.pem SSLCertificateKeyFile=conf/key1cert.pem You have these the wrong way around. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Re: Tomcat7 APR Connectors Config: Unable to load certificate key conf/key1cert.pem

2010-11-24 Thread Goo Sam Kong
Hi Scott, My working HTTPS connector using APR settings as below: Connector port=8443 protocol=org.apache.coyote.http11.Http11AprProtocol SSLEnabled=true maxThreads=150 scheme=https secure=true

Re: Tomcat7 APR Connectors Config: Unable to load certificate key conf/key1cert.pem

2010-11-24 Thread Scott Li
thanks Mark Thomas and Goo Sam Kong I followed Goo Sam Kong 's config still have errors: Loaded APR based Apache Tomcat Native library 1.1.20. 2010-11-24 17:38:43 org.apache.catalina.core.AprLifecycleListener init 信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false],

Re: create[8005]: java.net.BindException: error occured while starting tomcat on Ubuntu Plateform

2010-11-24 Thread ikhan
I have exatly same error in my tomcat, and I am getting it in every 10 minutes, I added localhost entry in the hosts file, but still the issue is happening, please help me Following is the crash... INFO: Creating MBeanServer Nov 17, 2010 1:10:05 PM org.apache.coyote.http11.Http11Protocol init

Re: create[8005]: java.net.BindException: error occured while starting tomcat on Ubuntu Plateform

2010-11-24 Thread André Warnier
Hi. In the logs below, I see references to JK2. That seems to be a reference to the mod_jk2 connector, which to my knowledge is old, not developed or maintained anymore. If that's the case, then you should change your configuration to use mod_jk1.x, of which the current version is downloadable

Re: org.apache.jasper.util.Entry object Heap Size

2010-11-24 Thread amitruwali
Hello Mark, Please find below information: Tomcat version: 7.0.2 JDK : Java 1.6 Class exists in the jar : jasper.jar Path: /lib/jasper.jar Thanks to feedback, Amit Mark Thomas wrote: On 23/11/2010 11:02, amitruwali wrote: In one of our internet applications we are getting the heap

AW: Several hosts within one tomcat / catch-all problem

2010-11-24 Thread Steffen Heil
Hi Perhaps I don't understand, but I agree with Pid's suggestion: just use defaultHost -- that's what it's for, right? Yes, if you have only one. However we have the following setup: App1: domain1.tld, www.domain1.tld App2: domain2.tld, www.domain2.tld, additional.domain2.tld App3:

Re: AW: Several hosts within one tomcat / catch-all problem

2010-11-24 Thread André Warnier
Steffen Heil wrote: Hi Perhaps I don't understand, but I agree with Pid's suggestion: just use defaultHost -- that's what it's for, right? Yes, if you have only one. However we have the following setup: App1: domain1.tld, www.domain1.tld App2: domain2.tld, www.domain2.tld,

Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-24 Thread Emerson, Christopher
Ever since we've upgraded to Tomcat 6 4 weeks ago, I've been fighting the following error on shutdown ... Nov 23, 2010 4:42:18 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: A web application appears to have started a thread named

RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-24 Thread Rob Gregory
Please let me know if anyone has seen this before. I bet whoever put that in as a feature is really glad for all the posts that followed. http://wiki.apache.org/tomcat/MemoryLeakProtection or a quick google will provide you with some explanation, but basically it's most likely your code ;o)

RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-24 Thread Caldarale, Charles R
From: Emerson, Christopher [mailto:cemer...@orangelake.com] Subject: Please help ... [MultiThreadedHttpConnectionManager cleanup] Ever since we've upgraded to Tomcat 6 4 weeks ago, I've been fighting the following error on shutdown ... You've actually had the error all along, but it's only

Re: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-24 Thread Pid
On 24/11/2010 14:41, Rob Gregory wrote: Please let me know if anyone has seen this before. I bet whoever put that in as a feature is really glad for all the posts that followed. http://wiki.apache.org/tomcat/MemoryLeakProtection or a quick google will provide you with some explanation,

RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-24 Thread Emerson, Christopher
So if this is being started from Axis2 1.5.1 client, there's a bug in the client code generation or the supporting Axis2 jars? -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, November 24, 2010 9:41 AM To: Tomcat Users List Subject: RE:

Re: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-24 Thread André Warnier
Emerson, Christopher wrote: Ever since we've upgraded to Tomcat 6 4 weeks ago, I've been fighting the following error on shutdown ... Nov 23, 2010 4:42:18 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: A web application appears to have started a thread named

RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-24 Thread Caldarale, Charles R
From: Emerson, Christopher [mailto:cemer...@orangelake.com] Subject: RE: Please help ... [MultiThreadedHttpConnectionManager cleanup] So if this is being started from Axis2 1.5.1 client, there's a bug in the client code generation or the supporting Axis2 jars? Possibly, or possibly you

RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-24 Thread Emerson, Christopher
Thank you! I just wanted to eliminate Tomcat 6 as a variable and that this wasn't a known issue. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, November 24, 2010 9:53 AM To: Tomcat Users List Subject: RE: Please help ...

Error Question

2010-11-24 Thread Omar A. Barrera
Hello all, I am in the process of developing a Servlet application. I am currently using Eclipse Helios and Tomcat 6.0.29 in my dev environment. When I start up Tomcat in Eclipse I get the following error pasted below. What does this mean and how do I resolve it? Thank you. --Omar

RE: Error Question

2010-11-24 Thread Caldarale, Charles R
From: Omar A. Barrera [mailto:oma...@southtexascollege.edu] Subject: Error Question I am currently using Eclipse Helios and Tomcat 6.0.29 What JVM are you using? There was a known bug in 6u* that threw an erroneous string index out of bounds exception on occasion. The problem was fixed in

RE: ****SPAM**** RE: Error Question

2010-11-24 Thread Omar A. Barrera
I am currently at JVM 1.6.0_11 and am using JDK 1.6.20. So updating the JVM should resolve the issue? I will give it a try. Many thanks. Regards, --Omar Barrera -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, November 24, 2010 9:18

RE: ****SPAM**** RE: Error Question

2010-11-24 Thread Caldarale, Charles R
From: Omar A. Barrera [mailto:oma...@southtexascollege.edu] Subject: RE: SPAM RE: Error Question I am currently at JVM 1.6.0_11 and am using JDK 1.6.20. Not sure how you can be two places at once... So updating the JVM should resolve the issue? Might, rather than should. It

Starup Order [Filters -- Servlets -- Context]

2010-11-24 Thread Rob Gregory
Hi Guys, Am I correct in my assumption that servlet filters are started before servlets and that the context listeners are not fired until both the filters and servlets have been initialised? What I am trying to do is run some code before the context is started which is actually going to copy

Re: Starup Order [Filters -- Servlets -- Context]

2010-11-24 Thread Pid
On 24/11/2010 15:38, Rob Gregory wrote: Hi Guys, Am I correct in my assumption that servlet filters are started before servlets and that the context listeners are not fired until both the filters and servlets have been initialised? ServletContextListeners first, before Filters

RE: Starup Order [Filters -- Servlets -- Context]

2010-11-24 Thread Rob Gregory
Thanks Pid, see my comment below:- -Original Message- From: Pid [mailto:p...@pidster.com] Sent: 24 November 2010 17:05 To: Tomcat Users List Subject: Re: Starup Order [Filters -- Servlets -- Context] On 24/11/2010 15:38, Rob Gregory wrote: Hi Guys, Am I correct in my

Re: Starup Order [Filters -- Servlets -- Context]

2010-11-24 Thread Pid
On 24/11/2010 17:15, Rob Gregory wrote: Thanks Pid, see my comment below:- -Original Message- From: Pid [mailto:p...@pidster.com] Sent: 24 November 2010 17:05 To: Tomcat Users List Subject: Re: Starup Order [Filters -- Servlets -- Context] On 24/11/2010 15:38, Rob Gregory wrote:

Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-24 Thread declan harrison
Hi This is my first post to tomcat user mailing list. I'm using Tomcat 6.0.24 on Linux RHELS release 5.3 (Tikanga) on a 64 bit OS. I have deployed a Web application within Tomcat. The Web App in the main sends dynamically created video content to a client over the HTTP1.1 Blocking Connector. I

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-24 Thread Pid *
On 24 Nov 2010, at 18:07, declan harrison harrison.dec...@gmail.com wrote: Hi This is my first post to tomcat user mailing list. Hello. I'm using Tomcat 6.0.24 on Linux RHELS release 5.3 (Tikanga) on a 64 bit OS. Which JVM version? I have deployed a Web application within Tomcat. The

Re: org.apache.jasper.util.Entry object Heap Size

2010-11-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Amit, On 11/24/2010 6:31 AM, amitruwali wrote: Please find below information: Tomcat version: 7.0.2 JDK : Java 1.6 [Class is org.apache.jasper.util.Entry] Class exists in the jar : jasper.jar Path: /lib/jasper.jar $ wget

Re: AW: Several hosts within one tomcat / catch-all problem

2010-11-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steffan, On 11/24/2010 8:22 AM, Steffen Heil wrote: This cannot be done with defaultHost, can it? Now I understand, and you are correct. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla -

Re: AW: Several hosts within one tomcat / catch-all problem

2010-11-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 11/24/2010 8:38 AM, André Warnier wrote: But even if this is an outside opinion by a non-Java non-Tomcat expert, it should not be too difficult to find the code which matches hostnames and aliases with the request Host: header, and

RE: org.apache.jasper.util.Entry object Heap Size

2010-11-24 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: org.apache.jasper.util.Entry object Heap Size In the meantime, you should probably upgrade to 7.0.4 which is the latest in the 7.0.x line. I'd recommend skipping 7.0.4 and getting Tomcat 7.0.5 from svn. Mark

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 11/24/2010 2:32 PM, Pid * wrote: That sounds like the thread is only being reset properly after it's been used a second time. +1 This can probably be replicated in a test by having a dummy servlet simply throw a ClientAbortException (or

Re: org.apache.jasper.util.Entry object Heap Size

2010-11-24 Thread Konstantin Kolinko
2010/11/24 Christopher Schultz ch...@christopherschultz.net: On 11/24/2010 6:31 AM, amitruwali wrote: Please find below information: Tomcat version: 7.0.2 JDK : Java 1.6 [Class is org.apache.jasper.util.Entry] Class exists in the jar : jasper.jar Path: /lib/jasper.jar $ wget

Re: the memory puzzle me....

2010-11-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 11/24/2010 12:47 AM, Caldarale, Charles R wrote: I suspect the more sophisticated profilers like YourKit will [show PermGen details], but I'm not sure. Others on the list use YourKit regularly, so they might be able to be more definitive

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-24 Thread declan harrison
On Wed, Nov 24, 2010 at 7:32 PM, Pid * p...@pidster.com wrote: On 24 Nov 2010, at 18:07, declan harrison harrison.dec...@gmail.com wrote: Hi This is my first post to tomcat user mailing list. Hello. Hi there I'm using Tomcat 6.0.24 on Linux RHELS  release 5.3 (Tikanga) on a 64 bit OS.

RE: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-24 Thread Caldarale, Charles R
From: declan harrison [mailto:harrison.dec...@gmail.com] Subject: Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked Do you have any part of the response stored as an instance field in your servlet? Yes I have a reference to the

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-24 Thread declan harrison
On Wed, Nov 24, 2010 at 7:59 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 11/24/2010 2:32 PM, Pid * wrote: That sounds like the thread is only being reset properly after it's been used a second time. +1 This can

Re: clearThreadLocalMap and NullPointerException

2010-11-24 Thread Blair Zajac
On Nov 24, 2010, at 12:41 AM, Mark Thomas wrote: On 24/11/2010 01:28, Blair Zajac wrote: On Nov 23, 2010, at 4:49 PM, Blair Zajac wrote: On Nov 23, 2010, at 2:24 AM, Mark Thomas wrote: Do let us know what the problem was when you find it. Does JNA provide its own clean up methods that I

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-24 Thread declan harrison
On Wed, Nov 24, 2010 at 10:23 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: declan harrison [mailto:harrison.dec...@gmail.com] Subject: Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked Do you have any part of the response

RE: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-24 Thread Caldarale, Charles R
From: declan harrison [mailto:harrison.dec...@gmail.com] Subject: Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked I meant I have local variable that reference the response output stream. Ok, you're off the hook on that one. Anything stored

Re: Tomcat7 APR Connectors Config: Unable to load certificate key conf/key1cert.pem

2010-11-24 Thread Goo Sam Kong
Hi Scott, The exception was caused by wrong setting in your original HTTPS connector settings... In Mark's email, you need to put conf/key1cert.pem in SSLCertificateFile attribute and conf/key1.pem in SSLCertificateKeyFile attribute. 2010/11/24 Scott Li scott...@gwghk.com thanks Mark Thomas

Re: Tomcat7 APR Connectors Config: Unable to load certificate key conf/key1cert.pem

2010-11-24 Thread Scott Li
Dear Goo Sam Kong, It' OK now , Thank you very much! I changed the cert file config as below: Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false

No of sessions,current thread count and thread busy Logs in tomcat

2010-11-24 Thread rujin raj
I am Monitoring the tomcat application ,no. of session ,Current thread count and current thread busy using lambda probe. Is there any way to save these these datas in local machine for future reference for specfic interval. --rujin