Question about Tomcat Windows service configuration

2011-12-31 Thread Naveen Alex
Hi, I am stuck with an issue on Tomcat 6.x version. I have two folder under /webapps/ folder called appstore and 'static-content. appstore has a UI which will write files to a folder in static-content directory under webapps. Everything works fine when i run tomcat as a standalone version but

Re: Question about Tomcat Windows service configuration

2011-12-31 Thread Konstantin Kolinko
2011/12/31 Naveen Alex naveen.a...@gmail.com: Hi, I am stuck with an issue on Tomcat 6.x version. I have two folder under /webapps/ folder called appstore and 'static-content. appstore has a UI which will write files to a folder in static-content directory under webapps. Everything works

File leak in 7.0.23?

2011-12-31 Thread Janne Jalkanen
Hi all! I am seeing odd behaviour with 7.0.23, with the tomcat user's open file count increasing slowly, but consistently. Two other instances running the exact same codebase on identical hardware, BUT with Tomcat 7.0.20, are not exhibiting the same behaviour. 7.0.20 is rock solid, 7.0.23 dies

Re: File leak in 7.0.23?

2011-12-31 Thread Pid
On 31/12/2011 13:06, Janne Jalkanen wrote: Hi all! I am seeing odd behaviour with 7.0.23, with the tomcat user's open file count increasing slowly, but consistently. Two other instances running the exact same codebase on identical hardware, BUT with Tomcat 7.0.20, are not exhibiting the

Re: single large tomcat or multiple tomcats

2011-12-31 Thread Pid
On 30/12/2011 20:42, Christopher Schultz wrote: Ahmed, On 12/30/11 2:57 PM, S Ahmed wrote: I know with other frameworks (like python/rails) people tend to run multiple instaces of the web server and round robin requests to each using something like haproxy. Is this known in the tomcat

Re: Merging multiple XML File in Tomcat

2011-12-31 Thread Pid
On 30/12/2011 11:33, Lau Eng Huat wrote: Hi guys, Is it possible to merge multiple xml file into a single xml file in tomcat. Yes and no. It is not possible to split web.xml into separate parts and subsequently merge them. It is possible (in Servlet 3.0) to create web-fragment.xml files

Re: File leak in 7.0.23?

2011-12-31 Thread Janne Jalkanen
Which Connector are you using? Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 URIEncoding=UTF-8 compression=on

Re: help analyzing thread dump for Tomcat 7.0.23 issue

2011-12-31 Thread Pid
On 30/12/2011 02:01, Mike Wertheim wrote: I have an app that runs on Tomcat 7.0.21 and APR 1.4.7 just fine. The app serves both SSL and non-SSL traffic. SSL traffic makes up roughly 1% of the overall traffic. The Connectors for SSL and non-SSL both use the default value (200) for

Re: File leak in 7.0.23?

2011-12-31 Thread Pid
On 31/12/2011 13:38, Janne Jalkanen wrote: Which Connector are you using? Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 URIEncoding=UTF-8 compression=on

Re: Odd NIO connector behavior

2011-12-31 Thread Pid
On 29/12/2011 19:22, Matthew Tyson wrote: On Thu, Dec 29, 2011 at 11:07 AM, Pid p...@pidster.com wrote: On 29/12/2011 17:27, Matthew Tyson wrote: On Wed, Dec 28, 2011 at 6:22 PM, Matthew Tyson matthewcarlty...@gmail.comwrote: On Wed, Dec 28, 2011 at 8:58 AM, Stefan Mayr

Re: 403 jsp - display required roles

2011-12-31 Thread Pid
On 29/12/2011 08:43, Jürgen Jakobitsch wrote: hi, i have a custom 403 error page. on that page i'd like to display the securityConstraints that apply to the requested resource. example : i have a securityConstraint in my web.xml that says that only users with role X are allowed to

Re: Database Connection Neteban DataSource

2011-12-31 Thread Pid
On 29/12/2011 05:45, Lau Eng Huat wrote: Hi tomcat experts, I'm having this problem with the mysql connection in tomcat using netbeans. I'm always having a exclamation mark on the Blue World Globe in netbeans project tabs. I don't know what that means. Everytime I try to resolve the

Re: File leak in 7.0.23?

2011-12-31 Thread Janne Jalkanen
When did the problem start occurring and what else has changed? Exactly at the time when I upgraded to 7.0.23. I don't recall making any other modifications (I would've suspected them first ;-) I will try to downgrade to 7.0.22 and lower to try and see if there's a difference between Tomcat

Re: File leak in 7.0.23?

2011-12-31 Thread André Warnier
Janne Jalkanen wrote: When did the problem start occurring and what else has changed? Exactly at the time when I upgraded to 7.0.23. I don't recall making any other modifications (I would've suspected them first ;-) I will try to downgrade to 7.0.22 and lower to try and see if there's a

