Any <error-page> elements must come after <welcome-file-list> and before
<tablib> elements. The error message gives you enough info to put it in the
correct order.
"Tim O'Dowd" <todowd@(protected)
news:BAY2-F19PgZpGMFdmdu00003aba@(protected)...
> 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)