Hello,
Apache Jserv seems to have some minor problems with logging to
jserv.log.
Upon server start up, the jserv.log is created owned by root with
permisions 644 (if you start the server as root). This is fine
for apache (even if the apache server process id changes owner
for example to nobody [setuid]). But it does not appear to be fine for
jserv. If apache setuids to nobody, then nobody has to have permissions
to write to jserv.log. This is a problem since most people have their
apache setuid to another user and it is a pain to constantly change the
permissions on jserv.log after log rotation.
Also, at least on my install (redhat5.2 and latest Apache Jserv), the
log.file param in jserv.properties MUST have an absolute path. If not,
if puts a / in front of whatever you put there. Therefore log.file=jserv.log
means that your log file is thought to be in the root directory /jserv.log.
Now that logging is working better however and I am getting lots of debug
info from my servlet, I still cannot write to it from my servlet.
This code does not write to the jserv.log file:
public class MyClass extends HttpServlet {
public void init(ServletConfig config) throws ServletException {
super.init(config);
config.getServletContext().log("HELLO THERE");
Any ideas?
Thanks in advance.
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]