----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Java Apache users:
Box: AMD K6-2 500 MHz 56Mb
OS: SuSE 6.4 (kernel 2.2.14)
Apache: 1.3.12
JServ: 1.1.1
JSDK: servlet-2.0.jar from JServ
JDK: 1.1.8 and 1.2.2
I have been struggling for two days now to get JServ 1.1.1 working. I
would really appreciate it if someone can point out the error of my
ways.
I think I have everything set up correctly according to the FAQ and all,
but no servlets will run.
In fact, no URL sent to the servlet zone will return anything, even if a
non-existent servlet is requested.
I have configured JServ to pre-load the IsItWorking example servlet, and
it does load it (I even made the servlet write some stuff into a log
file to make sure that init() was running, and it is).
But I can never get JServ to run the servlet.
None of the log files shows any errors (until the browser times out,
then you get the "stream closed prematurely" message).
The http://localhost/jserv/ shows the correct configuration parameters,
although it does not show any status for the zones I set up.
localhost/jserv/engine/0/ never returns (nor does it report any errors
in the logs, save the "stream closed prematurely" when the browser
finally times out).
The JVM is still running after all of this.
I get exactly the same behavior no matter if I use jdk1.2.2 or jdk1.1.8
to run jserv.
I include my log files and condensed (no comments) versions of my
configuration files.
First, the logs as they are after rcapache start, looking at /jserv/,
trying to access IsItWorking, trying to access a servlet that isn't
there, and shutting down with rcapache stop.
access_log:
127.0.0.1 - - [22/May/2000:11:24:32 -0400] "GET
/jserv/status?module=lyonlinux.dyndns.org HTTP/1.0" 200 4581
127.0.0.1 - - [22/May/2000:11:30:11 -0400] "GET /servlets/IsItWorking
HTTP/1.0" 200 -
127.0.0.1 - - [22/May/2000:11:42:28 -0400] "GET /servlets/DoesNotExist
HTTP/1.0" 200 -
error_log:
[Mon May 22 11:22:40 2000] [notice] Apache/1.3.12 (Unix) (SuSE/Linux)
ApacheJServ/1.1.1 mod_fastcgi/2.2.2 DAV/0.9.14 mod_perl/1.21 PHP/3.0.15
configured -- resuming normal operations
[Mon May 22 11:22:40 2000] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Mon May 22 12:54:47 2000] [notice] caught SIGTERM, shutting down
jserv.log:
[22/05/2000 11:22:45:487 EDT] ApacheJServ/1.1.1 is starting...
[22/05/2000 11:22:45:614 EDT] Connection authentication is disabled
[22/05/2000 11:22:45:961 EDT] Connection allowed from
localhost/127.0.0.1
[22/05/2000 11:22:45:987 EDT] Listening on port 8007 accepting 50
maximum connections
[22/05/2000 11:22:46:147 EDT] Creating Servlet Zones
[22/05/2000 11:22:46:147 EDT] Servlet Zone root initializing...
[22/05/2000 11:22:46:147 EDT] - Using configuration file:
/etc/httpd/jserv/zone.properties
[22/05/2000 11:22:46:478 EDT] Initialisation timeout: 10 seconds
[22/05/2000 11:22:46:478 EDT] Destroy timeout: 10 seconds
[22/05/2000 11:22:46:478 EDT] Session timeout: 1800 seconds
[22/05/2000 11:22:46:478 EDT] New session timeout: 1800 seconds
[22/05/2000 11:22:46:478 EDT] Session check frequency: 30 seconds
[22/05/2000 11:22:46:479 EDT] Autoreload on zone file changes: true
[22/05/2000 11:22:46:479 EDT] Autoreload on classfile changes: true
[22/05/2000 11:22:46:519 EDT] Default initArgs: {}
[22/05/2000 11:22:46:589 EDT] Creating new sessions hashtable.
[22/05/2000 11:22:47:166 EDT] IsItWorking: started
[22/05/2000 11:22:47:451 EDT] Servlet Zone root initialization complete
[22/05/2000 11:30:11:155 EDT] AJP Protocol Error: java.io.IOException:
Stream closed prematurely
[22/05/2000 11:42:28:159 EDT] AJP Protocol Error: java.io.IOException:
Stream closed prematurely
[22/05/2000 12:54:47:774 EDT] Terminating ApacheJServ/1.1.1...
[22/05/2000 12:54:47:780 EDT] Closing the server socket
[22/05/2000 12:54:47:792 EDT] Terminating root
[22/05/2000 12:54:47:798 EDT] Destroying Servlets
[22/05/2000 12:54:47:916 EDT] Destroying servlet IsItWorking
[22/05/2000 12:54:47:962 EDT] ApacheJServ/1.1.1 terminated.
mod_jsev.log:
[22/05/2000 11:22:35:941] (INFO) Apache-JServ 1rst initialization: JVM
will be started later 1 6950 6949
[22/05/2000 11:22:37:207] (INFO) Apache Module was cleaned-up
[22/05/2000 11:22:39:884] (INFO) Apache-JServ 2nd initialization
starting JVM now: 1 6951 1
[22/05/2000 11:22:39:952] (INFO) wrapper classpath:
>
/usr/lib/jdk1.1.8/lib:/usr/lib/apache/ApacheJServ.jar:/home/httpd/classes/se
rvlet-2.0.jar
[22/05/2000 11:22:39:953] (INFO) wrapper: Java VM spawned (PID=6956,
PPID=6954)
[22/05/2000 12:54:47:677] (INFO) Apache Module was cleaned-up
[22/05/2000 12:54:47:677] (INFO) Wrapper: Shutting down JServ (PID=6954)
(sig 15)
[22/05/2000 12:54:47:751] (INFO) wrapper: Terminating JServ (PID=6954,
VM PID=6956)
[22/05/2000 12:54:47:769] (INFO) ajp12: sending shutdown signal
Now, a ps listing for the server and the JVM while they were running:
UID PID PPID C STIME TTY TIME CMD
root 6951 1 0 11:22 ? 00:00:01 /usr/sbin/httpd -f
/etc/httpd/httpd.conf -D MODULES -D JSERV -D DAV -D PERL -D PHP
wwwrun 6956 6954 0 11:22 ? 00:00:02
/usr/lib/jdk1.1.8/bin/linux/native_threads/java org/apache/jserv/JServ
/etc/httpd/jserv/jserv.properties
Now, the non-comment lines of my config files:
jserv.conf:
LoadModule jserv_module /usr/lib/apache/mod_jserv.so
<IfModule mod_jserv.c>
ApJServManual off
ApJServProperties /etc/httpd/jserv/jserv.properties
ApJServLogFile /var/log/httpd/mod_jserv.log
ApJServLogLevel info
ApJServDefaultProtocol ajpv12
ApJServDefaultHost localhost
ApJServDefaultPort 8007
ApJServSecretKey /etc/httpd/jserv/jserv.secret.key
ApJServMount /servlets /root
ApJServMount /servlet /root
ApJServMountCopy on
<Location /jserv/>
SetHandler jserv-status
order deny,allow
deny from all
allow from 127.0.0.1
</Location>
</IfModule>
jserv.properties:
wrapper.bin=/usr/lib/jdk1.1.8/bin/java
wrapper.path=/usr/lib/jdk1.1.8/bin
wrapper.classpath=/usr/lib/jdk1.1.8/lib
wrapper.classpath=/usr/lib/apache/ApacheJServ.jar
wrapper.classpath=/home/httpd/classes/servlet-2.0.jar
bindaddress=localhost
port=8007
zones=root
root.properties=/etc/httpd/jserv/zone.properties
pool=false
pool.capacity=10
pool.controller=org.apache.java.recycle.DefaultController
security.selfservlet=true
security.maxConnections=50
security.allowedAddresses=127.0.0.1
security.authentication=false
security.secretKey=/etc/httpd/jserv/jserv.secret.key
log=true
log.file=/var/log/httpd/jserv.log
log.timestamp=true
log.dateFormat=[dd/MM/yyyy HH:mm:ss:SSS zz]
log.queue.maxage = 5000
log.queue.maxsize = 1000
log.channel.info=true
log.channel.servletException=true
log.channel.jservException=true
log.channel.warning=true
log.channel.servletLog=true
log.channel.critical=true
log.channel.debug=true
zone.properties:
repositories=/home/httpd/servlets
autoreload.classes=true
autoreload.file=true
init.timeout=10000
destroy.timeout=10000
session.useCookies=true
session.timeout=1800000
session.checkFrequency=30000
singleThreadModelServlet.initialCapacity=5
singleThreadModelServlet.incrementCapacity=5
singleThreadModelServlet.maximumCapacity=10
servlets.startup=IsItWorking
Thank you for your time,
Bruce Lyon
[EMAIL PROTECTED]
--
--------------------------------------------------------------
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]