Hi Tim,
One (maybe obvious) question:
Does your tiles-defs.xml definition for "public.error" have a path to your jsp?
If not, that could wreak all kinds of error havoc...
Tim Christopher wrote:
Hi,
I'm trying to setup custom error pages using Tomcat but keep on getting the following error:
[EMAIL PROTECTED]: Exception Processing ErrorPage[errorCode=404, location=/errors/404.do] ClientAbortException: java.net.SocketException: Software caused connection abort: socket write error at org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:331) <snip>rest of stack dump...</snip>
Here is what's in my files:
Web.xml -------------- <error-page> <error-code>404</error-code> <location>/errors/404.do</location> </error-page>
Struts-Config.xml
--------------------------
<action
path="/errors/404" type="org.apache.struts.actions.ForwardAction"
parameter="public.error" />
Thanks in advance for your help.
Tim
########################################################## Ps. As a matter of best practices should I be using the above to forward to the page (Tiles plug-in) or should I use the following, where BlankAction extends action and whose execute method always returns "success".
<action path="/errors/404" type="com.company_name.action.BlankAction"> <forward name="success" path="public.error" /> </action> ##########################################################
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]