----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi all,

I have installed Apache 1.3 with JServ 1.0 a couple days ago. I use WinNT
4.0 and WebMacro 0.94. Everything works fine except log() method  in my
servlet.
When I try to write to log file using log(String msg) in my servlet I get 
an exception:

java.lang.AbstractMethodError
 at javax.servlet.GenericServlet.getServletName(GenericServlet.java:368)
 at javax.servlet.GenericServlet.log(GenericServlet.java:300)
 at CommuServlet.doGet(CommuServlet.java:22)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
 at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:317)
 at org.apache.jserv.JServConnection.run(JServConnection.java:188)
 at java.lang.Thread.run(Thread.java:484)

But if I get ServletContext and use servletContext.log("error message") no
exception occure. (before I use IPlanet web sever and I have a lots of
servlet and changing every log line is very dificult).

Anyway it should works property, shouldn't it?

Michal Galinski





--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to