Re: FAQ, but help!

2004-02-20 Thread Tony Nakamura
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-code404/error-code
 location/404.html/location
 /error-page
 error-page
exception-typejava.io.FileNotFoundException/exception-type
location/500.jsp/location
 /error-page
 error-page
error-code500/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]

Re: FAQ, but help!

2004-02-20 Thread QM
On Fri, Feb 20, 2004 at 07:58:29AM -0600, Tony Nakamura wrote:

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

Yes and no. ;)

1/ Yes: check the servlet spec for method signatures. For example, a
servlet's doGet() throws (IIRC) just a ServletException; so any Servlet
subclasses must wrap exceptions up in a ServletException.

2/ No: #1 excludes subclasses of RuntimeException (e.g.
NullPointerException) and Error, which can be thrown at any time yet
needn't be declared in a method signature.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: FAQ, but help!

2004-02-19 Thread Shapira, Yoav

Howdy,

404.  I have the following in the %root%/my_app/conf/web.xml

It should be in WEB-INF/web.xml under your webapp.

First, I'm wondering if this is a bug on 4.0.4, and second, if there is
a
way around it without having to upgrade to the newer version.

What's a bug?  You haven't described what behavior you're seeing with
your current web.xml.

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]



Re: FAQ, but help!

2004-02-19 Thread Tony Nakamura
Hi,

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.  I've added the
entry to the web.xml
in my_app\WEB-INF directory, and it pretty made any of my apps unavailable.
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?

Thanks,


Tony




- Original Message - 
From: "Shapira, Yoav" [EMAIL PROTECTED]
To: "Tomcat Users List" [EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 11:02 AM
Subject: RE: FAQ, but help!



Howdy,

404.  I have the following in the %root%/my_app/conf/web.xml

It should be in WEB-INF/web.xml under your webapp.

First, I'm wondering if this is a bug on 4.0.4, and second, if there is
a
way around it without having to upgrade to the newer version.

What's a bug?  You haven't described what behavior you're seeing with
your current web.xml.

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]

RE: FAQ, but help!

2004-02-19 Thread Shapira, Yoav

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]



Re: FAQ, but help!

2004-02-19 Thread Tony Nakamura
Hi,

Wow, Shapira, you're really good at responding FAST ;)
I may not be inserting the tags in WEB-INF\web.xml correctly.
I'm on Tomcat 4.0.4.

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]

Re: FAQ, but help!

2004-02-19 Thread Tony Nakamura


- 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]

Re: FAQ, but help!

2004-02-19 Thread Tony Nakamura
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-code404/error-code
location/404.html/location
/error-page
error-page
   exception-typejava.io.FileNotFoundException/exception-type
   location/500.jsp/location
/error-page
error-page
   error-code500/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]