Re: DBCP abandoned trace - unable to understand the leak

2010-11-09 Thread sasidhar prabhakar
After changing time out value now I am getting this problem org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object On Tue, Nov 9, 2010 at 5:22 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED M

Re: NIO connecter does not work after startup normally

2010-11-09 Thread jie tang
Sorry. I don't know about the asynchronous mechanism the servlet 3.0 introduces. You may can read servlet 3.0 spec? 2010/11/9 Ben Xiong > ?I changed the call to req.startAsync() then it seems working. > > But why's that? what happend in req.startAsync(req, res) which does not > happen in req.sta

RE: web.xml cant load because of

2010-11-09 Thread Caldarale, Charles R
> From: Will Sumekar [mailto:will.sume...@gmail.com] > Subject: Re: web.xml cant load because of > However I still think tomcat could give a more > verbose error messages. You missed the fact that it's not Tomcat generating the error messages, nor is the invalid setting anything Tomcat look

Re: web.xml cant load because of

2010-11-09 Thread Will Sumekar
Hi Pid Thanks for your suggestion. The problem is solved. It's probably caused by wrong classpath syntax as I had this: classpath:./hibernate.cfg.xml However I still think tomcat could give a more verbose error messages. Will On Fri, Nov 5, 2010 at 1:45 AM, Pid wrote: > On 04/11/2010 16:06,

Re: DBCP abandoned trace - unable to understand the leak

2010-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sasidhar, On 11/8/2010 12:31 AM, sasidhar prabhakar wrote: > On Thu, Nov 4, 2010 at 9:10 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: >> >> I have found that these exceptions can occur even when there is no leak. >> >> Specifically

Re: HTTP request and responses mixed up

2010-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, On 11/9/2010 8:45 AM, Colpaert, Robert wrote: > In the web GUI, user A requests a list of customers and user B requests > a list of the current orders (these requests are be handled in different > servlets). User A receives the correct list of

Re: Tomcat log files

2010-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timothy, My CONSOLE appender was foolishly configured. On 11/9/2010 4:35 PM, Christopher Schultz wrote: > log4j.appender.CONSOLE=org.apache.log4j.DailyRollingFileAppender > log4j.appender.CONSOLE.file=${catalina.base}/logs/. > log4j.appender.CONSOLE.

Re: Tomcat log files

2010-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timothy, On 11/9/2010 4:06 PM, Christopher Schultz wrote: > I'm not sure why the documentation doesn't show an equivalent > configuration for log4j. Maybe I'll write one and submit it for inclusion. Without testing it, I've written this log4j configu

Re: Backend Cookie Validation

