tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S Ramakrishnan" <...@cisco.com>
Subject RE: log() ?
Date Tue, 27 Feb 2001 21:39:21 GMT
The Throwable argument is optional.
This is a different problem.

The GenericServlet has a log() service.
You do not need to seek ServletContext
to log messages within the HttpServlet methods
At any rate, you pl post the stack trace?

Rk
x77309

-----Original Message-----
From: Brett W. McCoy [mailto:bmccoy@chapelperilous.net]
Sent: Tuesday, February 27, 2001 1:33 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: log() ?


On Tue, 27 Feb 2001, Shahed Ali wrote:

> Sorry for this stupid question,
> but how do I use the log() method in servlets ?
>
> In JSP application.log() seems to work,
> but in servlets, I tried getServletContext().log("adad") etc and
> I keep getting NullPointerExceptions

The function signature is log(String message, Throwable, throwable).  Is
this what might be casuing the null pointer exception?

-- Brett
                                     http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
Stupidity, like virtue, is its own reward.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org


Mime
View raw message