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 al

Re: Eclipse Project Files for Tomcat 7

2012-04-05 Thread Konstantin Kolinko
2012/4/5 Christopher Schultz : > > 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 about "ant ide-eclipse"

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 re

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 <2ndge

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? > cat

Re: Problem with shutting down tomcat5.5.29

2012-04-05 Thread Konstantin Kolinko
2012/4/5 Petr Hracek : > 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 interface. >

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 t

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: http://tomcat.10.n6.nabble.com/Tomcat6-Contex

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 [ma

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 su

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 questi

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 Us

Re: Problem with shutting down tomcat5.5.29

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

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

2012-04-05 Thread manuel aldana
Inside web.xml I defined 500..., 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 returned t

Re: Bug in Tomcat AJP Connector?

2012-04-05 Thread Konstantin Kolinko
2012/4/5 Ofer Israeli : > 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 the JV

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 OOM

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 500..., 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 XM

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 Tom

Re: Bug in Tomcat AJP Connector?

2012-04-05 Thread Konstantin Kolinko
2012/4/5 Christopher Schultz : > > 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 would be like exp

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 org.apache.catalina.

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 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 tomcat it was >

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 : > > > > On 4/5/12 11:57 AM, Konstantin Kolinko wrote: > >> 1. Tom

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

[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 messa

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 defined500..., so 500-status is resolving to JSP error pages. I get inconsistent behaviour when an Exception occurs during JSP renderi

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. I'

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 null-referen

Re: SEVERE: Unable to start cluster.

2012-04-05 Thread Mark Eggers
Response at the bottom: /mde/ > > From: Dhaval Jaiswal >To: Tomcat Users List >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 tomcats. > > > > >On Thu, Apr 5, 201

Re: Bug in Tomcat AJP Connector?

2012-04-05 Thread Ofer Israeli
Y On 5 באפר 2012, at 18:58, "Konstantin Kolinko" wrote: > 2012/4/5 Ofer Israeli : >> 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. >>>

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: users-unsubscr...@tomcat.apache.or

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

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 defined500..., so 500-status is resolving to JSP error pages. I get inconsistent behaviour when an Exception occurs during JSP rendering. 1)

Re: request.login() not persistent

2012-04-05 Thread Jerry Malcolm
Konstantin, I was using: 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 apparently missing something major here, and I want

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 is

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 > To: Tomcat Users List > Cc: > Sent: Thursday, April 5, 2012 12:40 PM > Subject: Connector warning message with native libraries > > Folks: > > I'm seeing a warning in m

Re: Bug in Tomcat AJP Connector?

2012-04-05 Thread Konstantin Kolinko
2012/4/6 Ofer Israeli : > 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 > listening socket befo

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 >> To: Tomcat Users List >> Sent: Thursday, April 5, 2012 10:28 AM >> Subject: Re: SEVERE: Unable to start cluster. >> >> >> pfa server.xml >> >> The same

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" wrote: > >> 2012/4/5 Ofer Israeli : >>> 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

Re: 7.0 doc 404

2012-04-05 Thread Konstantin Kolinko
2012/4/6 Jesse Farinacci : > 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: > > I changed it per your comment to: > <% response.sendRedirect( response.encodeRedirectURL( "/userhome" )); %> > It's like the logged on state was not saved in the session object

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 t

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 wrote: > > > - Original Message - > > My db connections seem to be lost after an extended period of > > inactivity > > There cou

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 befor