2010-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 11/9/2010 3:30 PM, Martin Uria wrote: > I am trying to have a cookie validated in Tomcat against a mysql > entry, if it validates it should proceed to the requested resource, > and if not, it should redirect to a different page (which write

Re: Single webapp multiple contexts

2010-11-09 Thread Konstantin Kolinko
2010/11/9 Christopher Schultz : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mark, > > On 11/9/2010 12:49 PM, Mark Thomas wrote: >> On 09/11/2010 17:30, Rob Gregory wrote: >> >>> I have tried what you suggest but the result is that each context >>> defined in CATALINA_BASE/conf// get >>> d

Re: Tomcat log files

2010-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timothy, On 11/9/2010 1:48 PM, Timothy Lam wrote: > I'm trying to clean up Tomcat logging to use log4j. I've read the > Tomcat logging guide that comes with my version of Tomcat 6.0.28. Excellent. > I'm really confused with all the different log fi

Re: Restricting access to tomcat via httpd proxy only

2010-11-09 Thread David Goodenough
On Tuesday 09 November 2010, Ari King wrote: > Hi all, > > I have an httpd proxy in front of my tomcat servers/instances, and I'd > like to restrict access to those tomcat servers/instances to be > through the httpd proxy. This is in a lab settings so I'd prefer to > use tomcat configurations, rat

Backend Cookie Validation

2010-11-09 Thread Martin Uria
Hi all, A little stumped on how to accomplish this: I am trying to have a cookie validated in Tomcat against a mysql entry, if it validates it should proceed to the requested resource, and if not, it should redirect to a different page (which writes the cookie on successful login). The idea

Re: Single webapp multiple contexts

2010-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 11/9/2010 12:49 PM, Mark Thomas wrote: > On 09/11/2010 17:30, Rob Gregory wrote: > >> I have tried what you suggest but the result is that each context >> defined in CATALINA_BASE/conf// get >> deployed/expanded into webapps which results in

Re: Restricting access to tomcat via httpd proxy only

2010-11-09 Thread Tim Funk
Doh - too fast in copy paste - I pasted the wrong name. You want *RemoteAddrValve* - you do NOT want RemoteIpValve -Tim On 11/9/2010 3:18 PM, Tim Funk wrote: See RemoteIpValve http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote_IP_Valve -Tim On 11/9/2010 1:34 PM, Ari King wrote

Re: Restricting access to tomcat via httpd proxy only

2010-11-09 Thread Tim Funk
See RemoteIpValve http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote_IP_Valve -Tim On 11/9/2010 1:34 PM, Ari King wrote: Hi all, I have an httpd proxy in front of my tomcat servers/instances, and I'd like to restrict access to those tomcat servers/instances to be through the htt

Re: Shutting down one instance of tomcat 6 from a listener

2010-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patrick, On 11/9/2010 11:36 AM, Patrick Sauts wrote: > I'm sorry I'm French. No problem: we can work around language difficulties. More explanation usually helps. > Multiple cores, maybe? The number of CPU cores should not affect the number of inst

Re: setenv.sh in an individual tomcat catalina base

2010-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ziggy, On 11/9/2010 9:55 AM, Ziggy wrote: > I am using Tomcat v5.5 Which 5.5? Most apps that work under 5.5 should enjoy a seamless upgrade to 6.0. Do you have a plan to upgrade? I would recommend one. > Do you mean that for newer versions of Tomcat

Re: Tomcat log files

2010-11-09 Thread Mark Shifman
you need to look at http://tomcat.apache.org/tomcat-6.0-doc/logging.html and do what it says for log4j On 11/09/2010 01:48 PM, Timothy Lam wrote: > I'm trying to clean up Tomcat logging to use log4j. I've read the Tomcat > logging guide that comes with my version of Tomcat 6.0.28. I'm really >

Tomcat log files

2010-11-09 Thread Timothy Lam
I'm trying to clean up Tomcat logging to use log4j. I've read the Tomcat logging guide that comes with my version of Tomcat 6.0.28. I'm really confused with all the different log files that are being generated in the default Tomcat before log4j configuration. Why are there so many different l

Restricting access to tomcat via httpd proxy only

2010-11-09 Thread Ari King
Hi all, I have an httpd proxy in front of my tomcat servers/instances, and I'd like to restrict access to those tomcat servers/instances to be through the httpd proxy. This is in a lab settings so I'd prefer to use tomcat configurations, rather than use something like a firewall. Anyone have any s

Re: Single webapp multiple contexts

2010-11-09 Thread Mark Thomas
On 09/11/2010 17:30, Rob Gregory wrote: > Hi Mark, > > I presume you are the same Mark that has committed the fixes made in the > changelog? Correct. > I have tried what you suggest but the result is that each context > defined in CATALINA_BASE/conf// get > deployed/expanded into webapps which

RE: Single webapp multiple contexts

2010-11-09 Thread Rob Gregory
Hi Mark, I presume you are the same Mark that has committed the fixes made in the changelog? I have tried what you suggest but the result is that each context defined in CATALINA_BASE/conf// get deployed/expanded into webapps which results in much more disk space usage. Is there any way to achi

Re: Shutting down one instance of tomcat 6 from a listener

2010-11-09 Thread Pid
On 09/11/2010 12:04, Patrick Sauts wrote: > What is happening is that the tomcat is becoming unstable with the exit(1). Hehe. Yes, Tomcat will be 'unstable' if you call System.exit(1). p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature

RE: Single webapp multiple contexts

2010-11-09 Thread Rob Gregory
Hi Chuck and thanks for replying. I want a single webapp instance e.g. c:\tomcat\webapps\myapp which can listen for requests coming from http://localhost/A/index.htm and the same webapp to listen for requests coming from http://localhsot/B/index.htm, etc. Regards Rob > -Original Message

Re: setenv.sh in an individual tomcat catalina base

2010-11-09 Thread Ziggy
Hi Andre, I am using a standard Tomcat installation downloaded from tomcat.apache.org. I am confused as to how you determined that am using a packaged version of Tomcat :) -- D On Tue, Nov 9, 2010 at 3:55 PM, André Warnier wrote: > Hi. > > As I recall, you are using a packaged version of Tomc

Re: Shutting down one instance of tomcat 6 from a listener

2010-11-09 Thread Ziggy
If you are refering to wanting to undeploy a specific application from the same instance (installation) of tomcat then there are several ways - Using Tomcat Manager - You can write an Ant script to undeploy the application On Tue, Nov 9, 2010 at 5:22 PM, Ziggy wrote: > Hi Patrick, > > When you

Re: Single webapp multiple contexts

2010-11-09 Thread Mark Thomas
On 09/11/2010 17:18, Caldarale, Charles R wrote: > From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] > Subject: Single webapp multiple contexts > > I am trying to create multiple 'dynamic' contexts using just a single > code base. For example we currently deploy a webapps within a context of

