Re: Tomcat7-maven-plugin 2.0-beta1 and useSeparateTomcatClassloader fails with run goal

2012-04-04 Thread Olivier Lamy
Hello, Looks to be an issue (does that work with tomcat6:run ?) Could you create an issue here: https://issues.apache.org/jira/browse/MTOMCAT (if possible with a small sample project to reproduce). Thanks -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy |

Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
Hi, I am using Tomcat 7.0.25 in a Linux machine I am using Tomcat's connection pool (org.apache.tomcat.dbcp.dbcp.BasicDataSource). As database I am using H2 as a file database. All is ok, but I have the following problem. On shutdown of Tomcat I see in catalina.out: SEVERE: The web

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Daniel Mikusa
- Original Message - Hi, I am using Tomcat 7.0.25 in a Linux machine I am using Tomcat's connection pool (org.apache.tomcat.dbcp.dbcp.BasicDataSource). As database I am using H2 as a file database. Where are you defining the connection pool? Can you include your configuration?

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Pid
On 04/04/2012 13:05, Hermes Flying wrote: Hi, I am using Tomcat 7.0.25 in a Linux machine I am using Tomcat's connection pool (org.apache.tomcat.dbcp.dbcp.BasicDataSource). As database I am using H2 as a file database. All is ok, but I have the following problem. On shutdown of Tomcat

Re: jdbc pool properties

2012-04-04 Thread Pid
On 04/04/2012 12:08, S Ahmed wrote: My db connections seem to be lost after an extended period of inactivity (for a web application). And the only way to get the connections to work again is to restart tomcat. My tomcat.jdbc.pool.Datasource settings have: property name=maxActive

Re: jdbc pool properties

2012-04-04 Thread Daniel Mikusa
- Original Message - My db connections seem to be lost after an extended period of inactivity There could be a number of reasons that this occurs. Perhaps a network issue is causing them to be disconnected or the database may be timing them out. At any rate, it's not likely that

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
Hi Dan, The following entry is in server.xml  Resource name=jdbc_GENERIS_RS auth=Container   type=javax.sql.DataSource   driverClassName=org.h2.Driver   url=jdbc:h2:file:/opt/en/repos/tomcat/webapps/GeneralApplication/db/internaldatabase;SCHEMA=genericschema

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
Hi Pid, This is the configuration The following entry is in server.xml  Resource name=jdbc_GENERIS_RS auth=Container   type=javax.sql.DataSource   driverClassName=org.h2.Driver  

Tomcat6 thread pool questions

2012-04-04 Thread llowder
Greetings, I was wondering if someone could help me understand how the threadpools are handled in tomcat6. I know that a lot of the functionality was moved to executors. I set one up and using psi-Probe I could see that it was indeed killing off threads as I expected. However, the

RE: jdbc pool properties

2012-04-04 Thread Propes, Barry L
There are some databases that do go in and periodically kill off connections, aside from the Tomcat settings. In addition to testOnBorrow=true, I also had two other attributes, but not sure if Tomcat 7.0 uses them or not, as I'm on 6.0.29. testOnBorrow=true

Re: Tomcat6 - Context - aliases

2012-04-04 Thread Léa Massiot
Hello André, André Warnier wrote - you need to tell your webapp where the uploaded files should be stored/retrieved - you cannot do it via an alias under Tomcat v7 Exactly. André Warnier wrote - so instead of an alias, do it via a property in a properties file, which your webapp

SEVERE: Unable to start cluster.

2012-04-04 Thread Dhaval Jaiswal
Hi List, Below is the error we are facing while starting tomcats. SEVERE: Unable to start cluster. org.apache.catalina.tribes.ChannelException: java.net.SocketException: Not a multicast address; No faulty members identified. Our cluster setting is as below in server.xml Cluster

AW: AW: FormAuthentication Valve changes fail with RequestListeners?

2012-04-04 Thread Thomas Strauß
-Ursprüngliche Nachricht- Von: André Warnier [mailto:a...@ice-sa.com] Gesendet: Dienstag, 3. April 2012 14:07 An: Tomcat Users List Betreff: Re: AW: FormAuthentication Valve changes fail with RequestListeners? Thomas Strauß wrote: ... We have not succeeded so far. I want to

AW: FormAuthentication Valve changes fail with RequestListeners?

2012-04-04 Thread Thomas Strauß
Repeating the message because I signed it (again, *sigh*), causing trouble - sorry. Hi, we have done the tests and got the following results (7.0.11 and 7.0.26). Thank you for taking the time: === Tomcat 7.0.11 == First call

Re: SEVERE: Unable to start cluster.

