An update on this issue..
I changed my 500.jsp to a simple HTML file, 500.html, and
it started working.  I am still not sure why, so I will have to do
some more hacking around.  Thanks for everyone's advice.

I do have one more question to ask, if I may.  Is there a list of
all throwable exceptions by servlet and jsp?

Thanks!


Tony


----- Original Message ----- 
From: "Tony Nakamura" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, February 19, 2004 3:21 PM
Subject: Re: FAQ, but help!


> Hi,
>
> I didn't have the tags at the correct place in the WEB-INF\web.xml file.
> I placed them in the correct places, but I'm just back to square-one.
> I have the following entries, but I am still getting the 500 error page
with
> java.io.FileNotFoundException generated by Tomcat.
>
> <error-page>
>     <error-code>404</error-code>
>     <location>/404.html</location>
> </error-page>
> <error-page>
>    <exception-type>java.io.FileNotFoundException</exception-type>
>    <location>/500.jsp</location>
> </error-page>
> <error-page>
>    <error-code>500</error-code>
>    <location>/500.jsp</location>
> </error-page>
>
>
> ???
>
> Thanks,
>
>
> Tony
>
> ----- Original Message ----- 
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, February 19, 2004 11:49 AM
> Subject: RE: FAQ, but help!
>
>
>
> Howdy,
>
> >There are two web.xml, I guess?  There is one in %root%\conf\web.xml
> >(sorry,
> >it wasn't
> >in the my_app directory),  which I can use custom pages for 404 errors
> >after
> >adding entries,
> >and there is another one in WEB-INF  directory as well.
>
> Yes.  The first is for all tomcat webapps, and you shouldn't really use
> it for your own stuff.  The second is for your own webapp, and it's the
> one you should use.
>
> >I've added the entry to the web.xml
> >in my_app\WEB-INF directory, and it pretty made any of my apps
> unavailable.
>
> Impossible.  Even if you muck up your web.xml, it would only make your
> webapp unavailable.  It won't affect others.  (Messing up conf/web.xml
> would make all your webapps broken, which is another reason not to use
> conf/web.xml).
>
> >I get 404 with
> >"The requested resource is not available".  As soon as I delete the
> entries
> >from the web.xml
> >in WEB-INF again, then apps begin working again.
> >
> >Any ideas?
>
> Are you sure you put the error-page directives in the right place in
> web.xml, if you're using tomcat 4.x?  What tomcat version are you using,
> btw?
>
> Yoav Shapira
>
>
>
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
proprietary
> and/or privileged.  This e-mail is intended only for the individual(s) to
> whom it is addressed, and may not be saved, copied, printed, disclosed or
> used by anyone else.  If you are not the(an) intended recipient, please
> immediately delete this e-mail from your computer system and notify the
> sender.  Thank you.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to