Re: Shutting down one instance of tomcat 6 from a listener

2010-11-09 Thread Ziggy
Hi Patrick, When you say multiple instances it could mean one of two things - Running multiple instances of Tomcat using multiple CATALINA_BASES - Running the same instance of Tomcat but with multiple virtual hosts Do you mean that you are deploying different applications (i.e different war file

RE: Single webapp multiple contexts

2010-11-09 Thread Caldarale, Charles R
From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] Subject: Single webapp multiple contexts I am trying to create multiple 'dynamic' contexts using just a single code base. For example we currently deploy a webapps within a context of let's say 'A'. This listens quite happily for requests com

RE: Single webapp multiple contexts

2010-11-09 Thread Rob Gregory
The following entries are within the Changelog so it looks like what I am trying to do is now invalid? Can anyone suggest an alternative way to achieve the same result of a single code base with multiple contexts? Change Logs:- Make context deployment error message for fixDocBase() more meaningfu

RE: Single webapp multiple contexts

2010-11-09 Thread Rob Gregory
Just to expand on this a little. I have previously had something working but that was on Tomcat 5.5.9, The same trick no longer seems to work under 6.0.29. I basically created a context like which used an already deployed copy of our webapp. This did work under 5.5.9 but fails with the follow

RE: Shutting down one instance of tomcat 6 from a listener

2010-11-09 Thread Patrick Sauts
I'm sorry I'm French. Multiple cores, maybe? As when you use the manager to deploy different web applications, several war. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: mardi 9 novembre 2010 14:44 To: Tomcat Users List Subject: RE: Shutting down

Single webapp multiple contexts

2010-11-09 Thread Rob Gregory
Hello Tomcat Users, I am trying to create multiple 'dynamic' contexts using just a single code base. For example we currently deploy a webapps within a context of let's say 'A'. This listens quite happily for requests coming in the form of http://localhost/A/index.htm. What I need to be able to

RE: [OT] Jconsole Perform GC?

2010-11-09 Thread Caldarale, Charles R
> From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] > Subject: RE: [OT] Jconsole Perform GC? > I was impressed with the speed of the full GC. GC speed is proportional to the number and size of live objects, not dead ones. If your apps don't persist much data, GC will be quite quick. S

Re: setenv.sh in an individual tomcat catalina base

2010-11-09 Thread André Warnier
Hi. As I recall, you are using a packaged version of Tomcat (meaning not the original one from the tomcat website download, but one already packaged by the people who do such things for your OS version). You should then look carefully at what scripts are used to start/stop Tomcat on your par

RE: [OT] Jconsole Perform GC?

2010-11-09 Thread Jeffrey Janner
I must say, I was impressed with the speed of the full GC. Blink of an eye fast. > -Original Message- > From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] > Sent: Tuesday, November 09, 2010 9:51 AM > To: Tomcat Users List > Subject: RE: [OT] Jconsole Perform GC? > > Thanks Chuck.

RE: [OT] Jconsole Perform GC?

