Re: Tomcat Classloader leaks

2012-03-21 Thread Pid *
On 21 Mar 2012, at 02:41, Dale Ogilvie dale_ogil...@trimble.com wrote: In our webapps running on Tomcat 7 we have seen quite a number of classloader memory leaks. The end result is that after a number of application reloads and redeploys, we run out of permanent generation memory and Tomcat

Embedded Tomcat does not detect @HandlesTypes classes

2012-03-21 Thread Paul Middelkoop
Hi, When I run Tomcat Embedded from Eclipse it is not able to detect my @HandlesTypes classes. This works fine when I run Tomcat non-embedded. This only happens if the classes that should be picked up by @HandlesTypes are not in a JAR file. Is this a bug I need to report? Tomcat tomcat = new

Re: Tomcat Classloader leaks

2012-03-21 Thread Leon Rosenberg
On Wed, Mar 21, 2012 at 7:52 AM, Pid * p...@pidster.com wrote: On 21 Mar 2012, at 02:41, Dale Ogilvie dale_ogil...@trimble.com wrote: When the application is unloaded by Tomcat, it should go away completely, regardless of (for example) unstopped threads in library foo. There is an

Tomcat Maven Plugin - Resource /WEB-INF/classes not found

2012-03-21 Thread janne mattila
I used tomcat-maven-plugin 1.1 to deploy my webapp to an embedded tomcat. It works ok. Now when I try to update to org.apache.tomcat.maven/tomcat7-maven-plugin/2.0-beta-1, deploy fails with an error (included in the end). My configuration is such - parent/web-app builds a web-app.war -

Re: Need a sample server.xml file for the session replication using backup manager

2012-03-21 Thread Dhaval Jaiswal
We have already server.xml(changed as per tomcat site instructions) in place, but it is not working properly. I will give you detail idea about our environment. We have 10 tomcats starting from 192.168.3.1 to 192.168.3.10. I wanted to make 192.168.3.10 as master/backup node, which has a session

Re: Embedded Tomcat does not detect @HandlesTypes classes

2012-03-21 Thread Mark Thomas
On 21/03/2012 07:31, Paul Middelkoop wrote: Hi, When I run Tomcat Embedded from Eclipse it is not able to detect my @HandlesTypes classes. This works fine when I run Tomcat non-embedded. This only happens if the classes that should be picked up by @HandlesTypes are not in a JAR file. Is

Re: Need a sample server.xml file for the session replication using backup manager

2012-03-21 Thread Mark Thomas
On 21/03/2012 09:15, Dhaval Jaiswal wrote: We have already server.xml(changed as per tomcat site instructions) in place, but it is not working properly. I will give you detail idea about our environment. We have 10 tomcats starting from 192.168.3.1 to 192.168.3.10. I wanted to make

Re: Tomcat Classloader leaks

2012-03-21 Thread Mark Thomas
On 21/03/2012 08:25, Leon Rosenberg wrote: On Wed, Mar 21, 2012 at 7:52 AM, Pid * p...@pidster.com wrote: On 21 Mar 2012, at 02:41, Dale Ogilvie dale_ogil...@trimble.com wrote: When the application is unloaded by Tomcat, it should go away completely, regardless of (for example) unstopped

Re: Tomcat Classloader leaks

2012-03-21 Thread Mark Thomas
On 21/03/2012 00:40, Dale Ogilvie wrote: In our webapps running on Tomcat 7 we have seen quite a number of classloader memory leaks. The end result is that after a number of application reloads and redeploys, we run out of permanent generation memory and Tomcat stops responding. We can see the

Re: Tomcat Maven Plugin - Resource /WEB-INF/classes not found

2012-03-21 Thread Olivier Lamy
Hello, It looks you have a jar providing javax.servlet.* classes which doesn't use provided scope. Can you check that ? 2012/3/21 janne mattila jannepostilis...@gmail.com: I used tomcat-maven-plugin 1.1 to deploy my webapp to an embedded tomcat. It works ok. Now when I try to update to

Re: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32)

2012-03-21 Thread Colin Ingarfield
Hello Filip, Over the weekend my application appears to have lost connectivity to its MySQL server. At that point in my logs I see these errors: 2012-03-16 18:25:18,248 ERROR [pool-3-thread-201] c.l.c.s.e.EventServiceImpl failed to store event

Re: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32)

2012-03-21 Thread Colin Ingarfield
Hello, I'm using the new Tomcat jdbc pool (1.1.0.1) with Tomcat 6.0.32, Ubuntu x86_64. I would like to increase the logging from the pool to try and chase down connection timeouts. Where your 1.1.0.1 comes from? It is not an official release. Released versions of jdbc-pool come

SPNEGO fallback to FORM/BASIC

