On Friday, March 19, 1999 6:15 PM, Raghunandan Havaldar
[SMTP:[EMAIL PROTECTED]] wrote:
> as far as I know, I get a NullpointerException when
> a servlet tries to 'log', cause the GenericServlet
> created by the JServ engine is somehow 'not initializing'
> the GenericServlet in the 'expected' manner.
> 
> This is one reason, I have toughing it out trying to
> 'log' info to either System.out stream or a default
> log stream.
> 
> any ideas anybody ?. - especially at the Apache JServ team.
> 

Ted Stockwell wrote:
>
> When you create a servlet and override the init function you must be sure
to
> call super.init(ServletConfig) first thing.
> This will get the GenericServlet initialized properly and get rid of your
> NullPointerException.
> 
> create a servlet like this....
> 
> public class MyServlet extends HttpServlet {
>       public void init(ServletConfig config)
>       throws ServletException         {
>               super.init(config);
>               <...your stuff here...>
>       }
> }

This is interesting, but to prevent this
drifting off, has anyone got a reply to
my original question.  I have the correct
"super.init(config)" in the init, and the
servlet runs OK, Calling 
  GenericServlet.log(String) or
  ServletContext.log(String) or
  ServletContext.log(Exception, String)
seems to work, but I just can't find the 
output.

Can anyone help me find it, or help me
configure Apache or Jserv to direct it 
somewhere where I can find it.

Thanks,

Frank.

--
Frank Carver 
[ Personal: [EMAIL PROTECTED]   http://www.io.com/~efficacy ]
[ At Work:  [EMAIL PROTECTED]    tel +44 (0)1473 227371 ]




----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to