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

2012-04-05 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 ol...@apache.org wrote: Hello, Looks to be an issue (does that work

RE: Bug in Tomcat AJP Connector?

2012-04-05 Thread Ofer Israeli
Mark Thomas wrote: 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

Re: Eclipse Project Files for Tomcat 7

2012-04-05 Thread Konstantin Kolinko
2012/4/5 Christopher Schultz ch...@christopherschultz.net: Mark, On 3/31/12 8:40 AM, Mark Thomas wrote: /res/ide-support/eclipse Also, as I've discovered: There is http://tomcat.apache.org/tomcat-7.0-doc/building.html#Building_with_Eclipse Maybe it is not so easy to find (and I forgot

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

2012-04-05 Thread Mark Thomas
On 04/04/2012 21:59, Hermes Flying wrote: 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

Re: request.login() not persistent

2012-04-05 Thread Jerry Malcolm
Ok, finally located the zip in my downloads folder. I'm currently running 7.0.23. But I'm still curious about how to find out the version if I hadn't been able to locate the zip. Is the version buried somewhere in the install folder? Jerry On Wed, Apr 4, 2012 at 11:44 PM, Jerry Malcolm

Re: request.login() not persistent

2012-04-05 Thread Konstantin Kolinko
2012/4/5 Jerry Malcolm 2ndgenfi...@gmail.com: Ok, finally located the zip in my downloads folder.  I'm currently running 7.0.23.  But I'm still curious about how to find out the version if I hadn't been able to locate the zip.  Is the version buried somewhere in the install folder?

Re: Problem with shutting down tomcat5.5.29

2012-04-05 Thread Konstantin Kolinko
2012/4/5 Petr Hracek phrac...@gmail.com: Dear all, I now that I am using pretty old version of tomcat5, but I have a tricky problem. On the server is run apache2.2.21 and tomcat5 together. tomcat5 is used only as servlet container and not web server. Both are connected together over AJP1.3

Re: request.login() not persistent

2012-04-05 Thread Konstantin Kolinko
2012/4/5 Jerry Malcolm 2ndgenfi...@gmail.com: 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

Re: Tomcat6 - Context - aliases

2012-04-05 Thread Léa Massiot
Konstantin Kolinko wrote You should remove the path attribute when Context is defined in an XML file. The name of the xml file itself specifies the path, not the attribute. Indeed. Thank you. Best regards. -- View this message in context:

Re: Problem with shutting down tomcat5.5.29

2012-04-05 Thread Petr Hracek
What I see in the start.log file is: 2012-04-05 15:28:04,557 [main] INFO org.apache.coyote.http11.Http11BaseProtocol - Initializing Coyote HTTP/1.1 on http-8080 2012-04-05 15:28:04,560 [main] INFO org.apache.catalina.startup.Catalina - Initialization processed in 1062 ms 2012-04-05 15:28:04,727

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

2012-04-05 Thread Dhaval Jaiswal
Thanks for the info. We are using sticky sessions only with BackupManager. See We have the current setup. 1 Apache + sticky sessions with mod_ajp proxy balancer in httpd.conf + 10 tomcats. currently if one of our tomcat goes down the User sessions goes down, I need to stop this quickly somehow

Re: Tomcat6 - Context - aliases

2012-04-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Léa, On 4/4/12 2:28 PM, Léa Massiot wrote: Context path=/an_alias_1 docBase=/home/d1 crossContext=true / Do you really need crossContext=true here? - This Configuration Descriptor is automatically deployed once saved. - I suppressed the

Re: Eclipse Project Files for Tomcat 7

2012-04-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 4/5/12 6:50 AM, Konstantin Kolinko wrote: There is http://tomcat.apache.org/tomcat-7.0-doc/building.html#Building_with_Eclipse Maybe it is not so easy to find (and I forgot about ant ide-eclipse when you asked your question).

Re: SEVERE: Unable to start cluster.

2012-04-05 Thread Dhaval Jaiswal
I have tested the below cluster manager; as per the instruction i have changed. However, when we try to deploy the apps on tomcat it was throwing error that WARNING: Unable to send map start message. Apr 5, 2012 1:37:12 PM org.apache.catalina.ha.session.BackupManager start SEVERE: Unable to start

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

2012-04-05 Thread Mark Thomas
On 05/04/2012 14:57, Dhaval Jaiswal wrote: Thanks for the info. We are using sticky sessions only with BackupManager. See We have the current setup. 1 Apache + sticky sessions with mod_ajp proxy balancer in httpd.conf + 10 tomcats. currently if one of our tomcat goes down the User

Re: Problem with shutting down tomcat5.5.29

2012-04-05 Thread Konstantin Kolinko
2012/4/5 Petr Hracek phrac...@gmail.com: What I see in the start.log file is: 2012-04-05 15:28:04,557 [main] INFO org.apache.coyote.http11.Http11BaseProtocol - Initializing Coyote HTTP/1.1 on http-8080 2012-04-05 15:28:04,560 [main] INFO org.apache.catalina.startup.Catalina - Initialization

500 HTTP-status forwarding broken (JSP rendering + Exception occurence)

2012-04-05 Thread manuel aldana
Inside web.xml I defined error-page500..., so 500-status is resolving to JSP error pages. I get inconsistent behaviour when an Exception occurs during JSP rendering. 1) JSP syntax error (e.g. broken XML): === - 500 status is set correctly - forward to jsp-error page is done correctly and 500

