Re: Tomcat recycling

2011-11-22 Thread Jan Vávra
Hello, thanks for a long response. As I see everybody are againts my proposal. Ok. Yes, some kind of restarting can be done via some scripts. In the best in a cluster environment... Personally I don't trust /etc/init.d/tomcat scripts that comes in wg. SLES linux. Sometimes this script didn't

Query related to detection of the Source IP Address in Load-balancing mode

2011-11-22 Thread Faseela K
Hi, I have applications running on two tomcat servers which are in load balancing mode. If I try to access the application from the first server,and if the request is forwarded to the second server, the request.getRemoteAddr() on the second server still returns "127.0.0.1"(instead of first ser

Re: Tomcat 7 not working with javax.net.ssl.keyStorePassword property

2011-11-22 Thread Satish Mittal
Hi, Please see my response inline. -Satish On Wed, Nov 23, 2011 at 2:32 AM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Satish Mittal [mailto:satish.mit...@gmail.com] > > Subject: Tomcat 7 not working with javax.net.ssl.keyStorePassword > property > > > In my tomcat weba

Re: Maven Tomcat 7 plugin - changing war name

2011-11-22 Thread Will Glass-Husain
Thanks for the quick response. I wasn't initially sure of the status (the original Maven plugin doesn't work with Tomcat 7, so this is definitely needed. Now I see it's under development. I'll file an issue. WILL On Tue, Nov 22, 2011 at 1:50 PM, Olivier Lamy wrote: > yep, not done yet :-) >

Re: Single war file - multiple hosts - can't get log4j to log to different files

2011-11-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 11/22/11 4:03 PM, chris derham wrote: > So I wasn't 100% sure exactly what to do here. I setup a folder > under webapps called demos. We put our app there, named ROOT.war. > Then in another subfolder of webapps called local, we put > probe.w

Re: Single war file - multiple hosts - can't get log4j to log to different files

2011-11-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 11/22/11 2:28 PM, chris derham wrote: > Java running on windows 2008 r2 against tomcat 7.0.19 java version > "1.6.0_24" Thanks! > I have a single war file, and would like to host multiple demo > sites of our app. So ideally users access de

Re: Tomcat 7 not working with javax.net.ssl.keyStorePassword property

2011-11-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Satish, On 11/22/11 3:42 PM, Satish Mittal wrote: > I pass on the keystore password by setting the system property > "javax.net.ssl.keyStorePassword" to keystore password, instead of > writing the keystore password in plain-text as an attribute in >

Re: Tomcat 7 not working with javax.net.ssl.keyStorePassword property

2011-11-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 11/22/11 4:02 PM, Caldarale, Charles R wrote: >> From: Satish Mittal [mailto:satish.mit...@gmail.com] Subject: >> Tomcat 7 not working with javax.net.ssl.keyStorePassword >> property > >> In my tomcat webapp, before I spawn another tomcat w

RE: Thread executor question

2011-11-22 Thread David Dabbs
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Tuesday, November 22, 2011 3:44 PM > To: Tomcat Users List > Subject: Re: Thread executor question > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > DAvid, > > On 11/22/11 3:57 PM, Davi

Re: Maven Tomcat 7 plugin - changing war name

2011-11-22 Thread Olivier Lamy
yep, not done yet :-) It's a bit weird issue as the plugin use the project artifact (i.e. ${project.artifact} as mojo parameter expression which should point to the war artifact of your project ). Can you load an issue ? (I probably won't have time before end of the week to have a look). 2011/

Re: tomcat http connector

2011-11-22 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Asha, On 11/22/11 2:15 AM, Asha K S wrote: Is there any performance comparison document available already between http and AJP It should be easy to test in your own environment. If you are using AJP through another web

Re: Thread executor question

2011-11-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 DAvid, On 11/22/11 3:57 PM, David Dabbs wrote: > We're going to be upgrading some vintage version 6 Tomcats to TC 7. > > > I was wondering if there's any migration guide, in particular any > discussion of the advantages to using thread pools/executo

Re: tomcat http connector

2011-11-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Asha, On 11/22/11 2:15 AM, Asha K S wrote: > Is there any performance comparison document available already > between http and AJP It should be easy to test in your own environment. If you are using AJP through another web server, the overhead of th

Re: Maven Tomcat 7 plugin - changing war name

