Hello all: I have this directives in my web.xml file: <!-- Application wide error page --> <error-page> <exception-type>java.lang.Throwable</exception-type> <location>/error.do</location> </error-page>
This is supposed to invoke this action in the struts config file: <action path="/error" type="action.ErrorAction"> <forward name="errorPage" path="/errorPage.do" redirect="true"/> </action> <action path="/errorPage" forward="page.error"/> The page.error outputs a generic error page. When I throw an exception from an action class, it works as expected, invoking the ErrorAction and then giving me the error page. But, when I throw an exceptio from a JSP page, it does not call the action and I get this exception in the tomcat logs: 2005-06-24 18:20:42 [EMAIL PROTECTED]: Exception Processing ErrorPage[exceptionType=java.lang.Throwable, location=/error.do] java.lang.IllegalStateException at org.apache.coyote.Response.reset(Response.java:296) at org.apache.coyote.tomcat5.CoyoteResponse.reset(CoyoteResponse.java:631) at org.apache.coyote.tomcat5.CoyoteResponse.reset(CoyoteResponse.java:887) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:389 ) at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java: 225) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:296) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:372) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:694) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:626) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:644) at java.lang.Thread.run(Thread.java:595) What can I do to fix this? Thanks, Neil -- Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com FREE! Valuable info on how your business can reduce operating costs by 17% or more in 6 months or less! http://newsletter.JAMMConsulting.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]