-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------


Configuration:

Apache Jserv 1.0
Apache 1.3.9
Linux 2.2.12 (upgraded kernel from stock RH 6.0's 2.2.5 kernel)
stand-alone machine, with dial-up to ISP.
Blackdown JDK 1.1.7 v3 and JDK 1.2 prev2


Problem:


Tried the FAQ. I tried some of the tips that seems relevant to my
problem, to no avail.


I have been able to make Jserv work to some extent. That is,
http://127.0.0.1/jserv/ or http://localhost/jserv/ will show me the
"Apache JServ 1.0 Status" page. 

Clicking on "configured hosts" from that page shows me the Jserv
parameters (ServerName, ApJservManual, ApJservproperties, ....etc...),
mount point, and installed extensions (I have JServSSI and GNUJSP 1.0)
installed.

However, clicking on "Mapped servlet engines ajpv11://localhost:8007"
from the "http://localhost/jserv" page will give me an "Internal Server
Error". I do not get a jserv.log, but the above error was generated in
apache's error log (/usr/local/apache/logs/error_log):

"ApacheJServ/1.0: Error while reading configuration file:
java.io.FileNotFoundException: /usr/local/apache/conf/jserv.properties
(Permission denied)"
.... several times after running apache. Because it can't read
jserv.properties, I therefore do not get jserv.log.

This error was generated using Blackdown JDK 1.2. Just after running
Apache, I do a 'ps axfu' to see what user is it running in. It runs (
the child processes of the root httpd) under user nobody, as indicated
in the httpd.conf file.

Seeing it as a permission problem, I tried the following w/ both
Balckdown's JDK 1.1.7 and 1.2 to no avail:

* jserv.properties has root.root as the user.owner, with permissions set
as -rw-r--r--
* 'chmod 666 jserv.properties' (maybe write access is needed???),
restart apache. Same error.
* 'chmod 666 /usr/local/apache/logs' (so that user nobody can write to
the log directory???), restart. Same error.
* From within apache's log directory, 'touch jserv.log' and then 'chmod
666 jserv.log' and 'chmod 666 mod_jserv.log', restart. Same error.

If I use Blackdown's JDK 1.1.7 v3, I get the following error in apache's
error log instead:

"ApacheJServ/1.0: Error while reading configuration file:
java.io.FileNotFoundException: /usr/local/apache/conf/jserv.properties"

... without the "(Permission denied)" string.


I am baffled. Why can't it ead jserv.properties, when it can read
httpd-jserv.conf (The file "Included" from httpd.conf).
The jserv.properties file IS IN /usr/local/apache/conf!!!!


Here are the relevant parts of my configuration files:

Under /usr/local/apache/httpd.conf:
***********************************

# Include configuration for ApacheJServ-1.0
Include /usr/local/apache/conf/httpd-jserv.conf


Under /usr/local/apache/conf/httpd-jserv.conf (This file I know it
reads. That's why I have the /jserv/ page coming up):
**********************************************

###############################################################################
#                     Apache JServ Configuration
File                         #
###############################################################################

LoadModule jserv_module libexec/mod_jserv.so

<IfModule mod_jserv.c>
ApJServManual off
ApJServProperties /usr/local/apache/conf/jserv.properties
ApJServLogFile /usr/local/apache/logs/mod_jserv.log
ApJServLogLevel notice
ApJServDefaultProtocol ajpv11
#ApJServDefaultHost java.apache.org
ApJServDefaultPort 8007
ApJServSecretKey DISABLED
ApJServMount /servlets /root
ApJServMountCopy on
ApJServAction .jsp /servlets/org.gjt.jsp10.JSP10Servlet
ApJServAction .jhtml /servlets/org.apache.servlet.ssi.SSI
<Location /jserv/>
  SetHandler jserv-status

  order deny,allow
  deny from all
  allow from localhost
</Location>
</IfModule>


Finally, an ls of my /usr/local/apache/conf, just to prove that
jserv.properties is in there:
********************************************

ls -al /usr/local/apache/conf:

drwxrw-rw-   2 root     root         1024 Sep 11 13:41 .
drwxr-xr-x  12 root     root         1024 Sep  4 12:52 ..
-rw-r-----   1 root     root          348 Aug 17 05:43 access.conf
-rw-r-----   1 root     root          348 Aug 17 05:43
access.conf.default
-rw-r--r--   1 root     root         5448 Sep 11 13:41 httpd-jserv.conf
-rw-r--r--   1 root     root         5416 Sep 11 13:01 httpd-jserv.conf~
-rw-r-----   1 root     root        31398 Sep  4 21:08 httpd.conf
-rw-r-----   1 root     root        31303 Aug 17 05:43
httpd.conf.default
-rw-r-----   1 root     root        31425 Sep  4 21:02 httpd.conf~
-rw-rw-rw-   1 root     root         9605 Sep 11 12:51 jserv.properties
-rw-r--r--   1 root     root         9594 Sep  8 21:06 jserv.properties~
-rw-r-----   1 root     root        12441 Aug 17 05:43 magic
-rw-r-----   1 root     root        12441 Aug 17 05:43 magic.default
-rw-r-----   1 root     root         7354 Aug 17 05:43 mime.types
-rw-r-----   1 root     root         7354 Aug 17 05:43
mime.types.default
-rw-r-----   1 root     root          357 Aug 17 05:43 srm.conf
-rw-r-----   1 root     root          357 Aug 17 05:43 srm.conf.default
-rw-r--r--   1 root     root         5595 Sep  8 21:01 zone.properties
-rw-r--r--   1 root     root         5547 Sep  8 20:59 zone.properties~


John Salvo


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
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