Ok, now I have a lot of debuuging code from the server in my jserv.trace
file.
But if I call getServletContext().log("text") nothing appears in the
jserv.trace file.
Am I guessing wrong, but shouldn't the logs from the servlet go to this
file?


Ari Halberstadt wrote:
> 
> 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".)
> 
> >Hi!
> >
> >In my jserv.properties file I set log=true for debugging my servlets.
> >When I restart apache plus jserv all I get in my jserv.log is:
> >[04/04/1999 17:17:56:005] (INFO) wrapper: watching processes
> >(PID=1193,PPID=1192,VM PID=1199)
> >[04/04/1999 17:17:56:006] (INFO) wrapper classpath:
> >/usr/lib/java/lib/classes.zip:/usr/local/jserv/src/java/Apache-JServ.jar:/usr/l
> >ib/jsdk/lib/jsdk.jar:/usr/lib/adabas/lib/adabasd.jar:/usr/local/jserv/util_class
> >es/postgresql.jar:/home/gwieser/wartungsdb
> >[04/04/1999 17:17:56:006] (INFO) wrapper: Java VM spawned
> >(PID=1199|PPID=1193)
> >[04/04/1999 17:17:57:024] (INFO) wrapper: JVM Exited, restarting it (my
> >PID=1193)
> >[04/04/1999 17:17:57:026] (INFO) wrapper: Java VM spawned
> >(PID=1239|PPID=1193)
> >[04/04/1999 17:17:58:031] (INFO) wrapper: JVM Exited, restarting it (my
> >PID=1193)
> >[04/04/1999 17:17:58:032] (INFO) wrapper: Java VM spawned
> >(PID=1279|PPID=1193)
> >[04/04/1999 17:17:59:041] (INFO) wrapper: JVM Exited, restarting it (my
> >PID=1193)
> >[04/04/1999 17:17:59:042] (INFO) wrapper: Java VM spawned
> >(PID=1319|PPID=1193)
> >[04/04/1999 17:18:00:051] (INFO) wrapper: JVM Exited, restarting it (my
> >PID=1193)
> >[04/04/1999 17:18:00:052] (INFO) wrapper: Java VM spawned
> >(PID=1359|PPID=1193)
> >[04/04/1999 17:18:01:061] (INFO) wrapper: JVM Exited, restarting it (my
> >PID=1193)
> >[04/04/1999 17:18:01:062] (INFO) wrapper: Java VM spawned
> >(PID=1399|PPID=1193)
> >[04/04/1999 17:18:02:071] (INFO) wrapper: JVM Exited, restarting it (my
> >PID=1193)
> >[04/04/1999 17:18:02:072] (INFO) wrapper: Java VM spawned
> >(PID=1439|PPID=1193)
> >[04/04/1999 17:18:03:081] (INFO) wrapper: VM died too many times w/in 5
> >second intervals (6); no more tries
> >[04/04/1999 17:18:03:081] (INFO) wrapper: printing debugging information
> >(command line, env)
> >
> >So my VM crashes 5 time before JServ gives up restarting it.
> >When I set back log=false, everything works fine again.
> >
> >So what can I do to get my logs from the servlets?
> >--
> >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]
> 
> -- Ari Halberstadt mailto:[EMAIL PROTECTED] <http://www.magiccookie.com/>
> PGP public key available at <http://www.magiccookie.com/pgpkey.txt>
> 
> ----------------------------------------------------------------
> 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