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

2012-04-04 Thread Leigh Anderson
Hi Olivier, I'm not able to run this with tomcat6 as it's a Servlet 3.0 project. I'll get the issue created -- should have some time next week to put together a sample project. Thanks, Leigh On 04/04/2012 11:36, "Olivier Lamy" wrote: >Hello, >Looks to be an issue (does that work with tomcat6:

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 ar

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 protec

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 Variab

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 c

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 j_se

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 helps (I am using Tomcat 7) Also: >>you should be able to fix this by setting initialSize>0 so that the thread is >>started using the main class loader when tomcat starts, not when an app starts using the pool But how was I supposed to know this? I will try it and let

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 loa

Re: SEVERE: Unable to start cluster.

2012-04-04 Thread Mark Eggers
Comments inline and surrounded by === COMMENT = - Original Message - > From: Dhaval Jaiswal > To: Tomcat Users List > Cc: > Sent: Wednesday, April 4, 2012 12:12 PM > Subject: Re: SEVERE: Unable to start cluster. > >T hanks to all for sharing info. I will test it &

Re: Tomcat6 - Context - aliases

2012-04-04 Thread Konstantin Kolinko
2012/4/4 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

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 mem

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: 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" / > - Thi

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. When I watch it with psi-Probe, I can see that it is indeed killing idle threads as I expect it to. What I am not seeing is the minSpareThreads attribute being honored as I expect it to, though it ma

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 ne

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 resour

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 (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 this by setting initialSize>0 so that the thread is starte

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 To: Tomcat Users List ; Hermes Flying Sent: Wednesday, April 4, 2012 7:50 PM Subject: Re: Discrepa

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" > To: "Tomcat Users List" > Sent: Wednesday, April 4, 2012 10:45:24 AM > Subject: Re: Discrepancy between Tomcat's connection pool and tomcat's report > on memory leaks > > But if I set

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 To: Tomcat Users List Sent: Wednesday, April 4, 2012 7:28 PM Subject: Re: Discr

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" > To: "Daniel Mikusa" > Cc: users@tomcat.apache.org > Sent: Wednesday, April 4, 2012 9:53:30 AM > Subject: Re: Discrepancy between Tomcat's connection pool and tomc

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 and then From: llow...@oreillyauto.com > To: users@tomcat.apache.org > Sent: Wednesday, April 4, 2012 7:50:24 AM > Subject: Tomcat6 thread pool questions > > > Greetings, > > I was wondering if someone could help me und

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

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 communic

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" > To: "Tomcat Users List" > Sent: Friday, M

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: "Ba

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 resourc

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 > > type="javax.sql.DataSource" driverClassName="org.h2.Driver" > url="jdbc:h2:file:/opt/en/repos/tomcat/webapps/GeneralApplication/db/internaldatabase;SCHEMA=genericschema" >

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 i

AW: SEVERE: Unable to start cluster.

2012-04-04 Thread Thomas Rohde
-Ursprüngliche Nachricht- Von:Dhaval Jaiswal Gesendet: Mi 04.04.2012 16:41 Betreff:SEVERE: Unable to start cluster. An: Tomcat Users List ; CC: Shrinivas Devarkonda ; > Hi List, > > Below is the error we are facing while starting tomcats. > > SEVERE: Unable to

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 specifi

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 t

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

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

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 > yo

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" timeBetweenEvictionRunsMill

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 minSpareThread

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   And the following entry is under $TOMCAT_HOME/conf/context.xml   Concerning your other questions: 1) Yes I could shut down the database manually but I would like to do it as a last resort if this issue is something tha

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   And the following entry is under $TOMCAT_HOME/conf/context.xml   Do you need more details than these? From: Daniel Mikusa To: Tomcat Users List Sent: Wednesday, April 4, 2012 3:35 PM Subject: Re: Discrep

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: 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: > > > > >

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 o

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 configur

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 applicati

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 | http://linkedin.

Re: Tomcat 7 Maven plugin: deploy fails with tomcatManager status code:401, ReasonPhrase:Unauthorized

2012-04-04 Thread Olivier Lamy
Hello, Have a look here: http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html 2012/4/4 Matt Munz : > Olivier, > >  I made that change to settings.xml and now I'm getting a different error. > [1]  How can I find out where this plugin is stored?  Perhaps there is a > problem with