Re: I have a problem with Apache, Tomcat

2009-05-05 Thread André Warnier
Pid wrote: nohacks wrote: Apache has better Security and Load balancing for the tomcat cluster. I'm passing out hard hats & sandbags for anyone who wants one. Do you also have some flame-retardant and anti-troll spells (or dwarfs) in your inventory ? ---

Re: I have a problem with Apache, Tomcat

2009-05-05 Thread André Warnier
Caldarale, Charles R wrote: From: nohacks [mailto:philipfwil...@gmail.com] Subject: Re: I have a problem with Apache, Tomcat I am not using Apache to server any Static content. That begs the question: why do you have httpd in the game at all? I knew you'd say that, I was about to do the same

Re: Tomcat Configuration in Eclipse

2009-05-05 Thread André Warnier
ados1...@gmail.com wrote: It appears apparent that Tomcat is running as a service on my Windows. Right-click on the "My computer" icon and choose "Manage" In the panel that appears, navigate to "services" (on the left side) When you click on that, on the right side appears a list of services i

RE: Using Multiple JVM instances

2009-05-05 Thread Caldarale, Charles R
> From: kareem_s_m [mailto:kareemud...@gmail.com] > Subject: RE: Using Multiple JVM instances > > But nothing is written to them That's not what your screenshot shows: the jakarta_service_20090505.log file for JVM2 has a non-zero size. What's in it? - Chuck THIS COMMUNICATION MAY CONTAIN CO

RE: j_security_check/j_username/j_password issue in Tomcat Version 6.0.18

2009-05-05 Thread Caldarale, Charles R
> From: Sanjay Manchiganti [mailto:ms4san...@yahoo.com] > Subject: j_security_check/j_username/j_password issue in Tomcat Version > 6.0.18 > > Did anything change in terms of j_securitycheck / container managed > security between these two versions of tomcat? What "two versions"? The only one yo

Re: j_security_check/j_username/j_password issue in Tomcat Version 6.0.18

2009-05-05 Thread Sid Sidney
I looks like it has changed. I have the same problem getting parameters from this page that have been submitted via a post. However, I think that maybe the answer lies in the valve "org.apache.catalina.authenticator.FormAuthenticator"  I'm sure that if you add the you will get to the value

RE: Using Multiple JVM instances

2009-05-05 Thread kareem_s_m
And my Java is 1.5.07, Tomcat is 5.5.26 and machine is windows 2003 on 64 bit. kareem_s_m wrote: > > Thanks Chuck. When I start the first JVM service, the log files in the > appropriate directory are created and data is written to stdout file (no > errors though). When I start the second JVM ser

RE: Using Multiple JVM instances

