I'm having a probem trying to configure a servlet with Apache JServ. I
finally got Apache 1.3.4 compiled with JServ 1.0b3. Then I configured it
to autoload JServ, which doesn't work, so I have to start it manually:
java -cp
/usr/local/jserv/lib/jsdk.jar:/usr/local/jserv/lib/Apache-JServ.jar:
$CLASSPATH org.apache.jserv.JServ
/usr/local/apache/conf/jserv.properties &
The servlet I'm trying to configure (UTF8Mirror.class) is located in
/usr/local/apache/servlets
According to jserv.log, it appears to be initialized, but when I try
to
access http://localhost/servlets/UTF8Mirror, I get a "404 Not found". It
appears that Apache isn't even talking to JServ, since it doesn't
respond
to any of these URL's /jserv/, /servlets/.
I've read the FAQ's and Howto's, but I'm stuck. If anyone could give me
some tips, I'd appreciate it.
thanks in advance,
Walter
/usr/local/apache/conf/httpd.conf
Include /usr/local/apache/conf/jserv.conf
-----------
/usr/local/apache/conf/jserv.conf
# Note: this file should be appended to httpd.conf
# Whether Apache must start Apache JServ or not (On=Manual
Off=Autostart)
# Syntax: ApJServManual [on/off]
ApJServManual off
ApJServProperties /usr/local/apache/conf/jserv.properties
ApJServLogFile /usr/local/apache/logs/mod_jserv.log
ApJServMount /servlets /root
# Enable the Apache JServ status handler with the URL of
# "http://servername/jserv/" (note the trailing slash!)
# Change the "deny" directive to restrict access to this status page.
<Location /jserv/>
SetHandler jserv-status
order deny,allow
allow from localhost
</Location>
-------------------
/usr/local/apache/conf/jserv.properties
wrapper.bin=/opt/jdk1.2/bin/java
wrapper.classpath=/usr/local/jserv/lib/Apache-JServ.jar
wrapper.classpath=/usr/local/jserv/lib/jsdk.jar
root.properties=/usr/local/apache/conf/zone.properties
log=true
log.file=/usr/local/apache/logs/jserv.log
-------------------------
/usr/local/apache/conf/zone.properties
repositories=/usr/local/apache/servlets
autoreload.classes=true
autoreload.file=true
servlets.startup=UTF8Mirror
---------------------------
/usr/local/apache/logs/error_log
httpd: [Fri May 7 14:23:27 1999] [error] [client 127.0.0.1] File does
not
exist: /usr/local/apache/htdocs/servlets
httpd: [Fri May 7 14:25:04 1999] [error] [client 127.0.0.1] File does
not
exist: /usr/local/apache/htdocs/jserv/
httpd: [Fri May 7 14:39:58 1999] [error] [client 127.0.0.1] File does
not
exist: /usr/local/apache/htdocs/servlets/HelloWorldServlet
httpd: [Fri May 7 15:17:11 1999] [error] [client 127.0.0.1] File does
not
exist: /usr/local/apache/htdocs/servlets/UTF8Mirror
-------------
/usr/local/apache/conf/logs/jserv.log
[10/05/1999 12:17:27:403 GMT+02:00] JServ is starting...
[10/05/1999 12:17:27:475 GMT+02:00] WARNING: connection authentication
is
disabled
[10/05/1999 12:17:27:959 GMT+02:00] Connection allowed from
localhost/127.0.0.1
[10/05/1999 12:17:27:962 GMT+02:00] Listening on port 8007 accepting 50
maximum connections
[10/05/1999 12:17:28:148 GMT+02:00] Creating Servlet Zones
[10/05/1999 12:17:29:593 GMT+02:00] UTF8Mirror: init
[10/05/1999 12:17:29:672 GMT+02:00] HelloWorldServlet: init
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]