Date: Thu, 20 Apr 2000 10:19:08 +1000 From: Joe Shevland <shevlandj@kpi.com.au> To: Christoph Kukulies <kuku@gilberto.physik.RWTH-Aachen.DE> Cc: java@FreeBSD.ORG Subject: Re: Apache Jserv 1.1 and apache13 Message-ID: <38FE4CFC.80F318A7@kpi.com.au> References: <200004191857.UAA54354@gil.physik.rwth-aachen.de> <200004191902.NAA20351@nomad.yogotech.com> <20000419214930.A54692@gil.physik.rwth-aachen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Christoph Kukulies wrote: > > On Wed, Apr 19, 2000 at 01:02:01PM -0600, Nate Williams wrote: > > > Has anyone a working combination of Apache Jserv,apache server > > > and Java/JDK/JSDK? > > > > Working fine here. > > > > FreeBSD 3.4/JDK1.1.8/Apache-1.3.11-modSSL + hand-coded JServ additions. > > > > I compiled and installed the port. Things start looking better now. > > The make install tells me to do > a touch /var/log/jserv.log and make it writable for the owner of the httpd. > Well, it's root, isn't it? Shouldn't be, usually Apache runs as root initially then changes to a user defined in http(s)d.conf: often 'nobody' or 'www'. > But I also was wondering that suddenly > a /var/log/mod_jserv.log was there (0 bytes) which I definitely > didn't create by touch. There's two separate log files for Apache JServ: --- From jserv.conf --- # On Unix, this file must have write permissions by the owner of the JVM # process. In other words, if you are running Apache JServ in manual mode # and Apache is running as user nobody, then the file must have its # permissions set so that that user can write to it. # Syntax: ApJServLogFile [filename] # Default: "./logs/mod_jserv.log" # Note: when set to "DISABLED", the log will be redirected to Apache error log ApJServLogFile DISABLED Also check the jserv.properties file for the other log details. > And then I have this in httpd-error.log: (looks like mod_jserv aborts): > > [Wed Apr 19 21:36:02 2000] [notice] Apache/1.3.12 (Unix) ApacheJServ/1.1 configu > red -- resuming normal operations > java.io.IOException: Directory not writable: /var/log > at org.apache.java.io.LogWriter.<init>(LogWriter.java:287) > at org.apache.java.io.LogWriter.<init>(LogWriter.java:203) > at org.apache.jserv.JServLog.<init>(JServLog.java:92) > at org.apache.jserv.JServ.start(JServ.java:233) > at org.apache.jserv.JServ.main(JServ.java:158) > [Wed Apr 19 21:40:24 2000] [error] [client 192.168.1.119] File does not exist: / > usr/local/www/data/example/Hello > > (Hello is a class) Two separate problems I think, 4 minutes apart. Servlets I often put outside the web root. But I think if you 'chown' /var/log/jserv.log to the owner defined in your Apache config file the top exception will go. Look for a 'User ...' line. > Is it OK, btw, as the install script suggests, to do: > > # > # This should be changed to whatever you set DocumentRoot to. > # > <Directory "/usr/local/www/data"> > Include etc/apache/jserv/jserv.conf > > (Include without prefix?) I'd be putting the full path to it in there, but I usually install it under one directory /usr/local/apache and have JServ has a separate directory. Also, I don't know that the Include should go in the <Directory></> block, I usually put it at the end of the file. Relative paths usually get prepended with the Apache installation directory, though I don't know if the <Directory> block changes this rule. HTH, Joe > > > > > > > Nate > > -- > Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message -- Joe Shevland Principal Consultant KPI Logistics Pty Ltd http://www.kpi.com.au mailto:shevlandj@kpi.com.au "Support bacteria -- it's the only culture some people have!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38FE4CFC.80F318A7>