2009-05-05 Thread kareem_s_m
Thanks Chuck. When I start the first JVM service, the log files in the appropriate directory are created and data is written to stdout file (no errors though). When I start the second JVM service, the log files do get created in the appropriate directory (each JVM has its own directory for for log

RE: IIS 6 Tomcat Connector isapi_redirect-1.2.28.dll not being called 404 2 1260 error

2009-05-05 Thread Leo Donahue - PLANDEVX
Just a thought. By chance do you have another tomcat running on this server that would be listening on port 8009 or some other web server/container? Something installed via 3rd party maybe, like a disk management web app or the like? I had this problem once, then realized that we had a 3rd pa

Re: I have a problem with Apache, Tomcat

2009-05-05 Thread Pid
nohacks wrote: > Apache has better Security and Load balancing for the tomcat cluster. I'm passing out hard hats & sandbags for anyone who wants one. p > Phil > > > Caldarale, Charles R wrote: >>> From: nohacks [mailto:philipfwil...@gmail.com] >>> Subject: Re: I have a problem with Apache, T

j_security_check/j_username/j_password issue in Tomcat Version 6.0.18

2009-05-05 Thread Sanjay Manchiganti
Hello All, I've deployed two apps(say A and B) into two instances of Tomcat running on port 8080 and 8081.  They both have been enabled for form based authentication.  Step 1: When a user tries to access the application A he is shown a userid/password page(Alogin.jsp) with all the j_xxx detai

RE: I have a problem with Apache, Tomcat

2009-05-05 Thread Caldarale, Charles R
> From: nohacks [mailto:philipfwil...@gmail.com] > Subject: RE: I have a problem with Apache, Tomcat > > Apache has better Security and Load balancing for the tomcat cluster. Security, no. Load balancing, yes - if you can't afford a real one. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTI

RE: I have a problem with Apache, Tomcat

2009-05-05 Thread nohacks
Apache has better Security and Load balancing for the tomcat cluster. Phil Caldarale, Charles R wrote: > >> From: nohacks [mailto:philipfwil...@gmail.com] >> Subject: Re: I have a problem with Apache, Tomcat >> >> I am not using Apache to server any Static content. > > That begs the questio

Re: Extra Threads in background

2009-05-05 Thread David.Meldrum
Well removing the extra element from my server.xml fixed the problem and I now only have the one Background thread I intended. You are right, less resources consumed. I am not sure where I got the idea I needed: Probably read it as an example in a book. Christopher Schultz wrote

Re: How to eliminate stack traces from Tomcat responses?

2009-05-05 Thread B D
Christopher, You're right! It took me some time to get error.jsp coexist properly with the web service but there are no more Tomcat/Spring traces in error responses. Thank you very much! On Tue, May 5, 2009 at 11:56 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP

RE: Using Multiple JVM instances

2009-05-05 Thread Caldarale, Charles R
> From: kareem_s_m [mailto:kareemud...@gmail.com] > Subject: Using Multiple JVM instances > But when I try to start both the services and make them > run parallely, by going to windows services, I get an > error 'Error 1067: Process terminated unexpectedly'. > > Why is it that I can run both the

RE: Logging Request/Response Turn Around Time

2009-05-05 Thread joe.rice
Thanks! That was exactly what I was looking for. Joe -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, May 05, 2009 1:33 PM To: Tomcat Users List Subject: RE: Logging Request/Response Turn Around Time > From: joe.r...@thomsonreuters.com [m

RE: I have a problem with Apache, Tomcat

2009-05-05 Thread Caldarale, Charles R
> From: nohacks [mailto:philipfwil...@gmail.com] > Subject: Re: I have a problem with Apache, Tomcat > > I am not using Apache to server any Static content. That begs the question: why do you have httpd in the game at all? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE P

RE: Tomcat Configuration in Eclipse

2009-05-05 Thread Caldarale, Charles R
> From: ados1...@gmail.com [mailto:ados1...@gmail.com] > Subject: Re: Tomcat Configuration in Eclipse > > It appears apparent that Tomcat is running as a service on my > Windows. Not with javaw.exe; Tomcat as a service uses tomcat?.exe as the launcher executable. > How can I try to stop Tomcat

Re: I have a problem with Apache, Tomcat

2009-05-05 Thread nohacks
Hi Rainer, Thanks very much for your responses. I have your answers below. 1) Which component should respond to this request, Apache or Tomcat? Tomcat should answer all. I am not using Apache to server any Static content. 2)Which part of your webapps is expected to serve the content for Tomc

Re: Tomcat Configuration in Eclipse

2009-05-05 Thread ados1...@gmail.com
It appears apparent that Tomcat is running as a service on my Windows. How can I try to stop Tomcat as a service and start manually ? I tried stopping Tomcat but still javaw.exe is running which is somehow related to Tomcat. This has not happened one time but several times...everytime I stop Tomc

Using Multiple JVM instances

2009-05-05 Thread kareem_s_m
Hi There, I want to run 2 instances for my application on 2 separate JVMs on the same machine. I have installed Java 1.5 and using Tomcat 5.5.26. Now in JVM1 - (i) My Cataline_Home and Cataline_Base are = E:\apps\thirdparty\apache5.5.26\JVM1 (ii) My JAVA_HOME = D:\JDk. JVM1 - (i) M

RE: default log4j.xml for apps

2009-05-05 Thread bmelloni
Caldarale, Charles R wrote: > > You didn't bother to tell us what version of Tomcat you're using, but for > 6.0.x try putting the log4j.xml file in Tomcat's lib directory. Sorry, it is Tomcat 6.0.18, and I had log4j.xml present in the conf folder. Once I moved it to lib, it started getting us

Re: get Mod_jk precedence over mod_rewrite in Apache2

2009-05-05 Thread Rainer Jung
On 05.05.2009 16:13, André Warnier wrote: > christophe.dumo...@ifma.fr wrote: > ... > Suggestion : > instead of using the JkMount/JkUnMount way of configuring your forwarded > URLs, use the way described here : > http://tomcat.apache.org/connectors-doc/reference/apache.html > in the section : Using

