aspose file tools*
The moose likes Servlets and the fly likes Checking the Log Files when Runtime exception occurs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Checking the Log Files when Runtime exception occurs" Watch "Checking the Log Files when Runtime exception occurs" New topic
Author

Checking the Log Files when Runtime exception occurs

PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212
Dump Question

Assume if i am executing some function , and assume a RuntimeException occurs on to the server side .

Where or what log files should be checked ?

Are these log files are same what we produced using Log4J ?? OR will it be based on server specific ?

Please tell me .
ryan sukale
Ranch Hand

Joined: Aug 11, 2007
Posts: 53
Hi Pavan,
I dont know how to work with Log4j but i do know one thing that when i encounter a runtime exception when executing applications in Tomcat, the details of the exception such as the stack trace are available in the logs directory of Apache. I believe this feature is application server specific and is different from the Log4j logging features.

Kindly let me know if i am mistaken in any way. Thanks.


SCJP 5.0, SCWCD 5.0, SCBCD 5.0
Surya Kant
Ranch Hand

Joined: Mar 29, 2005
Posts: 104
Yes Ryan is correct.Logging done using Log4j will be known to you.The server specific logs will be added to tomcat's logs
PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212
Thanks Ryan and Surya .

So if an RuntimeException occurs , the server specific log files would get filled ?? Am i right ??
Surya Kant
Ranch Hand

Joined: Mar 29, 2005
Posts: 104
Yes.If you dont want your logs to fill you can delete them manually.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Checking the Log Files when Runtime exception occurs
 
Similar Threads
Confusing SOAPFaultException
Pentaho
Netbeans deployment error
form data not passing to servlet file
HTTP 404 error problem