This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 8836

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.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
It is sorta covered in the JavaRanch Style Guide.
subject: UncaughtException in Struts 1.x (java.lang.Error)
Similar Threads
Starting Tomcat from Eclipse Problem
Spring MVC Startup Problem
In tomcat6, System.err.println or System.out.println don't seem to work
Tomcat's default classpath??
help configuring log4j properties file to mirror java.util.logging (juli) already in place