From owner-freebsd-java Wed Apr 19 17:13:58 2000 Delivered-To: freebsd-java@freebsd.org Received: from www.kpi.com.au (www.kpi.com.au [203.39.132.210]) by hub.freebsd.org (Postfix) with ESMTP id 7006637B91C for ; Wed, 19 Apr 2000 17:13:53 -0700 (PDT) (envelope-from shevlandj@kpi.com.au) Received: from kpi.com.au (pA03.hbt.southcom.com.au [203.60.23.4]) by www.kpi.com.au (8.9.3/8.9.3) with ESMTP id KAA15471; Thu, 20 Apr 2000 10:13:33 +1000 (EST) (envelope-from shevlandj@kpi.com.au) Message-ID: <38FE4CFC.80F318A7@kpi.com.au> Date: Thu, 20 Apr 2000 10:19:08 +1000 From: Joe Shevland Organization: KPI Logistics Pty Ltd X-Mailer: Mozilla 4.72 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Christoph Kukulies Cc: java@FreeBSD.ORG Subject: Re: Apache Jserv 1.1 and apache13 References: <200004191857.UAA54354@gil.physik.rwth-aachen.de> <200004191902.NAA20351@nomad.yogotech.com> <20000419214930.A54692@gil.physik.rwth-aachen.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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.(LogWriter.java:287) > at org.apache.java.io.LogWriter.(LogWriter.java:203) > at org.apache.jserv.JServLog.(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. > # > > 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 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 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