RE: access log for Tomcat
There is no documentation other than source and javadoc. The order in the server.xml file SEEMS to be the order they are called, but that doesn't matter. If you want general logging, you might check out the RequestInterceptor that I wrote. Its at: http://www.aswethink.com/employees/randy/tomcat/RequestLogger.html Randy > -Original Message- > From: Hensley, Zachary [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 02, 2001 9:28 AM > To: '[EMAIL PROTECTED]' > Subject: RE: access log for Tomcat > > > I am trying to write this request interceptor but I am not > sure what methods > I need to implement. Can someone give me some advice on > this? currently I > have implemented the reqiestMap method. For my logging I > want to be able to > capture username, http response, ... So does it matter where > I specify this > interceptor in the server.xml file? In other words are the > callbacks called > at random or are they called in the order that they appear in > the server.xml > file? Other than the javadocs in the code is there any > documentation on how > to implement a RequestInterceptor? > > Thanks, > > Zach H. > > -Original Message- > From: Randy Layman [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 18, 2001 9:52 AM > To: [EMAIL PROTECTED] > Subject: RE: access log for Tomcat > > > > You would have to write the Java code yourself to > implement this new > RequestInterceptor. You could hard code all of the > parameters for your > logging into the code, or you could make them parameters from > the server.xml > file (which would be better), but this is a "you do it all > yourself" kind of > effort. > > Randy > > > -----Original Message- > > From: David Rosenstark [mailto:[EMAIL PROTECTED]] > > Sent: Monday, June 18, 2001 9:27 AM > > To: '[EMAIL PROTECTED]' > > Subject: RE: access log for Tomcat > > > > > > I assume that this means that I have to do it all myself in > > terms of setting > > up different options to log? > > > > > -Original Message- > > > From: Randy Layman [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, June 18, 2001 1:09 PM > > > To: [EMAIL PROTECTED] > > > Subject: RE: access log for Tomcat > > > > > > > > > > > > There isn't a module for Tomcat that does this that I > > > know of (and > > > nothing built into Tomcat, regardless of what Luba says), > > > although it should > > > be fairly easy to do - you need to write a RequestInterceptor > > > that just > > > logs, not intercepts, the requests. > > > > > > Randy > > > > > > -Original Message- > > > From: David Rosenstark [mailto:[EMAIL PROTECTED]] > > > Sent: Sunday, June 17, 2001 7:45 AM > > > To: '[EMAIL PROTECTED]' > > > Subject: access log for Tomcat > > > > > > > > > Is there some way to configure Tomcat to have a log of all > > > web requests > > > coming in similar to access_log in Apache? > > > > > > TIA, > > > David > > > > > > > > ** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the sender by email, delete and destroy this message and its > attachments. > > > ** >
RE: access log for Tomcat
I am trying to write this request interceptor but I am not sure what methods I need to implement. Can someone give me some advice on this? currently I have implemented the reqiestMap method. For my logging I want to be able to capture username, http response, ... So does it matter where I specify this interceptor in the server.xml file? In other words are the callbacks called at random or are they called in the order that they appear in the server.xml file? Other than the javadocs in the code is there any documentation on how to implement a RequestInterceptor? Thanks, Zach H. -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Monday, June 18, 2001 9:52 AM To: [EMAIL PROTECTED] Subject: RE: access log for Tomcat You would have to write the Java code yourself to implement this new RequestInterceptor. You could hard code all of the parameters for your logging into the code, or you could make them parameters from the server.xml file (which would be better), but this is a "you do it all yourself" kind of effort. Randy > -Original Message- > From: David Rosenstark [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 18, 2001 9:27 AM > To: '[EMAIL PROTECTED]' > Subject: RE: access log for Tomcat > > > I assume that this means that I have to do it all myself in > terms of setting > up different options to log? > > > -Original Message- > > From: Randy Layman [mailto:[EMAIL PROTECTED]] > > Sent: Monday, June 18, 2001 1:09 PM > > To: [EMAIL PROTECTED] > > Subject: RE: access log for Tomcat > > > > > > > > There isn't a module for Tomcat that does this that I > > know of (and > > nothing built into Tomcat, regardless of what Luba says), > > although it should > > be fairly easy to do - you need to write a RequestInterceptor > > that just > > logs, not intercepts, the requests. > > > > Randy > > > > -Original Message- > > From: David Rosenstark [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, June 17, 2001 7:45 AM > > To: '[EMAIL PROTECTED]' > > Subject: access log for Tomcat > > > > > > Is there some way to configure Tomcat to have a log of all > > web requests > > coming in similar to access_log in Apache? > > > > TIA, > > David > > > ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender by email, delete and destroy this message and its attachments. **
Re: access log for Tomcat
On Mon, Jun 18, 2001 at 07:08:51AM -0400, Randy Layman wrote: > There isn't a module for Tomcat that does this that I know of (and > nothing built into Tomcat, regardless of what Luba says), although it should > be fairly easy to do - you need to write a RequestInterceptor that just > logs, not intercepts, the requests. I think I heard Tomcat 4.0 will ship with a pre-setup access log facility. Cheers, Neil
RE: access log for Tomcat
You would have to write the Java code yourself to implement this new RequestInterceptor. You could hard code all of the parameters for your logging into the code, or you could make them parameters from the server.xml file (which would be better), but this is a "you do it all yourself" kind of effort. Randy > -Original Message- > From: David Rosenstark [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 18, 2001 9:27 AM > To: '[EMAIL PROTECTED]' > Subject: RE: access log for Tomcat > > > I assume that this means that I have to do it all myself in > terms of setting > up different options to log? > > > -Original Message- > > From: Randy Layman [mailto:[EMAIL PROTECTED]] > > Sent: Monday, June 18, 2001 1:09 PM > > To: [EMAIL PROTECTED] > > Subject: RE: access log for Tomcat > > > > > > > > There isn't a module for Tomcat that does this that I > > know of (and > > nothing built into Tomcat, regardless of what Luba says), > > although it should > > be fairly easy to do - you need to write a RequestInterceptor > > that just > > logs, not intercepts, the requests. > > > > Randy > > > > -Original Message- > > From: David Rosenstark [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, June 17, 2001 7:45 AM > > To: '[EMAIL PROTECTED]' > > Subject: access log for Tomcat > > > > > > Is there some way to configure Tomcat to have a log of all > > web requests > > coming in similar to access_log in Apache? > > > > TIA, > > David > > >
RE: access log for Tomcat
I assume that this means that I have to do it all myself in terms of setting up different options to log? > -Original Message- > From: Randy Layman [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 18, 2001 1:09 PM > To: [EMAIL PROTECTED] > Subject: RE: access log for Tomcat > > > > There isn't a module for Tomcat that does this that I > know of (and > nothing built into Tomcat, regardless of what Luba says), > although it should > be fairly easy to do - you need to write a RequestInterceptor > that just > logs, not intercepts, the requests. > > Randy > > -Original Message- > From: David Rosenstark [mailto:[EMAIL PROTECTED]] > Sent: Sunday, June 17, 2001 7:45 AM > To: '[EMAIL PROTECTED]' > Subject: access log for Tomcat > > > Is there some way to configure Tomcat to have a log of all > web requests > coming in similar to access_log in Apache? > > TIA, > David >
RE: access log for Tomcat
There isn't a module for Tomcat that does this that I know of (and nothing built into Tomcat, regardless of what Luba says), although it should be fairly easy to do - you need to write a RequestInterceptor that just logs, not intercepts, the requests. Randy -Original Message- From: David Rosenstark [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 17, 2001 7:45 AM To: '[EMAIL PROTECTED]' Subject: access log for Tomcat Is there some way to configure Tomcat to have a log of all web requests coming in similar to access_log in Apache? TIA, David
RE: access log for Tomcat
the tc_log is not an access log writing down every request as it comes in -- it is just the data you see in the Tomcat window when you run it and through the server.xml file you can redirect it to a file. So, no, I do not see an access_log type of log feature in Tomcat to the best of my knowledge -Original Message-From: Luba Powell [mailto:[EMAIL PROTECTED]]Sent: Sunday, June 17, 2001 2:57 PMTo: [EMAIL PROTECTED]Subject: Re: access log for Tomcat Similar logging capacity exists in version 3: \conf\server.xml: Logging in Tomcat is quite flexible; we can either have a log file per module (example: ContextManager) or we can have one for Servlets and one for Jasper, or we can just have one tomcat.log for both Servlet and Jasper. Right now there are three standard log streams, "tc_log", "servlet_log", and "JASPER_LOG". - Original Message - From: Luba Powell To: [EMAIL PROTECTED] Sent: Sunday, June 17, 2001 8:50 AM Subject: Re: access log for Tomcat David: There is a global entry: prefix="catalina_log." suffix=".txt" timestamp="true"/> Are you saying that this doesn't work? - Original Message - From: David Rosenstark To: '[EMAIL PROTECTED]' Sent: Sunday, June 17, 2001 7:44 AM Subject: access log for Tomcat Is there some way to configure Tomcat to have a log of all web requests coming in similar to access_log in Apache? TIA, David
Re: access log for Tomcat
Similar logging capacity exists in version 3: \conf\server.xml: Logging in Tomcat is quite flexible; we can either have a log file per module (example: ContextManager) or we can have one for Servlets and one for Jasper, or we can just have one tomcat.log for both Servlet and Jasper. Right now there are three standard log streams, "tc_log", "servlet_log", and "JASPER_LOG". - Original Message - From: Luba Powell To: [EMAIL PROTECTED] Sent: Sunday, June 17, 2001 8:50 AM Subject: Re: access log for Tomcat David: There is a global entry: prefix="catalina_log." suffix=".txt" timestamp="true"/> Are you saying that this doesn't work? - Original Message - From: David Rosenstark To: '[EMAIL PROTECTED]' Sent: Sunday, June 17, 2001 7:44 AM Subject: access log for Tomcat Is there some way to configure Tomcat to have a log of all web requests coming in similar to access_log in Apache? TIA, David
Re: access log for Tomcat
David: There is a global entry: prefix="catalina_log." suffix=".txt" timestamp="true"/> Are you saying that this doesn't work? - Original Message - From: David Rosenstark To: '[EMAIL PROTECTED]' Sent: Sunday, June 17, 2001 7:44 AM Subject: access log for Tomcat Is there some way to configure Tomcat to have a log of all web requests coming in similar to access_log in Apache? TIA, David
Re: Access Log for Tomcat in standAlone mode or Running Apache with Tomcat.
In fact I get an segmentation faulft on any call to Tomcat from Apache. I have apache 1.3.12 and Tomcat 3.1. - Original Message - From: Krishna Kant <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 30, 2000 8:58 AM Subject: Re: Access Log for Tomcat in standAlone mode or Running Apache with Tomcat. > you will have to include the config file ( tomcat-apache) of tomcat in httpd of > apache > then start tomcat and > start apache > > Moursli Nabil wrote: > > > Can anyone help me with this, I can't run TOMCAT with Apache, so the only > > issu I see > > is to run Tomcat in standAlone mode. If anyone know how to manage Acces Log > > on Tomcat. > > That would be great. Or if you know how to make Apache Run with Tomcat let > > me know. > > > > Thx in advance. > > > > Nabil. > > CMG-Admiral. > > > > - Original Message - > > From: Russell Freeman <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, November 29, 2000 3:09 PM > > Subject: "root-relative" URLs don't work(Tomcat 3.1) > > > > > Whenever I have a web page that references a "root-relative" resource, > > e.g. > > > "/style.css", tomcat can't see to resolve it properly. It seems to be > > > ignoring the web site root as specified in server.xml. Obviously if the > > > resource lives in the same location as the current page I can drop the > > > leading forward-slash. However this won't work for resources in different > > > locations. > > > > > > I've tried turning on debug for the webapp but I'm not seeing anything. > > > > > > Any help appreciated > > > > > > Russ >
Re: Access Log for Tomcat in standAlone mode or Running Apache with Tomcat.
I Already did that after reading the doc first time! It just doesn't work. Tomcat is running on Mandrake 7.1, everythings is well setup, but I receive apj12 error and mod_jk problem... I did compile the source on the same OS version, but it didn't change nothing realy! It seems to be apache that doesn't recognize Tomcat! Nabil. > you will have to include the config file ( tomcat-apache) of tomcat in httpd of > apache > then start tomcat and > start apache > > Moursli Nabil wrote: > > > Can anyone help me with this, I can't run TOMCAT with Apache, so the only > > issu I see > > is to run Tomcat in standAlone mode. If anyone know how to manage Acces Log > > on Tomcat. > > That would be great. Or if you know how to make Apache Run with Tomcat let > > me know. > > > > Thx in advance. > > > > Nabil. > > CMG-Admiral. > > > > - Original Message - > > From: Russell Freeman <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, November 29, 2000 3:09 PM > > Subject: "root-relative" URLs don't work(Tomcat 3.1) > > > > > Whenever I have a web page that references a "root-relative" resource, > > e.g. > > > "/style.css", tomcat can't see to resolve it properly. It seems to be > > > ignoring the web site root as specified in server.xml. Obviously if the > > > resource lives in the same location as the current page I can drop the > > > leading forward-slash. However this won't work for resources in different > > > locations. > > > > > > I've tried turning on debug for the webapp but I'm not seeing anything. > > > > > > Any help appreciated > > > > > > Russ >
Re: Access Log for Tomcat in standAlone mode or Running Apache with Tomcat.
you will have to include the config file ( tomcat-apache) of tomcat in httpd of apache then start tomcat and start apache Moursli Nabil wrote: > Can anyone help me with this, I can't run TOMCAT with Apache, so the only > issu I see > is to run Tomcat in standAlone mode. If anyone know how to manage Acces Log > on Tomcat. > That would be great. Or if you know how to make Apache Run with Tomcat let > me know. > > Thx in advance. > > Nabil. > CMG-Admiral. > > - Original Message - > From: Russell Freeman <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, November 29, 2000 3:09 PM > Subject: "root-relative" URLs don't work(Tomcat 3.1) > > > Whenever I have a web page that references a "root-relative" resource, > e.g. > > "/style.css", tomcat can't see to resolve it properly. It seems to be > > ignoring the web site root as specified in server.xml. Obviously if the > > resource lives in the same location as the current page I can drop the > > leading forward-slash. However this won't work for resources in different > > locations. > > > > I've tried turning on debug for the webapp but I'm not seeing anything. > > > > Any help appreciated > > > > Russ