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 sessionCookie

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 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: 403 /403.html in my code I have if (someCondition) {

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 for and see if that will

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 ind

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, /locateaccou

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 * wrote: > On 31 Dec 2011, at 16:14, Mike Wertheim wrote: > >> I'm using the APR Connector. >> >> Here's my server.xml: >> >> >> >> >>  > SSLEngine="on" /> >>   >>  > className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" >> /> > > No memor

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? > > connectionTimeout="2" >redirectPort="8443" >URIEncoding="UTF-8" >compression="on" > > compressableMimeType="text/html,text/plai

Re: Servlet Mapping w/ Error Page

2011-12-31 Thread Konstantin Kolinko
2011/12/31 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: > > > 403 > /403.html > > > in my code I have > > if (someCondition) { >    res.sendError(HttpServle

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 wrote: > I'm using the APR Connector. > > Here's my server.xml: > > > > > SSLEngine="on" /> > > className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" > /> No memory leak prevention listeners? > > type="org.apac

Re: File leak in 7.0.23?

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

Re: File leak in 7.0.23?

2011-12-31 Thread Pid *
On 31 Dec 2011, at 20:03, Mike Wertheim 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 review all of the

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= > ? No effect. > Also, what does > netstat -pan | grep > have to say ? Nothing unusual (i.e. stuff I wouldn't expect) or different from the other instances: Database connections, listening on 8080, etc. It loo

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 7.0.2

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: 403 /403.html in my code I have if (someCondition) { res.sendError(HttpServletResponse.SC_FORBIDDEN); return; } When this cod

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 th

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 CONFI

Re: File leak in 7.0.23?

2011-12-31 Thread Pid *
On 31 Dec 2011, at 18:19, 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 > horrible death on Tomcat 7.0.23. It would seem that a bug was > introduced in either 7.0.22 or 7.0.23. There

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

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: 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, wrote: > >> Matthew Tyson 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 byp

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

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 and see if that will help: http://tomcat.apache.org/tomcat-7.0-

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 wrote: > Jerry Malcolm wrote: > >> Thanks, Tim. But that wasn'

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: Odd NIO connector behavior

2011-12-31 Thread Matthew Tyson
On Wed, Dec 28, 2011 at 1:04 AM, wrote: > Matthew Tyson 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? > > >tcpdump seems to confirm the same.

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 = /order/jsp/guest/cart.js

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: On Sat, Dec 31, 2011 at 5:39 AM, Pid wrote: > 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

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 dif

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

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

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 wrote: > >> On 29/12/2011 17:27, Matthew Tyson wrote: >>> On Wed, Dec 28, 2011 at 6:22 PM, Matthew Tyson >>> wrote: >>> On Wed, Dec 28, 2011 at 8:58 AM, Stefan Mayr >> wrote: > Am 28.12.2011 10:04, sch

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? > > connectionTimeout="2" >redirectPort="8443" >URIEncoding="UTF-8" >compression="on" > > compressableMimeType="text/html,text/plai

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 maxThre

Re: File leak in 7.0.23?

2011-12-31 Thread Janne Jalkanen
> Which Connector are you using? > What is the minimum that is required to reproduce the issue? Wish I knew. This is from our production cluster, so I'm a bit hesitant to start experimenting with it. However, there was no configuration change between 7.0.20 and 7.0.23, I just shut down t

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 w

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 th

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

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: Question about Tomcat Windows service configuration

2011-12-31 Thread Konstantin Kolinko
2011/12/31 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 whe

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 b