AxisServlet.init() is an implementation of HttpServlet.init(), and so you
cant change what gets thrown without changing the servlet spec and every
implementation thereof.

So, come up with a better solution. Either wrap your exception into a
ServletException, or a RuntimeException()

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 6:28 AM
Subject: AxisServlet's init() overloading


Hi All,

There are some situations where one has to overload AxisServlet's init()
method and sign somehow if there was a problem. This cannot be done because
of the AxisServlet's init() doesn't define 'thorws' clause in its signature.
Is there any reason to disallow throwing an exception in init ? Can be added
it to AxisServlet ?

Signature of javax.servlet.GenericServlet:
public void init() throws ServletException

And the implemented one in org.apache.axis.transport.http.AxisServlet
public void init() {...}

Br,
Andras
[EMAIL PROTECTED]

Reply via email to