-
1. Re: How to enable logging on Tomcat
peterj Sep 24, 2007 12:27 PM (in response to bredknap)The log files are created in server/xxx/log, where xxx is the configuration you are running, such as "default". The server/xxx/conf/jboss-log4j.xml file governs the logging, see the Log4J web site for documentation on Log4J.
-
2. Re: How to enable logging on Tomcat
bredknap Sep 24, 2007 12:50 PM (in response to bredknap)Hey Peter,
Thanks for the reply.
Below is the type of exception message I get when this problem occurs. At the bottom of the message it says 'note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.' These are the logs I'm trying to enable/view. How do I do this? Can these logs be filtered to include my application? Do you have any other suggestions on where I can look for the cause to this problem?
TIA,
Brian
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
root cause
java.lang.NullPointerException
note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs. -
3. Re: How to enable logging on Tomcat
peterj Sep 24, 2007 1:37 PM (in response to bredknap)The indicated log is at server/xxx/log/server.log.
Usually, the error also shows up in the console (unless, of course, you are running as a service and there si no console). -
4. Re: How to enable logging on Tomcat
bredknap Sep 24, 2007 2:24 PM (in response to bredknap)I can see the log file but I can't see any error in the log pertaining to what is happening. Is there any kind of filter that can be turned on/off that would include information on the problem?
-
5. Re: How to enable logging on Tomcat
peterj Sep 27, 2007 11:28 AM (in response to bredknap)Any error that is logged will show up in server.log. If there is no error logged, then the code that handled the error did not log the error.