> this line is not being accpeted on compiling:
>
[quoted text clipped - 13 lines]
> UnavailableException...
> pls explain.. thank you.. Frances
A "deprecated" message is (normally) a warning, not an error, meaning that the
source was compiled and you can run it. Further, UnavailableException is not
deprecated, but some of its constructors/methods are: specifically, the ones
that deal with a servlet reference.
Frances Del Rio <fdr58@yahoo.com> said:
>throw new UnavailableException(this, "chatprops not set in servlet init
>parameters");
>
>it says that "UnavailableException" has been deprecated.. usu. I look
>up the deprecated stuff in API and it often says what it's been replaced
>with... but in this case it says it has "no replacement"...
Hmm? Where exactly do you find the statement of any constructor of
UnavailableException being deprecated with no replacement?
Looking at the servler API javadocs at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/servletapi/index.html
I find that two constructors of UnavailableException have been
deprecated, but replacements have been specified for both.
>so: I tried using "ServletException" but it still won't compile.. also
>tried just "Exception" but no go either.. (shouldn't "Exception" work?
>since it's part of java.lang package?)
Hmm.. you didn't tell which class/method it was where you were
trying to create (and throw) this exception. For example, if it
was an init() method within a class implementing Servlet,
throwing ServletException (or any subclass of it - including
UnavailableException) is ok, but throwing plain Exception is
not (because Servlet.init() is only declared to throw
ServletExceptions (and subclasses of ServletException).
>(also why has this been "deprecated" when in fact I'm using same version
>of Tomcat that I first downloaded a last summer (5.0.27)? or does
>Tomcat ship with deprecated stuff? I mean b/c Servlet API that shipped
>w/Tomcat DOES list UnavailableException...
>pls explain.. thank you.. Frances
The two constructors of UnavailableException are deprecated as of
Servlet API version 2.2, which was published in late 1999, so
they have been deprecated for quite a long time.

Signature
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)