2012-04-04 Thread Daniel Mikusa
- Original Message - Hi List, Below is the error we are facing while starting tomcats. SEVERE: Unable to start cluster. org.apache.catalina.tribes.ChannelException: java.net.SocketException: Not a multicast address; No faulty members identified. The address you specified is

AW: SEVERE: Unable to start cluster.

2012-04-04 Thread Thomas Rohde
-Ursprüngliche Nachricht- Von:Dhaval Jaiswal dhaval.jais...@via.com Gesendet: Mi 04.04.2012 16:41 Betreff:SEVERE: Unable to start cluster. An: Tomcat Users List users@tomcat.apache.org; CC: Shrinivas Devarkonda shrinivas.devarko...@via.com; Hi List, Below is

Re: Tomcat6 thread pool questions

2012-04-04 Thread Mark Thomas
On 04/04/2012 14:50, llow...@oreillyauto.com wrote: Greetings, I was wondering if someone could help me understand how the threadpools are handled in tomcat6. I know that a lot of the functionality was moved to executors. I set one up and using psi-Probe I could see that it was indeed

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Mark Thomas
On 04/04/2012 13:54, Hermes Flying wrote: Hi Pid, This is the configuration The following entry is in server.xml Resource name=jdbc_GENERIS_RS auth=Container type=javax.sql.DataSource driverClassName=org.h2.Driver

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
Which is indicating that the application deployed to /GeneralApplication is creating a thread named H2 Log Writer GENERICAPPLICATION and never stopping it. I do not believe that this would be associated with the pool created by Tomcat as that would be created as a global resource available to

Re: jdbc pool properties

2012-04-04 Thread Filip Hanik Mailing Lists
There are some databases that do go in and periodically kill off connections, aside from the Tomcat settings. you may want to explore the maxAge option for this, as we can disconnect and create new connections before the DB does kills it as long lived - Original Message - From: Barry

Re: [JDBC Pool] PoolCleaner creates some sort of memory

2012-04-04 Thread Filip Hanik Mailing Lists
I'll take a look at the test failures, but yes you can ignore them. Tomcat 7.0.27 will have the fix included, about to be released shortly building it is easy, builds with both maven and ant Filip - Original Message - From: Michael Osipov michael.osi...@siemens.com To: Tomcat Users

Bug in Tomcat AJP Connector?

2012-04-04 Thread Ofer Israeli
Hi all, We have recently witnessed a strange situation. Our Tomcat (6.0.35) listens on 2 ports: 8080 and 8009, handling HTTP and AJP respectively. At some point in time we found that Apache is replying HTTP 503s to all clients and a look at netstat showed that indeed Apache could not

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
Hi Mark,thank you for your reply. 2 questions related your mail 1)I don't understand what you are saying here: but as of 7.0.12 yo an set the closeMethod for a resource that should be the name of a zero atg method to call to shut down the resource. Could you please explain or send a link to a

Re: Tomcat6 thread pool questions

2012-04-04 Thread Filip Hanik Mailing Lists
In Tomcat 6, the default thread pool ignores minSpareThreads, but if you use Executor name=threadpool... and then Connector executor=threadpool it will respect that value and you will see the expected the results Filip - Original Message - From: llow...@oreillyauto.com To:

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Filip Hanik Mailing Lists
just set minIdle=0 and enable the eviction process to take care of it. Filip - Original Message - From: Hermes Flying flyingher...@yahoo.com To: Daniel Mikusa dmik...@vmware.com Cc: users@tomcat.apache.org Sent: Wednesday, April 4, 2012 9:53:30 AM Subject: Re: Discrepancy between

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
But if I set 'minIdle=0' all the connections would close imediatelly, right? So why would I need a connection pool in the first place if I do this? From: Filip Hanik Mailing Lists devli...@hanik.com To: Tomcat Users List users@tomcat.apache.org Sent:

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Filip Hanik Mailing Lists
no, that would happen if you set maxIdle=0, not minIdle - Original Message - From: Hermes Flying flyingher...@yahoo.com To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, April 4, 2012 10:45:24 AM Subject: Re: Discrepancy between Tomcat's connection pool and tomcat's

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
Ok. So how is the configuration parameter fixing my problem? Would you please explain this to me to undestand how this works? From: Filip Hanik Mailing Lists devli...@hanik.com To: Tomcat Users List users@tomcat.apache.org; Hermes Flying

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Filip Hanik Mailing Lists
The real fix to your problem should have been Resource type=javax.sql.DataSource closeMethod=close .../ (available in Tomcat 7) If I understand the problem you're having is two fold 1. you see reports about memory leaks started a thread named [H2 File Lock Watchdog you should be able to fix

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Mark Thomas
On 04/04/2012 17:14, Hermes Flying wrote: Hi Mark,thank you for your reply. 2 questions related your mail 1)I don't understand what you are saying here: but as of 7.0.12 yo an set the closeMethod for a resource that should be the name of a zero atg method to call to shut down the resource.

