wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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
Author

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

argol diomolpol
Greenhorn

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/logging.properties


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

Joined: Oct 29, 2001
Posts: 8839
    
    7

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]
 
wood burning stoves
 
subject: UncaughtException in Struts 1.x (java.lang.Error)
 
Similar Threads
help configuring log4j properties file to mirror java.util.logging (juli) already in place
Tomcat's default classpath??
Starting Tomcat from Eclipse Problem
Spring MVC Startup Problem
In tomcat6, System.err.println or System.out.println don't seem to work