2011-11-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Will, On 11/22/11 2:02 PM, Will Glass-Husain wrote: > I'm struggling to get the tomcat7 plugin to work. I'm pretty sure that's still under development, so YMMV right now. Stick around and I'm sure you'll get a better answer from Olivier. I just did

Re: tomcat http connector

2011-11-22 Thread André Warnier
Pid wrote: On 22/11/2011 20:08, André Warnier wrote: Pid wrote: On 22/11/2011 16:21, Caldarale, Charles R wrote: From: Shanti Suresh [mailto:sha...@umich.edu] Subject: Re: tomcat http connector Tomcat's built-in HTTP connector can be used for production if your production traffic is light. It

RE: Thread executor question

2011-11-22 Thread Caldarale, Charles R
> From: David Dabbs [mailto:dmda...@gmail.com] > Subject: Thread executor question > I was wondering if there's any migration guide You mean perhaps the link named Migration Guide on the Tomcat home page? http://tomcat.apache.org/migration.html > in particular any discussion of the advantages

Re: Single war file - multiple hosts - can't get log4j to log to different files

2011-11-22 Thread chris derham
> > unpackWARs="false" autoDeploy="false"> > > The appBase I find a little concerning... You don't have any apps > directly place in webapps do you? > > So I wasn't 100% sure exactly what to do here. I setup a folder under webapps called demos. We put our app there, named ROOT.war. Then in

RE: Tomcat 7 not working with javax.net.ssl.keyStorePassword property

2011-11-22 Thread Caldarale, Charles R
> From: Satish Mittal [mailto:satish.mit...@gmail.com] > Subject: Tomcat 7 not working with javax.net.ssl.keyStorePassword property > In my tomcat webapp, before I spawn another tomcat > webapp process I'll bite: what does that mean? What part of the servlet spec covers that action? - Chuck

Re: Thread executor question

2011-11-22 Thread Daniel Mikusa
On Tue, 2011-11-22 at 12:57 -0800, David Dabbs wrote: > We're going to be upgrading some vintage version 6 Tomcats to TC 7. > > I was wondering if there's any migration guide, Have you seen... https://tomcat.apache.org/migration.html#Migrating_from_6.0.x_to_7.0.x Dan

Thread executor question

2011-11-22 Thread David Dabbs
We're going to be upgrading some vintage version 6 Tomcats to TC 7. I was wondering if there's any migration guide, in particular any discussion of the advantages to using thread pools/executors. Thanks, David

Tomcat 7 not working with javax.net.ssl.keyStorePassword property

2011-11-22 Thread Satish Mittal
Hi All, I have observed a regression between tomcat 5 and tomcat 7. In my tomcat webapp, before I spawn another tomcat webapp process, I pass on the keystore password by setting the system property "javax.net.ssl.keyStorePassword" to keystore password, instead of writing the keystore password in

Re: tomcat http connector

2011-11-22 Thread Pid
On 22/11/2011 20:08, André Warnier wrote: > Pid wrote: >> On 22/11/2011 16:21, Caldarale, Charles R wrote: From: Shanti Suresh [mailto:sha...@umich.edu] Subject: Re: tomcat http connector Tomcat's built-in HTTP connector can be used for production if your production traffic is l

Re: tomcat http connector

2011-11-22 Thread André Warnier
Pid wrote: On 22/11/2011 16:21, Caldarale, Charles R wrote: From: Shanti Suresh [mailto:sha...@umich.edu] Subject: Re: tomcat http connector Tomcat's built-in HTTP connector can be used for production if your production traffic is light. It is advisable to front-end Tomcat with Apache. Sorry

Re: Single war file - multiple hosts - can't get log4j to log to different files

2011-11-22 Thread Pid
On 22/11/2011 19:28, chris derham wrote: >unpackWARs="false" autoDeploy="false"> The appBase I find a little concerning... You don't have any apps directly place in webapps do you? p -- [key:62590808] signature.asc Description: OpenPGP digital signature

Re: tomcat http connector

2011-11-22 Thread Pid
On 22/11/2011 16:21, Caldarale, Charles R wrote: >> From: Shanti Suresh [mailto:sha...@umich.edu] >> Subject: Re: tomcat http connector > >> Tomcat's built-in HTTP connector can be used for production if >> your production traffic is light. It is advisable to front-end >> Tomcat with Apache. >