Re: Bug in Tomcat AJP Connector?

2012-04-04 Thread Mark Thomas
On 04/04/2012 17:02, Ofer Israeli wrote: Hi all, We have recently witnessed a strange situation. Our Tomcat (6.0.35) listens on 2 ports: 8080 and 8009, handling HTTP and AJP respectively. At some point in time we found that Apache is replying HTTP 503s to all clients and a look at netstat

Re: Tomcat6 thread pool questions

2012-04-04 Thread llowder
Forgive me if my first message was unclear. I have an executor and an AJP connector set up. Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=300 minSpareThreads=30/ Connector executor=tomcatThreadPool port=8009 protocol=org.apache.coyote.ajp.AjpProtocol

Re: Tomcat6 - Context - aliases

2012-04-04 Thread Léa Massiot
Ok. So, I found a solution, if I can call that a solution. - I created a file an_alias_1.xml in /etc/tomcat6/Catalina/localhost/ (the OS being Debian Squeeze). - Here are the contents of this an_alias_1.xml file: Context path=/an_alias_1 docBase=/home/d1 crossContext=true / - This

RE: Tomcat6 - Context - aliases

2012-04-04 Thread Caldarale, Charles R
From: Léa Massiot [mailto:lmhe...@orange.fr] Subject: Re: Tomcat6 - Context - aliases Ok. So, I found a solution, if I can call that a solution. How about a much easier solution: install Tomcat 7. Easier to configure, faster, and more secure. Stop making your life difficult. - Chuck

Re: SEVERE: Unable to start cluster.

2012-04-04 Thread Dhaval Jaiswal
Thanks to all for sharing info. I will test it come back to you. Also want to know that after starting session replication there will be a huge logging in catalina.out for session information. How to minimize it ? Below are the logs of catalina.out. As per the log it shows that it has added

Re: Tomcat6 - Context - aliases

2012-04-04 Thread Konstantin Kolinko
2012/4/4 Léa Massiot lmhe...@orange.fr: Ok. So, I found a solution, if I can call that a solution. - I created a file an_alias_1.xml in /etc/tomcat6/Catalina/localhost/ (the OS being Debian Squeeze). - Here are the contents of this an_alias_1.xml file: Context path=/an_alias_1

Re: SEVERE: Unable to start cluster.

2012-04-04 Thread Mark Eggers
Comments inline and surrounded by === COMMENT = - Original Message - From: Dhaval Jaiswal dhaval.jais...@via.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Wednesday, April 4, 2012 12:12 PM Subject: Re: SEVERE: Unable to start cluster. T hanks to

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
Thank you for your explanation. I will take this to H2 but I have one more question on your comment:   Nope. It is a memory leak in the JDBC driver which is why Tomcat is reporting it. When a web application shuts down, nothing should be retaining a reference to the web application class loader.

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
Hi,   I am not sure how Resource type=javax.sql.DataSource closeMethod=close .../ helps (I am using Tomcat 7) Also: you should be able to fix this by setting initialSize0 so that the thread is started using the main class loader when tomcat starts, not when an app starts using the pool But how

request.login() not persistent

2012-04-04 Thread Jerry Malcolm
I am using TC 7.0 on a couple of servers. I have id/pw fields and a 'login' button at the top of all guest pages on my site. If the user clicks the login, it goes to a guest page that does the request.login() method call and then redirects to a protected page. If the login fails, the normal

Re: Is SSL keystore with AJP connector possible?

2012-04-04 Thread mandg
Hi Ryan- in my case, it turned that the SSL settings were configured in another part of the application - HP Service Center in this case. The server.xml file is still using the AJP connector. I know that doesn't help you much here though unless you're using the same app. -- View this message in

Re: Eclipse Project Files for Tomcat 7

2012-04-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 3/31/12 8:40 AM, Mark Thomas wrote: /res/ide-support/eclipse Also, as I've discovered: $ echo base.path=[path where downloads will be put] build.properties $ ant ide-eclipse Then, go to Preferences | Java/Build Path/Classpath Variables

Re: request.login() not persistent

2012-04-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jerry, On 4/4/12 5:31 PM, Jerry Malcolm wrote: I am using TC 7.0 on a couple of servers. 7.0.what? There have been a bunch of questions about authentication and authorization lately involving a (somewhat) recent change when resources aren't

Re: request.login() not persistent

2012-04-04 Thread Jerry Malcolm
Chris, Good question on the version. But I'm not sure how to tell. Both servers are in a directory named Tomcat 7.0. But I can't remember if that was the default or if I forced that name. Where can I look in the install directory to find the version? I do know that I installed both servers