Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
argol diomolpol
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 9264
10
Linux Mac OS X Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic