On Fri, 16 Mar 2001, Ben Galbraith wrote:

> I spent some time fooling with logs before I realized that if you override:
> 
>   Servlet.init(ServletConfig config)
> 
> you must call this somewhere in your new init() method:
> 
>   super.init(config)
> 
> otherwise the servlet container's logs don't get turned on.
> 
> 

This is one of the main reasons that the init() method -- without any
parameters -- was added.  That way, you don't get caught by this very
common mistake, which usually also leads to NullPointerException problems.

Craig McClanahan


Reply via email to