aspose file tools*
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
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: 8924
    
    9

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UncaughtException in Struts 1.x (java.lang.Error)