Re: Login fails, then works subsequently (Tomcat 7)

2011-12-22 Thread Pid *
On 21 Dec 2011, at 22:52, Chema demablo...@gmail.com wrote: 10 to 1 you've got stale connections in your pool; first try fails, second one gets a fresh connection I thought the same autoReconnect Should the driver try to re-establish stale and/or dead connections? Nope. Like Hassan said,

Re: Login fails, then works subsequently (Tomcat 7)

2011-12-22 Thread Pid *
On 22 Dec 2011, at 02:22, Brian Burch br...@pingtoo.com wrote: On 22/12/11 06:39, Jerry Malcolm wrote: About a month ago, I upgraded two different servers from TC 5 to TC 7. The migration went cleanly, and everything has been working fine with the exception of one thing. About 50% of the

Re: Login fails, then works subsequently (Tomcat 7)

2011-12-22 Thread Pid
On 22/12/2011 04:51, Caldarale, Charles R wrote: From: Hassan Schroeder [mailto:hassan.schroe...@gmail.com] Subject: Re: Login fails, then works subsequently (Tomcat 7) No testWhileIdle / validationQuery settings? 10 to 1 you've got stale connections in your pool Did we just go off on

High memory consumption caused by BLOCKED Threads

2011-12-22 Thread Violeta Georgieva
Hi, I am using Tomcat 6.0.29 and SUN JVM. I experience high memory consumption caused by BLOCKED Threads. I would appreciate any help or suggestion how to solve the problem. I can see the following in the thread dump: http-8080-73 daemon prio=10 tid=0x7ff9a4586000 nid=0x7d3 waiting for

Re: Hosted environment

2011-12-22 Thread Pid
On 22/12/2011 01:27, r.sriram wrote: you sound quite obnoxious and you don't seem to have any valid answers other than insulting others. Oh no, you're quite mistaken, if I was being obnoxious I would be using a different tone entirely. I would probably make some offhand comments about limited

Re: High memory consumption caused by BLOCKED Threads

2011-12-22 Thread Mark Thomas
On 22/12/2011 09:05, Violeta Georgieva wrote: Hi, I am using Tomcat 6.0.29 and SUN JVM. I experience high memory consumption caused by BLOCKED Threads. Blocked threads will not cause high memory consumption. I would appreciate any help or suggestion how to solve the problem. Try telling

Re: High memory consumption caused by BLOCKED Threads

2011-12-22 Thread Violeta Georgieva
The blocked threads that are waiting to get the lock, in order to finish the response, are holding a lot of memory that they cannot release. I have 50 blocked threads that are waiting. 2011/12/22 Mark Thomas ma...@apache.org On 22/12/2011 09:05, Violeta Georgieva wrote: Hi, I am using

Re: MBean InitialContext() Tomcat query- pls help

2011-12-22 Thread Konstantin Kolinko
2011/12/20 S B sbl...@gmail.com: Hi, I created and deployed an MBean in my tomcat. It uses datasource to connect to DB. My questions is: When I create InitialContext() inside MBean's constructor and pass the envContext to DBManager class to lookup datasource it works fine. However when I

Fwd: Tomcat HTTPS Connector Stops working after an hour

2011-12-22 Thread Saravanan L
Hi, We have setup Tomcat 7 with APR in linux box. The issue is that after an hour or two, the https stops responding, but the HTTP connector is still working. When we try to open https://192.168.1.32/, it does not respond.[ it does not timeout but the browser says server could not reached]

Re: Hosted environment

2011-12-22 Thread r.sriram
On 12/22/2011 2:45 PM, Pid wrote: On 22/12/2011 01:27, r.sriram wrote: you sound quite obnoxious and you don't seem to have any valid answers other than insulting others. Oh no, you're quite mistaken, if I was being obnoxious I would be using a different tone entirely. I would probably make

Re: High memory consumption caused by BLOCKED Threads

