This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The logging seems to work fine. I can switch the log levels from WARN to DEBUG and vary the granularity of the messages. I can see the messages on startup and shutdown.
For example, whenever I type anything into my browser, I can't see any result in the logs. A simple .html page is served up fine, but a 405 error message (HTTP method GET is not supported by this URL) that displays to the screen cannot be found anywhere in the logs. (I'm working on an XML-RPC project).
1) Is there a good resource on TomcatJ2EE development that you can recommend? I'd hate to abuse these boards with newbie problems.
2) As long as I'm posting, does anyone have any suggestions for me for logging? I'd like to see all requests in a log someplace. My log4j.properties file that is in my common\classes folder is as follows:
Since my post, I discovered that what I want is something called the Valve Component. Click on Tomcat 5.5 Valve Component for reference, but I need it broken down and explained to me like a two year old.
I ordered a Tomcat 5.5 book - should arrive today - that I'm hoping will help me with these issues.
Thanks again for your post.
Joined: Jun 26, 2002
My next release of jamon will come with a valve that tracks statistics for tomcat. They are pretty easy to write. Essentially one method that intercepts all page requests that go to tomcat. With this you can track the error code, page performance etc or log things. Here is my code. Note they changed the way valves work from tomcat 5 to 5.5.
You wrap the code you want to do around this code.
Here is a sample
[ September 05, 2007: Message edited by: steve souza ]