Servlet API: decprecated Exception..

From: Frances Del Rio (fdr58_at_yahoo.com)
Date: 03/28/05


Date: Mon, 28 Mar 2005 14:51:33 -0500

this line is not being accpeted on compiling:

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"... 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?)

(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



Relevant Pages

  • Re: Servlet API: decprecated Exception..
    ... UnavailableException being deprecated with no replacement? ... Looking at the servler API javadocs at ... I mean b/c Servlet API that shipped ...
    (comp.lang.java.help)
  • Re: Servlets, classpath and NoClassDefFoundError
    ... and I added the classes dir to my classpath when ... compiling both Login.java and my servlet application, ... > depends on which Web Container and Application Context you are currently ...
    (comp.lang.java.programmer)
  • Re: applet to servlet
    ... to perform object serialization from an applet to a servlet. ... because in both the applet and servlet I defined the class TableData as an ... After compiling, they ...
    (comp.lang.java.help)
  • Re: tomcat error..
    ... the servlet and find line causing error, which is quite useful, but sometimes it doesn't tell you anything ... If the error accurs during compiling, then usually you can get the error line. ...
    (comp.lang.java.help)
  • Tomcat 5.0.28 problem - My servlet doesnt work
    ... I have a problem with getting a Java Servlet work within Tomcat 5.0.28. ... where the compiling went right: ...
    (comp.lang.java.programmer)