Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: using <error-page> element

Joël "Wijngaarde [Us Media]"

2003-06-08

Replies:

Are you sure you added the error-page at the correct position inside the
web.xml file. Remember, order is important !

/ Joel

On Fri, 2003-06-06 at 23:24, Tim O'Dowd wrote:
> I am trying to setup an error page for 404 errors in tomcat4.1.24. The
> web.xml file worked fine originally. So I added the error-code element
> within the <web-app> element:
>
> <web-app>
> ...
> <--I added this part-->
>   <error-page>
>      <error-code>
>         404
>      </error-code>
>      <location>
>         /jsp/shared/Error_404.jsp
>      </location>
>   </error-page>
> <--end of part I added-->
> ...
> </web-app>
>
> When I start tomcat, i get an exception complaining about the content of
> web-app must contain .... and a parse error is reported at the last line
> (</web-app>) of the file. Does anyone see my error?
>
> thanks for any help.
> tim
>
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> http://join.msn.com/?page=features/virus
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
>
> 3
--
Jo�l Wijngaarde <joel@(protected)>
Us Media


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.