Re: Bug in Tomcat AJP Connector?

2012-04-05 Thread Konstantin Kolinko
2012/4/5 Ofer Israeli of...@checkpoint.com: Mark Thomas wrote: On 04/04/2012 17:02, Ofer Israeli wrote: Once you have an OOME all bets are off. The JVM needs to be restarted. There is no guarantee of reliable operation after an OOME. Mark Hi Mark, I agree that there in such a situation

Re: Bug in Tomcat AJP Connector?

2012-04-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 4/5/12 11:57 AM, Konstantin Kolinko wrote: 1. Tomcat does not start JVM thus it cannot restart it. You need some external tool or script or admin to perform monitoring and (re)starts. Asking Tomcat to restart itself after OOME

Re: 500 HTTP-status forwarding broken (JSP rendering + Exception occurence)

2012-04-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Manuel, On 4/5/12 11:42 AM, manuel aldana wrote: Inside web.xml I defined error-page500..., so 500-status is resolving to JSP error pages. I get inconsistent behaviour when an Exception occurs during JSP rendering. 1) JSP syntax error (e.g.

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

2012-04-05 Thread Pid
On 04/04/2012 16:53, Hermes Flying wrote: 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

Re: Bug in Tomcat AJP Connector?

2012-04-05 Thread Konstantin Kolinko
2012/4/5 Christopher Schultz ch...@christopherschultz.net: On 4/5/12 11:57 AM, Konstantin Kolinko wrote: 1. Tomcat does not start JVM  thus it cannot restart it. You need some external tool or script or admin to perform monitoring and (re)starts. Asking Tomcat to restart itself after OOME

Re: SEVERE: Unable to start cluster.

2012-04-05 Thread Pid
On 05/04/2012 15:13, Dhaval Jaiswal wrote: I have tested the below cluster manager; as per the instruction i have changed. However, when we try to deploy the apps on tomcat it was throwing error that WARNING: Unable to send map start message. Apr 5, 2012 1:37:12 PM

Re: SEVERE: Unable to start cluster.

2012-04-05 Thread Dhaval Jaiswal
pfa server.xml The same i am using for all the 10 tomcats. On Thu, Apr 5, 2012 at 9:55 PM, Pid p...@pidster.com wrote: On 05/04/2012 15:13, Dhaval Jaiswal wrote: I have tested the below cluster manager; as per the instruction i have changed. However, when we try to deploy the apps on

RE: Bug in Tomcat AJP Connector?

2012-04-05 Thread Filip Hanik (mailing lists)
-Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Thursday, April 05, 2012 10:18 AM To: Tomcat Users List Subject: Re: Bug in Tomcat AJP Connector? 2012/4/5 Christopher Schultz ch...@christopherschultz.net: On 4/5/12 11:57 AM, Konstantin Kolinko

Re: Bug in Tomcat AJP Connector?

2012-04-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 4/5/12 12:18 PM, Konstantin Kolinko wrote: 2012/4/5 Christopher Schultz ch...@christopherschultz.net: On 4/5/12 11:57 AM, Konstantin Kolinko wrote: 1. Tomcat does not start JVM thus it cannot restart it. You need some external

[ANN] Apache Tomcat 7.0.27 released

2012-04-05 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.27 This release is includes significant new features as well as a number of bug fixes compared to version 7.0.26. The notable changes include: * Support for the WebSocket protocol (RFC6455). Both streaming and

Re: 500 HTTP-status forwarding broken (JSP rendering + Exception occurence)

2012-04-05 Thread manuel aldana
Am 05.04.12 18:07, schrieb Christopher Schultz: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Manuel, On 4/5/12 11:42 AM, manuel aldana wrote: Inside web.xml I definederror-page500..., so 500-status is resolving to JSP error pages. I get inconsistent behaviour when an Exception occurs during

Connector warning message with native libraries

2012-04-05 Thread Mark Eggers
Folks: I'm seeing a warning in my logs when I use request.secret for the AJP connector when I load the APR native libraries. The warning is: WARNING: [SetAllPropertiesRule]{Server/Service/Connector}   Setting property 'request.secret' to 'somesillypassword' did not find a   matching property.

Re: 500 HTTP-status forwarding broken (JSP rendering + Exception occurence)

2012-04-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Manuel, On 4/5/12 2:47 PM, manuel aldana wrote: Inside JSP we have a backing model, which contains the dynamic data to be displayed inside JSP. Itself the model is held quite simple, but due to programming errors it can happen, that

Re: SEVERE: Unable to start cluster.

2012-04-05 Thread Mark Eggers
Response at the bottom: /mde/ From: Dhaval Jaiswal dhaval.jais...@via.com To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, April 5, 2012 10:28 AM Subject: Re: SEVERE: Unable to start cluster. pfa server.xml The same i am using for all the 10

Re: Bug in Tomcat AJP Connector?

2012-04-05 Thread Ofer Israeli
Y On 5 באפר 2012, at 18:58, Konstantin Kolinko knst.koli...@gmail.com wrote: 2012/4/5 Ofer Israeli of...@checkpoint.com: Mark Thomas wrote: On 04/04/2012 17:02, Ofer Israeli wrote: Once you have an OOME all bets are off. The JVM needs to be restarted. There is no guarantee of reliable

7.0 doc 404

2012-04-05 Thread Jesse Farinacci
http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail:

Re: Problem with shutting down tomcat5.5.29

2012-04-05 Thread Terence M. Bandoian
On 1:59 PM, Konstantin Kolinko wrote: 2012/4/5 Petr Hracekphrac...@gmail.com: What I see in the start.log file is: 2012-04-05 15:28:04,557 [main] INFO org.apache.coyote.http11.Http11BaseProtocol - Initializing Coyote HTTP/1.1 on http-8080 2012-04-05 15:28:04,560 [main] INFO

Re: 500 HTTP-status forwarding broken (JSP rendering + Exception occurence)

2012-04-05 Thread Terence M. Bandoian
On 1:59 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Manuel, On 4/5/12 11:42 AM, manuel aldana wrote: Inside web.xml I definederror-page500..., so 500-status is resolving to JSP error pages. I get inconsistent behaviour when an Exception occurs during JSP

Re: request.login() not persistent

2012-04-05 Thread Jerry Malcolm
Konstantin, I was using: META HTTP-EQUIV=Refresh CONTENT=0; URL=/userhome I changed it per your comment to: % response.sendRedirect( response.encodeRedirectURL( /userhome )); % It's working now, but I have no clue what's going on. I guess I should just be happy and move on. But I am

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

2012-04-05 Thread Terence M. Bandoian
On 1:59 PM, Pid wrote: If you define the DataSource in GlobalNamingResources the pool will be started and stopped with the Tomcat lifecycle. Applications have their own lifecycle inside Tomcat, they are started after Tomcat (obviously) and stopped before Tomcat stops (also obviously). This

Re: Connector warning message with native libraries

2012-04-05 Thread Mark Eggers
Replying to my own question. See = COMMENT - Original Message - From: Mark Eggers its_toas...@yahoo.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Thursday, April 5, 2012 12:40 PM Subject: Connector warning message with native libraries

Re: Bug in Tomcat AJP Connector?

2012-04-05 Thread Konstantin Kolinko
2012/4/6 Ofer Israeli of...@checkpoint.com: Hi Konstantin, I agree regarding the OOM bringing TC to a state where it must be restored, but my point remains: if there is code that handles catching this exception and terminating the thread, why not terminate gracefully by closing the

Re: SEVERE: Unable to start cluster.

2012-04-05 Thread Pid
On 05/04/2012 18:28, Dhaval Jaiswal wrote: pfa server.xml Sorry, not going to wade through all of those comments until you remove them from the XML. p -- [key:62590808] signature.asc Description: OpenPGP digital signature

Re: SEVERE: Unable to start cluster.

2012-04-05 Thread Pid
On 05/04/2012 22:01, Mark Eggers wrote: Response at the bottom: /mde/ From: Dhaval Jaiswal dhaval.jais...@via.com To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, April 5, 2012 10:28 AM Subject: Re: SEVERE: Unable to start cluster. pfa

Re: Bug in Tomcat AJP Connector?

2012-04-05 Thread Pid
On 05/04/2012 22:17, Ofer Israeli wrote: Y On 5 באפר 2012, at 18:58, Konstantin Kolinko knst.koli...@gmail.com wrote: 2012/4/5 Ofer Israeli of...@checkpoint.com: Mark Thomas wrote: On 04/04/2012 17:02, Ofer Israeli wrote: Once you have an OOME all bets are off. The JVM needs to be

Re: 7.0 doc 404

2012-04-05 Thread Konstantin Kolinko
2012/4/6 Jesse Farinacci jie...@gmail.com: http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html It is fixed now. Thank you. (The live site updates itself once an hour, so you'll have to wait a while). Best regards, Konstantin Kolinko

RE: request.login() not persistent

2012-04-05 Thread Caldarale, Charles R
From: Jerry Malcolm [mailto:2ndgenfi...@gmail.com] Subject: Re: request.login() not persistent I was using: META HTTP-EQUIV=Refresh CONTENT=0; URL=/userhome I changed it per your comment to: % response.sendRedirect( response.encodeRedirectURL( /userhome )); % It's like the logged on

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

2012-04-05 Thread Matt Munz
Olivier, OK. Thanks. So with the 2.0-SNAPSHOT version I am getting the same error (HTTP 401). [1] Interestingly, the plugin output makes it look like the WAR file was uploaded but when I visit the Manager, I can see that it is not deployed. Do you have any thoughts about what I can do

Re: jdbc pool properties

2012-04-05 Thread S Ahmed
Daniel, Your suggestion seems to have worked so far, thanks! testOnBorrow=true and validationQuery=SELECT 1 On Wed, Apr 4, 2012 at 8:46 AM, Daniel Mikusa dmik...@vmware.com wrote: - Original Message - My db connections seem to be lost after an extended period of inactivity

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

2012-04-05 Thread Terence M. Bandoian
On 1:59 PM, Terence M. Bandoian wrote: On 1:59 PM, Pid wrote: If you define the DataSource in GlobalNamingResources the pool will be started and stopped with the Tomcat lifecycle. Applications have their own lifecycle inside Tomcat, they are started after Tomcat (obviously) and stopped