Hi!

I can tell you you are not alone!
Here's the repsonse to my questions about 2 weeks ago:
------------
Set

log.file=/var/log/jserv.trace

and make sure it is writable by the user as whom apache is run, e.g.,

touch /var/log/jserv.trace
chown httpd:httpd /var/log/jserv.trace

Then look in /var/log/jserv.trace to get the extra errors.

(Use the path to your log files instead of "/var/log".)

You'll also need to enable the servlet log channel by adding

log.channel.servletLog=true

to your jserv properties file. The messages should then show up in the
jserv.trace file (they do for me).
------------

[EMAIL PROTECTED] wrote:
> 
> 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]

-- 
Guenther Wieser      
creative-it/Guenther Wieser Software KEG
Student of Telematik at Graz University of Technology
http://www.creative-it.com        mailto:[EMAIL PROTECTED]
-> In A World Without Walls And Fences, Who Needs Windows And Gates? <-


----------------------------------------------------------------
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