Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Struts and the fly likes UncaughtException in Struts 1.x (java.lang.Error) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "UncaughtException in Struts 1.x (java.lang.Error)" Watch "UncaughtException in Struts 1.x (java.lang.Error)" New topic

UncaughtException in Struts 1.x (java.lang.Error)

argol diomolpol

Joined: Jun 05, 2007
Posts: 15
I am try to log java.lang.Error, and for some reasons it is not logged using struts. I have situation where compiled files are not in right version and e.g class is using static filed from other class which is not synchnoized (excepted expetion: java.lang.Error: Unresolved compilation problem: )
Using simple servlets such exception will be in tomcat logs defined in $TOMCAT_HOME/conf/

So maybe struts handles such exceptions and some configuration is required ?
Joe Ess

Joined: Oct 29, 2001
Posts: 9191

Struts catches uncaught exceptions in ActionServlet but does not log them. It has been a long time since I have worked with Struts, but the only workaround we had at the time was to edit ActionServlet to log the exception.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: UncaughtException in Struts 1.x (java.lang.Error)
It's not a secret anymore!