On Mar 25, 2014, at 10:58 AM, John Smith <tomcat.ran...@gmail.com> wrote:

>> We see 404 error in localhost_access so this the place from where we can
>> dig into.
>> Is there any way we can enhance the logging/information in
>> localhost_access_log.
>> Or then how can debug what happens between user requests and 404 response,?
>> 
> 
> Outside of performance monitoring tools, you might try a custom 404 error
> that points to a servlet. Within that servlet you can capture information
> and log to a separate 404 log file (say, using LogBack). There are a few
> pages on the web that describe this process. Here's one:
> 
> http://www.journaldev.com/1973/servlet-exception-and-error-handling-example-tutorial
> 
> Best,
> John

Or if possible, connect with a debugger.

  http://wiki.apache.org/tomcat/FAQ/Developing#Debugging

Add some break points in your code and walk through till you find what is 
generating the 404.

Dan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to