A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
this week in the
Tomcat 404 - how to log bad url?
Joined: Aug 01, 2005
Mar 17, 2008 15:24:00
I want to capture the bad URL when a 404 is thrown.
The only way I do this so far is to have the
log4j.properties set to DEBUG, this creates a HUGE amount of logging.
Are there any other ways to get this information... when the URL is bad I want to see what it was they wanted.
Joined: Dec 11, 2004
Mar 17, 2008 16:04:00
If you turn on access logging (uncomment its entry in server.xml) you'll have a typical log that can be parsed with programs like webalizer.
This has log entries for every hit, including the response code.
How to ask a question...
Simple Servlet Examples
subject: Tomcat 404 - how to log bad url?
How to get the url of the page causing the 404 in custom error.jsp?
custom 404 error page
cannot connect to tomcat
disable tomcat version display
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015