Re: help analyzing thread dump for Tomcat 7.0.23 issue

2011-12-31 Thread Mike Wertheim
I'm using the APR Connector. Here's my server.xml: ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener

Re: Different session id per page

2011-12-31 Thread Jerry Malcolm
Thanks, Tim. But that wasn't the problem. I've figured out what's happening. But I'm even more confused about how to move forward knowing that now. I've got a relatively simple situation. I have three pages that I am mapping to clean URLs in httpd mod_rewrite. /cart =

Re: Odd NIO connector behavior

2011-12-31 Thread Matthew Tyson
On Wed, Dec 28, 2011 at 1:04 AM, ma...@apache.org wrote: Matthew Tyson matthewcarlty...@gmail.com wrote: That's right, there is an f5 load balancer. The valve is used to keep track of whether the request was via HTTPS or not. What happens if you go direct to Tomcat and bypass the F5?

Re: Different session id per page

2011-12-31 Thread André Warnier
Jerry Malcolm wrote: Thanks, Tim. But that wasn't the problem. I've figured out what's happening. But I'm even more confused about how to move forward knowing that now. I've got a relatively simple situation. I have three pages that I am mapping to clean URLs in httpd mod_rewrite. /cart =

Re: Different session id per page

2011-12-31 Thread Jerry Malcolm
Andre, That's good news. I know less than 1% of what I need to know about mod_rewrite. So that is definitely a possibility. I'll do some digging into that. Thanks so much. Jerry On Sat, Dec 31, 2011 at 11:19 AM, André Warnier a...@ice-sa.com wrote: Jerry Malcolm wrote: Thanks, Tim.

RE: Different session id per page

2011-12-31 Thread Caldarale, Charles R
From: Jerry Malcolm [mailto:2ndgenfi...@gmail.com] Subject: Re: Different session id per page If there was a way to tell TC to use / as the path, that would work in this case. Look at the sessionCookiePath attribute for Context and see if that will help:

Re: File leak in 7.0.23?

2011-12-31 Thread Mike Wertheim
I'm not sure how useful this comment is, but... I also recently posted about an app that runs fine on Tomcat 7.0.21 and dies a slow horrible death on Tomcat 7.0.23. It would seem that a bug was introduced in either 7.0.22 or 7.0.23. On Sat, Dec 31, 2011 at 6:48 AM, André Warnier

Re: Odd NIO connector behavior

2011-12-31 Thread Mark Thomas
On 31/12/2011 16:35, Matthew Tyson wrote: On Wed, Dec 28, 2011 at 1:04 AM, ma...@apache.org wrote: Matthew Tyson matthewcarlty...@gmail.com wrote: That's right, there is an f5 load balancer. The valve is used to keep track of whether the request was via HTTPS or not. What happens if you

Re: Question about Tomcat Windows service configuration

2011-12-31 Thread Naveen Alex
Thanks for the reply. I tried that and it doesnt work. I have assigned an admin user to run the service and all the admin permissions to the webapps folder. I have the tomcat folder outside of the program files in windows. Not sure why it doesnt work. Any other suggestions? Thanks and regards,

Re: File leak in 7.0.23?

2011-12-31 Thread Janne Jalkanen
ATM my testing looks like 7.0.21 works, whereas 7.0.22 is leaky. Will continue to investigate. /Janne On Dec 31, 2011, at 20:18 , Mike Wertheim wrote: I'm not sure how useful this comment is, but... I also recently posted about an app that runs fine on Tomcat 7.0.21 and dies a slow

Re: File leak in 7.0.23?

2011-12-31 Thread Pid *
On 31 Dec 2011, at 18:19, Mike Wertheim m...@hyperreal.org wrote: I'm not sure how useful this comment is, but... I also recently posted about an app that runs fine on Tomcat 7.0.21 and dies a slow horrible death on Tomcat 7.0.23. It would seem that a bug was introduced in either 7.0.22 or

RE: Question about Tomcat Windows service configuration

2011-12-31 Thread Caldarale, Charles R
From: Naveen Alex [mailto:naveen.a...@gmail.com] Subject: Re: Question about Tomcat Windows service configuration I have the tomcat folder outside of the program files in windows. How far outside? On a local drive, or a network mounted one? - Chuck THIS COMMUNICATION MAY CONTAIN

Re: Question about Tomcat Windows service configuration

2011-12-31 Thread Naveen Alex
Hi chuck, Its on the system d drive itself. On Saturday, December 31, 2011, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Naveen Alex [mailto:naveen.a...@gmail.com] Subject: Re: Question about Tomcat Windows service configuration I have the tomcat folder outside of the