RE: Java 7

2011-11-22 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Java 7 > I believe I remember seeing some comments on the list about there > being some problems related to the Tomcat/Java 7 relationship. Tomcat cannot be built with Java 7, but it can be run with it. Make sure you use the latest ver

Java 7

2011-11-22 Thread André Warnier
Hi. Knowing that this list is not a Java list per se, but knowing also that there is considerable Java expertise available here, I would like to ask the following question : being a regular follower of this list (and not of any Java list per se), I believe I remember seeing some comments on the

Single war file - multiple hosts - can't get log4j to log to different files

2011-11-22 Thread chris derham
All, Java running on windows 2008 r2 against tomcat 7.0.19 java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode) I have a single war file, and would like to host multiple demo sites of our app. So ideally users

Maven Tomcat 7 plugin - changing war name

2011-11-22 Thread Will Glass-Husain
Hi, I'm struggling to get the tomcat7 plugin to work. I want to change the name of the war file. When I call mvn tomcat7:deploy-only It looks for war file XXX-YYY.war, where XXX is the artifactId and YYY is the version name. I'd rather use a different, simpler WAR file name "myapp". It's u

RE: tomcat http connector

2011-11-22 Thread Caldarale, Charles R
> From: Shanti Suresh [mailto:sha...@umich.edu] > Subject: Re: tomcat http connector > Tomcat's built-in HTTP connector can be used for production if > your production traffic is light. It is advisable to front-end > Tomcat with Apache. Sorry, that's just BS. Back in the Tomcat 3 or 4 days, i

Re: tomcat http connector

2011-11-22 Thread Shanti Suresh
Hi Asha, Is mod_proxy also an option you are considering? "mod_proxy" is part of the Apache distribution and does not require compiling any modules separately. Here are my thoughts: Tomcat's built-in HTTP connector can be used for production if your production traffic is light. It is advisabl

Re: where to put static files?

2011-11-22 Thread André Warnier
Chris, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 11/21/11 4:06 AM, André Warnier wrote: S Ahmed wrote: I know when I go in production I will have nginx map to this folder to serve the static files, which, as far as I understand your planned setup, wo

Re: where to put static files?

2011-11-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 11/21/11 4:06 AM, André Warnier wrote: > S Ahmed wrote: >> I know when I go in production I will have nginx map to this >> folder to serve the static files, > > which, as far as I understand your planned setup, would be a really > bad idea.

Re: Tomcat recycling

2011-11-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jan, > At the end I'd like to make a little comparision. Recently I've > used .NET + native calls of dlls, php + custom made php modules > (native dlls), jsp+java. .NET and php have possibilities for some > kind of recoveries. It's almost impossible t

Re: tomcat http connector

2011-11-22 Thread Brooke Hedrick
I use the http connector (actually https) with tcnative and mod_proxy w/ http in Apache Httpd. For my purposes, I wanted https connections between the httpd server and tomcat. I only saw a big performance issue when I wasn't using tcnative libraries. On Nov 22, 2011 2:58 AM, "Kursat Tuncel" wrot

Re: tomcat http connector

2011-11-22 Thread Kursat Tuncel
For 6.x: http://tomcat.apache.org/tomcat-6.0-doc/config/http.html http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html For 7.x: http://tomcat.apache.org/tomcat-7.0-doc/config/http.html http://tomcat.apache.org/tomcat-7.0-doc/config/ajp.html For production environments, my best practice is

Re: RemoveIpValve and valve execution order

2011-11-22 Thread rswart
Thanks for the quick reply. Works like a charm! Konstantin Kolinko wrote: > > 2011/11/22 rswart : >> >> >> Hi, >> >> I'm trying to configure the RemoteIp in combination with AccessLogValve. >> request.getRemoteAddr() return the  correct remote-ip from >> X-Forwarded-For >> header, but AccessLo

Re: tomcat http connector

2011-11-22 Thread Pid *
On 22 Nov 2011, at 07:53, "Jan Vávra" wrote: > Hello, > I use ajp, because on tomcat I make authentication based on client > certificate. That you cannot do via http connector. Oh dear. Of course it can. CLIENT_CERT auth is part of the Servlet spec. p > Jan. >> Hi, >> >> Is there any docum