2011-12-22 Thread David kerber
On 12/22/2011 4:05 AM, Violeta Georgieva wrote: Hi, I am using Tomcat 6.0.29 and SUN JVM. I experience high memory consumption caused by BLOCKED Threads. I would appreciate any help or suggestion how to solve the problem. Fix your app so that it releases the locks (probably synchronized

Re: High memory consumption caused by BLOCKED Threads

2011-12-22 Thread Violeta Georgieva
But I do not make locks on the SimpleDateFormat objects? Tomcat does it while finishing the response. Here is one of the threads that waits to lock: http-8080-84 daemon prio=10 tid=0x7ff9a4340800 nid=0xf5d waiting for monitor entry [0x7ff9990cf000] java.lang.Thread.State: BLOCKED (on

RE: High memory consumption caused by BLOCKED Threads

2011-12-22 Thread Caldarale, Charles R
From: David kerber [mailto:dcker...@verizon.net] Subject: Re: High memory consumption caused by BLOCKED Threads Fix your app so that it releases the locks (probably synchronized sections) on the SimpleDateFormat objects. Read the stack trace more carefully - only Tomcat or JRE code is

RE: Tomcat HTTPS Connector Stops working after an hour

2011-12-22 Thread Caldarale, Charles R
From: Saravanan L [mailto:saravan...@te-soft.com] Subject: Fwd: Tomcat HTTPS Connector Stops working after an hour We have setup Tomcat 7 with APR in linux box. The issue is that after an hour or two, the https stops responding, but the HTTP connector is still working. What does a thread

Re: Hosted environment

2011-12-22 Thread Pid
On 20/12/2011 11:55, Pid wrote: From earlier in the thread, as you seem to be having trouble reading these things: * Is there any other configuration change that I need to do Yes, you will need to configure the connection between HTTPD and Tomcat, using mod_proxy or mod_jk. You need to

Re: Hosted environment

2011-12-22 Thread Pid
In case you prefer the gospel according to the erudite Mr Eggers... On 21/12/2011 15:24, Mark Eggers wrote: Well, you sort of kind of followed that. Now, as Pid has also pointed out, you will need to configure mod_proxy, mod_proxy_ajp, or mod_ajp to connect Apache HTTPD and Tomcat. There

Error in documentation

2011-12-22 Thread Peter Šály
Hi all, I want to point on wrong setting example for tomcat manager in the documentation: http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Configuring_Manager_Application_Access . user name=craigmcc password=secret roles=standard,manager-script / What should I put in tomcat-users.xml

Re: Error in documentation

2011-12-22 Thread Mark Thomas
On 22/12/2011 15:00, Peter Šály wrote: Hi all, I want to point on wrong setting example for tomcat manager in the documentation: http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Configuring_Manager_Application_Access . user name=craigmcc password=secret

Re: Error in documentation

2011-12-22 Thread Pid
On 22/12/2011 15:00, Peter Šály wrote: Hi all, I want to point on wrong setting example for tomcat manager in the documentation: http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Configuring_Manager_Application_Access It is not wrong. You just omitted the line beforehand: This

Re: MBean InitialContext() Tomcat query- pls help

2011-12-22 Thread Pid
On 22/12/2011 10:34, Konstantin Kolinko wrote: 2011/12/20 S B sbl...@gmail.com: Hi, I created and deployed an MBean in my tomcat. It uses datasource to connect to DB. My questions is: When I create InitialContext() inside MBean's constructor and pass the envContext to DBManager class to

Re: Error in documentation

2011-12-22 Thread Daniel Mikusa
On Thu, 2011-12-22 at 07:00 -0800, Peter Šály wrote: Hi all, I want to point on wrong setting example for tomcat manager in the documentation: http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Configuring_Manager_Application_Access . user name=craigmcc password=secret

Re: Error in documentation

2011-12-22 Thread Peter Šály
Now I understand. Thank you. 2011/12/22 Daniel Mikusa dmik...@vmware.com On Thu, 2011-12-22 at 07:00 -0800, Peter Šály wrote: Hi all, I want to point on wrong setting example for tomcat manager in the documentation:

Re: Hosted environment

2011-12-22 Thread Mark Eggers
- Original Message - From: r.sriram sri...@rstech.net To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Wednesday, December 21, 2011 5:27 PM Subject: Re: Hosted environment you sound quite obnoxious and you don't seem to have any valid answers other than insulting others.

Re: Hosted environment

2011-12-22 Thread Mark Eggers
- Original Message - From: Pid p...@pidster.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Thursday, December 22, 2011 5:25 AM Subject: Re: Hosted environment In case you prefer the gospel according to the erudite Mr Eggers... On 21/12/2011 15:24, Mark Eggers

Re: High memory consumption caused by BLOCKED Threads

2011-12-22 Thread Rainer Jung
Chuck, On 22.12.2011 14:07, Caldarale, Charles R wrote: From: David kerber [mailto:dcker...@verizon.net] Subject: Re: High memory consumption caused by BLOCKED Threads Fix your app so that it releases the locks (probably synchronized sections) on the SimpleDateFormat objects. Read the

Re: Login fails, then works subsequently (Tomcat 7)

2011-12-22 Thread Mark Eggers
- Original Message - From: Hassan Schroeder hassan.schroe...@gmail.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Wednesday, December 21, 2011 2:40 PM Subject: Re: Login fails, then works subsequently (Tomcat 7) On Wed, Dec 21, 2011 at 2:23 PM, Jerry Malcolm

Re: [OT] Displaying Time Zones for user preferences

2011-12-22 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: [OT] Displaying Time Zones for user preferences Can you not use GeoIP to find out where a user is connecting from, and select his time zone automatically for him/her ? Not reliably. For example, it says

Servlet Filter Examples

2011-12-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, At the ApacheCon NA Tomcat meetup back in November, there was general interest in seeing some example servlet Filters in the Tomcat examples directory. I said I'd write some. It's time to put my money where my mouth was. I have the following

Re: [OT] Displaying Time Zones for user preferences

2011-12-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/21/11 2:24 PM, André Warnier wrote: Can you not use GeoIP to find out where a user is connecting from, and select his time zone automatically for him/her ? (Saves your conumdrum about how to display the choices)

Re: [OT] Displaying Time Zones for user preferences

2011-12-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/22/11 3:51 PM, André Warnier wrote: As Konstantin points out separately, if you are going to use the local timezone for anything serious, then you could get yourself into a lot of complications. No, he's just saying once a timezone,

Re: Security Constraints With URL Rewrite filter

2011-12-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jerry, On 12/21/11 3:55 PM, Jerry Malcolm wrote: The rewrite filter is correctly rewriting the URLs and forwarding the requests. Any option to redirect? That would solve everything. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2

Re: Hosted environment

2011-12-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sriram, On 12/22/11 7:12 AM, r.sriram wrote: And here is the point: However, when I configure exactly the same way as foo for a domain name www.x.com for example, it doesn't work. And here is the situation: I am using hosted environment with Go

Re: [OT] Hosted environment

2011-12-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/22/11 1:28 PM, Mark Eggers wrote: It's the setup I use because it cleanly decouples everything (Apache HTTPD configurations, pristine CATALINA_HOME, default Tomcat applications for connectivity / service testing, and an easy upgrade

Re: High memory consumption caused by BLOCKED Threads

2011-12-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 12/22/11 2:00 PM, Rainer Jung wrote: Hmmm, actually I had a short look at the code of sun.util.resources.TimeZoneNames.getContents(TimeZoneNames.java:185) and i don't unerstand why it is waiting for a monitor entry. The method

Re: java.sql.SQLException: No suitable driver found for in tomcat 6.0.35, is the class loading changed?

2011-12-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, On 12/16/11 7:49 PM, Frank Zhang wrote: Our code is using apache dbcp library and mysql-connector as JDBC driver other than tomcat own tomcat-dbcp.jar. Are you attempting to use the classes in tomcat-dbcp.jar directly? Or, do you just mean

Re: [OT] Hosted environment

2011-12-22 Thread Mark Eggers
- Original Message - From: Christopher Schultz ch...@christopherschultz.net To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Thursday, December 22, 2011 2:34 PM Subject: Re: [OT] Hosted environment -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/22/11 1:28

Re: Running not multithreaded application

2011-12-22 Thread hernan
On 12/14/11 5:45 PM, hernan wrote: I'm using Tomcat 7.0 for developing a new application. A key component in the application have to run an external not multithreaded application. Since I'm not an experienced user in Tomcat, I wonder which implementation alternatives do you

Re: Running not multithreaded application

2011-12-22 Thread hernan
On Thu, Dec 15, 2011 at 4:48 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hernan, On 12/15/11 12:47 PM, hernan wrote: As separate process, I thought a java server process with the wrapper that receive requests, launch a new

Re: [Discussion]Problem passing parameters to a Method ( Looking for incorrect argument Type )

2011-12-22 Thread Paul Nicolucci
Thanks for your input! I've actually figured out what I was missing. I had to also pull in the following fix: https://issues.apache.org/bugzilla/show_bug.cgi?id=50790 With the above fix everything works as it does on Tomcat 7.0.23 ( I was able to successfully execute my test on Tomcat).

Re: MBean InitialContext() Tomcat query- pls help

2011-12-22 Thread S B
On Thu, Dec 22, 2011 at 8:49 PM, Pid p...@pidster.com wrote: On 22/12/2011 10:34, Konstantin Kolinko wrote: 2011/12/20 S B sbl...@gmail.com: Hi, I created and deployed an MBean in my tomcat. It uses datasource to connect to DB. My questions is: When I create InitialContext()

RE: High memory consumption caused by BLOCKED Threads

2011-12-22 Thread Caldarale, Charles R
From: Rainer Jung [mailto:rainer.j...@kippdata.de] Subject: Re: High memory consumption caused by BLOCKED Threads Hmmm, actually I had a short look at the code of sun.util.resources.TimeZoneNames.getContents(TimeZoneNames.java:185) and i don't unerstand why it is waiting for a monitor