You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Yu, John" <Jo...@compuware.com> on 2004/11/02 16:59:50 UTC

GlobalException doesn't work

Hi,

I'm using Struts 1.1 with Tomcat (bundled with JBoss) and got the 500 error
page when 
the "execute" method of an action class throws ClassNotFoundException. I
have defined 
global exceptions, which I think should be used when a ServletException
happens and 
directs me to the correct error page I defined. It works if I catch the
ClassNotFoundException 
and re-throw it as a ServletException by myself, but I don't think I'm
supposed to do that
according to Struts online documentation.

javax.servlet.ServletException: Servlet execution threw an exception
	
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
69)
	
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:455)
	
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
	
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
	
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	
b20460.application.presentation.filters.SetCharacterEncodingFilterB20460Web.
doFilter(SetCharacterEncodingFilterB20460Web.java:157)

Any insights into this?

Thanks in advance,
John Yu




The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org