Actually, I've managed to answer my own question - the <location> path needs to be from the web root of Tomcat. Now its working fine, but with an interesting problem. Http Status 401 actually just means that authentication is required, which means that the site is automatically redirecting to the error page before asking for authentication ... is there any way of solving this? Or is it time I accepted I should be using FORM authentication rather than BASIC???
Cheers all Adam -----Original Message----- From: Sefton, Adam [mailto:[EMAIL PROTECTED]] Sent: 02 July 2002 16:39 To: 'Tomcat Users List' Subject: Error on startup when using custom error pages Hi, I'm trying to pick up error codes and display custom error pages. The one I'm working with currently is the 401 error in the case of failed logins. I've added the following in my /conf/web.xml: <error-page> <error-code>401</error-code> <location>error.html</location> </error-page> and I have error.html in the conf directory. When I try to start the Tomcat server, I get the following errors: ERROR reading java.io.FileInputStream@e06940 At Line 849 /web-app/error-page/ ERROR reading java.io.FileInputStream@90c06f At Line 849 /web-app/error-page/ ERROR reading java.io.FileInputStream@766806 At Line 849 /web-app/error-page/ ERROR reading java.io.FileInputStream@c623af At Line 849 /web-app/error-page/ Does anyone have any ideas? I recall reading somewhere that the custom error setup with TOmcat was quite buggy, is this the problem? I am using Tomcat 4.0.3 standalone on Win2k Cheers Adam ********************************************************************** This message may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. ********************************************************************** -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
