Hello Everyone,
I encountered a problem while running a small
test application on
Tomcat. The server gives an HTTP Status 500 error along with an exception.
The actual error that I get is...
There is a note at the end which states : "
The full stack trace of the root cause is available in the Apache Tomcat/7.0.8 logs."
Where are these logs located ?
The only logs that I can see being updated are the ones located in my workspace:
"C:\J2EE workspace\StrutsPractice\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\logs"
Catalina Base is set as (In eclipse, VM arguments for Server Configuration)...
catalina.base="C:\J2EE workspace\StrutsPractice\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
and the "logging.properties" file in Tomcat/conf folder specifies juli.FileHandler.directory as :
FileHandler.directory = ${catalina.base}/logs
for these handlers...
1. catalina.org.apache.juli.FileHandler,
2. localhost.org.apache.juli.FileHandler,
3. manager.org.apache.juli.FileHandler,
4. host-manager.org.apache.juli.FileHandler
So I assumed that I was looking at the correct location (my workspace, as specified above) for the logs. Please correct me if I a wrong.
The logs at this location aren't really helpful, with output similar to this...
0:0:0:0:0:0:0:1 - - [03/May/2012:15:19:16 +0530] "GET /KurniawanChap02Struts/ HTTP/1.1" 500 1789
So my questions are...
1. Am I looking at the correct location for my logs ?
2. How do I get more detailed logs or how should I access the "full stack trace of the root cause" as stated in line 23 of the Server's error report ?