2010-11-09 Thread Jeffrey Janner
Thanks Chuck. Just what I was interested in. > -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Tuesday, November 09, 2010 9:05 AM > To: Tomcat Users List > Subject: RE: [OT] Jconsole Perform GC? > > > From: Jeffrey Janner [mailto:jeffrey.jan..

Re: [OT] Jconsole Perform GC?

2010-11-09 Thread Mark Thomas
On 09/11/2010 14:53, Jeffrey Janner wrote: > Anyone know what exactly what kind of GC the "Perform GC" button in > Jconsole does? It will trigger a full GC which will GC both old and new spaces. Mark - To unsubscribe, e-mail: us

[OT] Jconsole Perform GC?

2010-11-09 Thread Jeffrey Janner
Anyone know what exactly what kind of GC the "Perform GC" button in Jconsole does? I had a Tomcat instance that I'd been monitoring since yesterday morning, because the end users were getting some "interesting" OOM errors. The initial work was mostly in the Eden space and Survivor spaces for mos

Re: setenv.sh in an individual tomcat catalina base

2010-11-09 Thread Ziggy
I am using Tomcat v5.5 Do you mean that for newer versions of Tomcat, if i want to move some of the scripts from $CATALINA_HOME/bin to $CATALINA_BASE/bin i will not be able to? Thanks On Tue, Nov 9, 2010 at 1:38 PM, Konstantin Kolinko wrote: > 2010/11/9 Ziggy : > > Are there any side effects t

RE: HTTP request and responses mixed up

2010-11-09 Thread Jeffrey Janner
> -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Tuesday, November 09, 2010 8:06 AM > To: Tomcat Users List > Subject: RE: HTTP request and responses mixed up > > > From: Colpaert, Robert [mailto:robert.colpa...@logica.com] > > Subject: HTTP req

RE: Shutting down one instance of tomcat 6 from a listener

2010-11-09 Thread Caldarale, Charles R
> From: Patrick Sauts [mailto:patrick.via...@gmail.com] > Subject: Shutting down one instance of tomcat 6 from a listener > I'm working with tomcat 6 and multiples instances; The question André was trying to get you to answer is: what do you mean by "instance"? Multiple instances of what? Tha

Re: setenv.sh in an individual tomcat catalina base

2010-11-09 Thread Konstantin Kolinko
2010/11/9 Ziggy : > Are there any side effects to doing this? Can tomcat use both > $CATALINA_BASE/bin/ and $CATALINA_HOME/bin during startup? > >From catalina.sh: if [ -r "$CATALINA_BASE"/bin/setenv.sh ]; then . "$CATALINA_BASE"/bin/setenv.sh elif [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then

RE: HTTP request and responses mixed up

2010-11-09 Thread Caldarale, Charles R
> From: Colpaert, Robert [mailto:robert.colpa...@logica.com] > Subject: HTTP request and responses mixed up > We are currently experiencing an issue on our system where > user A gets the HTTP response intended for user B. In every instance reported of this happening, it has almost always been a

HTTP request and responses mixed up

2010-11-09 Thread Colpaert, Robert
Hi all, We are currently experiencing an issue on our system where user A gets the HTTP response intended for user B. In fact, user A and user B are two completely different users that are logged on to our system. User A and User B both a send a different request and then BOTH users get the sam

Re: EL works in JSP but not in tag files

2010-11-09 Thread Georg Lackermair
Oh, this is embarrassing! Mark, thanks so much for the hint. The TLD begins with http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"; version="2.0"> 1.0

setenv.sh in an individual tomcat catalina base

2010-11-09 Thread Ziggy
Hi guys, At the moment i have several catalina bases configured with the following directories, conf logs server webapps work The bin, lib and common directories are all still in $CATALINA_HOME. I now need to add a setenv.sh file in the bin directory but i dont want it to be used by all the cat

Re: EL works in JSP but not in tag files

2010-11-09 Thread Mark Thomas
On 09/11/2010 12:15, Georg Lackermair wrote: > > Hello everyone, > > The problem is that EL expressions work well in JSPs, but get ignored in > custom tags. i found several related posts on the web, but none helped > me to solve this. Tag files are always part of tag libraries - whether or not y

RE: Shutting down one instance of tomcat 6 from a listener

2010-11-09 Thread Patrick Sauts
What is happening is that the tomcat is becoming unstable with the exit(1). Each instance respond on the same host like 192.168.0.1/instance1 and 192.168.0.1/instance2 a Proxy(Squid) do the dispatch. -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: mardi 9 novembre

EL works in JSP but not in tag files

2010-11-09 Thread Georg Lackermair
Hello everyone, The problem is that EL expressions work well in JSPs, but get ignored in custom tags. i found several related posts on the web, but none helped me to solve this. On adding the line <%@ tag isELIgnored="false" %> i get the following error message: "Tag directive: illegal to have

RE: [OT] Jconsole Perform GC?

2010-11-09 Thread Caldarale, Charles R
> From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] > Subject: [OT] Jconsole Perform GC? > Anyone know what exactly what kind of GC the "Perform GC" > button in Jconsole does? The same one you get by calling System.gc() - a full GC. > The initial work was mostly in the Eden space and S

Re: Shutting down one instance of tomcat 6 from a listener

2010-11-09 Thread André Warnier
Patrick Sauts wrote: Hello, I'm working with tomcat 6 and multiples instances; I'm looking for a solution to stop an instance of Tomcat from a listener. The purpose of this listener is to load and check some configurations files such as Spring configuration. Then, if an error is found, to stop t

Shutting down one instance of tomcat 6 from a listener

2010-11-09 Thread Patrick Sauts
Hello, I'm working with tomcat 6 and multiples instances; I'm looking for a solution to stop an instance of Tomcat from a listener. The purpose of this listener is to load and check some configurations files such as Spring configuration. Then, if an error is found, to stop this instance. On a Tomc

Re: NIO connecter does not work after startup normally

2010-11-09 Thread Mark Thomas
On 09/11/2010 06:47, Ben Xiong wrote: > ?I changed the call to req.startAsync() then it seems working. > > But why's that? what happend in req.startAsync(req, res) which does not > happen in req.startAsync() ? Thank you. A bug. It has been fixed in 7.0.x and will be included in 7.0.5 onwards. Ma

Re: NIO connecter does not work after startup normally

2010-11-09 Thread Pid
On 09/11/2010 06:25, Ben Xiong wrote: > >xmlns="http://java.sun.com/xml/ns/javaee"; > xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; web-app version 2.5 >xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"; >id="W