Re: get Mod_jk precedence over mod_rewrite in Apache2

2009-05-05 Thread Rainer Jung
On 05.05.2009 14:38, christophe.dumo...@ifma.fr wrote: > Hello to the list, > > Here is my context : > My apache2 server must provide a default access (http://servername/*) to > a default (Tomcat) webapps ROOT, so I configure mod_jk in apache2 like > this : JkMount / * /home/tomcat/webapps/ROOT,

Re: StandardServer.await: Invalid command 'GET / HTTP/1.1' received

2009-05-05 Thread balachandra maddina
Hi Rainer, Thx a lot for the solution. yes, you are right, after changing the admin port to 8005 in the config it worked fine. Thank you, bala. On 5/5/09, Rainer Frey wrote: > On Tuesday 05 May 2009 12:01:24 balachandra maddina wrote: >> Hi All, >> 5 May, 2009 3:24:11 PM org.apache.catalina.

Re: I have a problem with Apache, Tomcat

2009-05-05 Thread Rainer Jung
On 05.05.2009 16:12, nohacks wrote: > Hi Guys, > > Thanks for your feedback with this issue. This has been making me crazy for > such a long time. > > I have put this in last night and tested. > > > JkMount /*.jsp loadbalancer > JkMount /*.jsf loadbalancer > JkMount

RE: Logging Request/Response Turn Around Time

2009-05-05 Thread Caldarale, Charles R
> From: joe.r...@thomsonreuters.com [mailto:joe.r...@thomsonreuters.com] > Subject: Logging Request/Response Turn Around Time > > I'm interested in getting some very basic performance logging > around how long it takes between a request coming in and a > response going back out for each http req

Logging Request/Response Turn Around Time

2009-05-05 Thread joe.rice
I've got a webapp running in Tomcat and I'm interested in getting some very basic performance logging around how long it takes between a request coming in and a response going back out for each http request. Most of my internet searches have turned up JMeter or JMX type approaches. Is there an eas

RE: default log4j.xml for apps

2009-05-05 Thread Caldarale, Charles R
> From: bmelloni [mailto:bruno.mell...@chickasaw.net] > Subject: default log4j.xml for apps > > But I have to have a central log4j.xml available with default logging > configuration for all of the apps. How can I do this in Tomcat? You didn't bother to tell us what version of Tomcat you're using

RE: default log4j.xml for apps

2009-05-05 Thread Martin Gainty
start by configuring $CATALINA_HOME/lib/log4j.properties e.g. log4j.rootLogger=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=${catalina.home}/logs/tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log

Re: Memory Question

2009-05-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt, On 5/4/2009 11:29 PM, Matt Corban wrote: > Where does Tomcat store the memory usage that it displays in the Server > Status under the Manager console? I was thinking about writing a shell > script to keep track of the memory usage over time (su

default log4j.xml for apps

2009-05-05 Thread bmelloni
Although we use jBoss for our servers, I use Tomcat for development because of its much faster restart and better integration with Eclipse. The applications reuse certain components heavily and thus rely on the presence of a central log4j.xml to control the logging level for those components (whi

Re: How to eliminate stack traces from Tomcat responses?

2009-05-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 B.D, On 5/4/2009 4:23 PM, B D wrote: > I run a Spring web service application under Tomcat 5.5.25 and need to > eliminate stack traces from all error responses. > > For Tomcat 3.2 you could add showDebugInfo="false" to server.conf but this > is not a

Re: Tomcat 6.0.18 on Win32 - Enabling Security Manager

2009-05-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 5/4/2009 7:31 PM, Chris Brookes wrote: > Yeah the OWASP guide was pretty good, there was one there for Tomcat > 5.5, that was part of the base for my guide along with a couple of > other key resources The DISA Tomcat checklist titled "Web Ch

Re: I have a problem with Apache, Tomcat

2009-05-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Phil, On 5/5/2009 10:12 AM, nohacks wrote: > I have put this in last night and tested. > > > JkMount /*.jsp loadbalancer > JkMount /*.jsf loadbalancer > JkMount /* loadbalancer > JkMount /servlet/* loadbalancer >

Re: Problem Accessing resource files in Tomcat 6.0.18

2009-05-05 Thread George Sexton
Are you using getResourceAsStream()? Do your paths start with / ? Jacob Bergöö wrote: Hi All, I have a problem when I deploy my war file on Tomcat 6.0.18 that does not occur when I deploy the same war file on my Jetty web server. My war file contains a jar artifact that when Spring is initializ

Problem Accessing resource files in Tomcat 6.0.18

2009-05-05 Thread Jacob Bergöö
Hi All, I have a problem when I deploy my war file on Tomcat 6.0.18 that does not occur when I deploy the same war file on my Jetty web server. My war file contains a jar artifact that when Spring is initialized reads a couple of js files and process them using Rhino on the server side. This work

Re: get Mod_jk precedence over mod_rewrite in Apache2

2009-05-05 Thread André Warnier
christophe.dumo...@ifma.fr wrote: ... Suggestion : instead of using the JkMount/JkUnMount way of configuring your forwarded URLs, use the way described here : http://tomcat.apache.org/connectors-doc/reference/apache.html in the section : Using SetHandler and Environment Variables In other words

Re: I have a problem with Apache, Tomcat

2009-05-05 Thread nohacks
Hi Guys, Thanks for your feedback with this issue. This has been making me crazy for such a long time. I have put this in last night and tested. JkMount /*.jsp loadbalancer JkMount /*.jsf loadbalancer JkMount /* loadbalancer JkMount /servlet/* loadbalancer

Re: context setting problem

2009-05-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tohid, On 4/18/2009 2:46 AM, tohid noroozi wrote: > i use context tag in server.xml like this : >autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> > > > www.tnr.com > > > w

Re: How to make request parameters available to a login.jsp?

2009-05-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sid, On 5/4/2009 5:45 PM, Sid Sidney wrote: > Our application serves many different clients. Every page in our application > (including the login.jsp and errorLogin.jsp) is configured to look like our > clients predetermined look and feel. We use

Re: How to make request parameters available to a login.jsp?

2009-05-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sid, On 5/4/2009 10:20 PM, Sid Sidney wrote: > One thing I've just found out is that if I enable the > RequestDumperValue > The post data becomes available to the login.jsp. > > That's an interesting hack: the RequestDumperValve works by sipho

get Mod_jk precedence over mod_rewrite in Apache2

2009-05-05 Thread Christophe . Dumonet
Hello to the list, Here is my context : My apache2 server must provide a default access (http://servername/*) to a default (Tomcat) webapps ROOT, so I configure mod_jk in apache2 like this : JkMount / * /home/tomcat/webapps/ROOT, this works fine. BUT before I have to use mod_rewrite to red

Re: StandardServer.await: Invalid command 'GET / HTTP/1.1' received

2009-05-05 Thread Pid
balachandra maddina wrote: > Hi All, > > When i tried to configure the tomcat6 with eclipse im getting following > error > > 5 May, 2009 3:24:11 PM org.apache.catalina.core.StandardServer await > WARNING: StandardServer.await: Invalid command 'GET / HTTP/1.1' received > > im using eclipse

Re: StandardServer.await: Invalid command 'GET / HTTP/1.1' received

2009-05-05 Thread Rainer Frey
On Tuesday 05 May 2009 12:01:24 balachandra maddina wrote: > Hi All, > 5 May, 2009 3:24:11 PM org.apache.catalina.core.StandardServer await > WARNING: StandardServer.await: Invalid command 'GET / HTTP/1.1' received > > im using eclipse ganymede and the the server configuration is set to use > t

StandardServer.await: Invalid command 'GET / HTTP/1.1' received

2009-05-05 Thread balachandra maddina
Hi All, When i tried to configure the tomcat6 with eclipse im getting following error 5 May, 2009 3:24:11 PM org.apache.catalina.core.StandardServer await WARNING: StandardServer.await: Invalid command 'GET / HTTP/1.1' received im using eclipse ganymede and the the server configuration is

Re: How to make request parameters available to a login.jsp?

2009-05-05 Thread André Warnier
Sid Sidney wrote: One thing I've just found out is that if I enable the RequestDumperValue The post data becomes available to the login.jsp. I'm going to have to look more at this. But that one's kind of "expensive". Again I'm not the Tomcat expert here. But it seems to me that if yo