Servlet Mapping w/ Error Page

2011-12-31 Thread George Sexton
I have a servlet mapping for a page named /403.html I can invoke that URL and get a page as expected. In my deployment descriptor, I have an error mapping: error-page error-code403/error-code location/403.html/location /error-page in my code I have if (someCondition) {

Re: File leak in 7.0.23?

2011-12-31 Thread Mike Wertheim
Janne's latest email says that 7.0.22 is leaky as well. So the regression most likely happened between 7.0.21 and 7.0.22. I'm not familiar with the Tomcat code base. But I wonder how difficult it would be for someone to review all of the code changes that were checked in between 7.0.21 and

Re: File leak in 7.0.23?

2011-12-31 Thread Janne Jalkanen
What if you remove the command-line switch -Dcom.sun.management.jmxremote.port=redacted ? No effect. Also, what does netstat -pan | grep tomcat pid have to say ? Nothing unusual (i.e. stuff I wouldn't expect) or different from the other instances: Database connections, listening on 8080,

Re: File leak in 7.0.23?

2011-12-31 Thread Pid *
On 31 Dec 2011, at 20:03, Mike Wertheim m...@hyperreal.org wrote: Janne's latest email says that 7.0.22 is leaky as well. So the regression most likely happened between 7.0.21 and 7.0.22. I'm not familiar with the Tomcat code base. But I wonder how difficult it would be for someone to

Re: File leak in 7.0.23?

2011-12-31 Thread Pid *
On 31 Dec 2011, at 20:05, Janne Jalkanen janne.jalka...@ecyrd.com wrote: What if you remove the command-line switch -Dcom.sun.management.jmxremote.port=redacted ? No effect. Also, what does netstat -pan | grep tomcat pid have to say ? Nothing unusual (i.e. stuff I wouldn't expect) or

Re: help analyzing thread dump for Tomcat 7.0.23 issue

2011-12-31 Thread Pid *
On 31 Dec 2011, at 16:14, Mike Wertheim m...@hyperreal.org wrote: I'm using the APR Connector. Here's my server.xml: ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener

Re: Servlet Mapping w/ Error Page

2011-12-31 Thread Konstantin Kolinko
2011/12/31 George Sexton geor...@mhsoftware.com: I have a servlet mapping for a page named /403.html I can invoke that URL and get a page as expected. In my deployment descriptor, I have an error mapping: error-page error-code403/error-code location/403.html/location /error-page in

Re: File leak in 7.0.23?

2011-12-31 Thread Mark Thomas
On 31/12/2011 13:38, Janne Jalkanen wrote: Which Connector are you using? Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 URIEncoding=UTF-8 compression=on

Re: help analyzing thread dump for Tomcat 7.0.23 issue

2011-12-31 Thread Mike Wertheim
On Sat, Dec 31, 2011 at 12:53 PM, Pid * p...@pidster.com wrote: On 31 Dec 2011, at 16:14, Mike Wertheim m...@hyperreal.org wrote: I'm using the APR Connector. Here's my server.xml: ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN  Listener

Re: Different session id per page

2011-12-31 Thread Jerry Malcolm
Andre, In mod_rewrite it talks about setting a cookie when a rewrite rule hit occurs. But I can't find anything about back-translation of cookie paths. Was that was what you meant? Still not sure how that would work. Seems like i would need a way to tell the browser that URLs /cart,

Re: Different session id per page

2011-12-31 Thread Jerry Malcolm
Chuck, the sessionCookiePath link you referenced says that all web apps can use the same cookie path (/). That means that several independent web applications will have to share the same session object, right? I have no problem with that if that really works. Just want to confirm that I am

Re: Different session id per page

2011-12-31 Thread Rainer Jung
On 31.12.2011 18:37, Caldarale, Charles R wrote: From: Jerry Malcolm [mailto:2ndgenfi...@gmail.com] Subject: Re: Different session id per page If there was a way to tell TC to use / as the path, that would work in this case. Look at the sessionCookiePath attribute forContext and see if

Re: Servlet Mapping w/ Error Page

2011-12-31 Thread George Sexton
On 12/31/11 2:04 PM, Konstantin Kolinko wrote: 2011/12/31 George Sextongeor...@mhsoftware.com: I have a servlet mapping for a page named /403.html I can invoke that URL and get a page as expected. In my deployment descriptor, I have an error mapping: error-page error-code403/error-code

RE: Different session id per page

2011-12-31 Thread Caldarale, Charles R
From: Jerry Malcolm [mailto:2ndgenfi...@gmail.com] Subject: Re: Different session id per page the sessionCookiePath link you referenced says that all web apps can use the same cookie path (/). They can, but you don't have to use it that way. Each webapp can have its own sessionCookiePath