2012-03-21 Thread Darren Salomons
I have successfully setup SPNEGO auth Valve using the included SpengoAuthenticator with tomcat 7.0.26 and using an LDAP realm to retrieve the roles. This SPNEGO requires that the web.xml use the auth-method: SPNEGO. Is there a way to fallback to BASIC or FORM authentication when a browser

Re: SPNEGO fallback to FORM/BASIC

2012-03-21 Thread André Warnier
Darren Salomons wrote: I have successfully setup SPNEGO auth Valve using the included SpengoAuthenticator with tomcat 7.0.26 and using an LDAP realm to retrieve the roles. This SPNEGO requires that the web.xml use the auth-method: SPNEGO. Is there a way to fallback to BASIC or FORM

Re: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32)

2012-03-21 Thread Filip Hanik Mailing Lists
That is very easily fixed testOnBorrow=true validationQuery=SELECT 1 Do you have this set? Otherwise, yes, you wont be able to detect if connections time out. send me your config - Original Message - From: Colin Ingarfield colin...@gmail.com To: users@tomcat.apache.org Sent:

Re: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32)

2012-03-21 Thread Filip Hanik Mailing Lists
- Original Message - From: Colin Ingarfield colin...@gmail.com To: users@tomcat.apache.org Sent: Wednesday, March 21, 2012 6:25:54 AM Subject: Re: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32) iirc I copied the version number from the

Re: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32)

2012-03-21 Thread Colin Ingarfield
My configuration: Resource auth=Container name=jdbc/cdb.mysql defaultAutoCommit=false driverClassName=com.mysql.jdbc.Driver factory=org.apache.tomcat.jdbc.pool.DataSourceFactory url=jdbc:mysql://X.com/_dev?sessionVariables=TRANSACTION ISOLATION LEVEL READ COMMITTED

Re: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32)

2012-03-21 Thread Filip Hanik Mailing Lists
Got it, thank you. The other way this can happen is if the application checks out a connection and then never returns it, and expects it to be used. For this you will want to enable removeAbandonedTimeout=60 removeAbandoned=true logAbandoned=true this should tell you pretty quickly if you got

Re: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32)

2012-03-21 Thread Colin Ingarfield
I added the 3 abandoned settings but I don't see any indication in the tomcat log that connections are being abandoned. I also made the max pool size pretty small.. my application would have failed quickly if all the connections we're being incorrectly held up. Anything else I can try? Thanks

Re: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32)

2012-03-21 Thread Filip Hanik Mailing Lists
it will take a while to see the abandoned log. I'm not implying every request hogs the connection, but that you could have ended up in a scenario where that did happen. otherwise, you would have not seen the problem for 2 hours and to go away when the system was restarted, as it should have

Re: Precompile JSPs, avoid thousands of servlets?

2012-03-21 Thread Terence M. Bandoian
On 1:59 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Terence, On 3/17/12 7:16 PM, Terence M. Bandoian wrote: On 1:59 PM, Christopher Schultz wrote: I've been there. I was on a consulting gig once where we replaced about 70% of the code of the product with

Setup of workers.properties with multiple host and TC instances

2012-03-21 Thread Martin Registe, Jr.
Hi All, Tomcat 6.0.29 with Apache 2.2.17 running on windows 2003R2 Currently the workers.properties files is setup like this and seems to be working fine. Current Setup worker.list=part #worker.list=worker1, worker2 # # Defining a worker named ajp13w and of type ajp13 # Note that the name and

Re: Setup of workers.properties with multiple host and TC instances

2012-03-21 Thread Mladen Turk
On 03/21/2012 07:47 PM, Martin Registe, Jr. wrote: Hi All, Please note that I have two different IP addresses running under the same worker. You will need one worker per host:port thus in your case 4 of them not 2. My boss thinks that this is causing sessions to jump between the two ip

RE: Setup of workers.properties with multiple host and TC instances

2012-03-21 Thread Martin Registe, Jr.
-Original Message- From: Mladen Turk [mailto:mt...@apache.org] Sent: Wednesday, March 21, 2012 2:09 PM To: users@tomcat.apache.org Subject: Re: Setup of workers.properties with multiple host and TC instances On 03/21/2012 07:47 PM, Martin Registe, Jr. wrote: Hi All, Please note that

RE: Tomcat Classloader leaks

2012-03-21 Thread Dale Ogilvie
Mark Thomas wrote: Your rant would be better aimed at the developers of the third party libraries and JVMs that create the problems in the first place rather than at the community that has worked hard to: - prevent them causing an issue in the first place [1], [2] - cleans up the mess they leave

Operation has timed out(3000 ms.).;

2012-03-21 Thread Dhaval Jaiswal
Receiving below errors in catalina log. I have changed the backup manager value of dropTime=3000 to 1 with restart of tomcats. However, still it is not taking effect notifying that Operation has timed out(3000 ms.) Please guide me where should i look to stop this messages. SEVERE: Unable to