I have been having some trouble configuring JServ
to work with Apache on a Debian 2.1 Linux box.
The Apache JServ 1.0b3 Status web page is viewable,
as is the configured-hosts page. It displays the following information:
Server Name 192.168.1.11
ApJServManual FALSE (AUTOMATIC OPERATION)
ApJServProperties /usr/local/apache/etc/jserv.properties
ApJServDefaultProtocol ajpv11 (PORT 8007)
ApJServDefaultHost localhost (ADDR 127.0.0.1)
ApJServDefaultPort 8007
ApJServLogFile /usr/local/apache/var/log/jserv.log
(DESCRIPTOR 14)
ApJServMountCopy TRUE
MountPoint Server Protocol Host
Port
Zone
/servlets/ 192.168.1.11 ajpv11 localhost (ADDR 127.0.0.1)
8007 test
When attempting to view the mapped servlet engines page, I get:
The server encountered an internal error
or misconfiguration and was unable to complete your request.
Please contact the server administrator,
[EMAIL PROTECTED] and inform them of the time the
error occurred, and anything you might have done that
may have caused the error. (wish I could!)
The /var/log/jserv.log shows:
[01/05/1999 03:16:32:820] (INFO) wrapper: JVM Exited, restarting it (my
PID=6091)
[01/05/1999 03:16:32:826] (INFO) wrapper: Java VM spawned (PID=6299|PPID=6091)
[01/05/1999 03:16:36:860] (INFO) wrapper: JVM Exited, restarting it (my
PID=6091)
[01/05/1999 03:16:36:866] (INFO) wrapper: Java VM spawned (PID=6339|PPID=6091)
[01/05/1999 03:16:40:900] (INFO) wrapper: VM died too many times w/in 5
second intervals (6); no more tries
[01/05/1999 03:16:40:901] (INFO) wrapper: printing debugging information
(command line, env)
[01/05/1999 03:16:40:902] (INFO) wrapper: argument[ 1] /usr/local/JDK/bin/java
[01/05/1999 03:16:40:902] (INFO) wrapper: argument[ 2] org.apache.jserv.JServ
[01/05/1999 03:16:40:902] (INFO) wrapper: argument[ 3]
/usr/local/apache/etc/jserv.properties
[01/05/1999 03:16:40:903] (INFO) wrapper: environment[ 1]
PATH=/bin:/usr/bin:/usr/local/bin
[01/05/1999 03:16:40:903] (INFO) wrapper: environment[ 2]
CLASSPATH=/usr/local/src/Apache-JServ-1.0b3/src/java/Apache-JServ.jar:/usr/l
ocal/JSDK2.0/lib/jsdk.jar
[01/05/1999 03:19:59:398] (EMERGENCY) ajp11: can not connect to host
127.0.0.1:8007
[01/05/1999 03:19:59:399] (EMERGENCY) ajp11: connection fail
[01/05/1999 03:19:59:399] (ERROR) an error returned handling request via
protocol "ajpv11"
in httpd.conf I have the line:
ApJServMount /servlets /test
and
in jserv.properties:
zones=test
# Configuration file for each servlet zone (one per servlet zone)
# Syntax: [servlet zone name as on the zones list].properties=[full path
to conf
igFile] (String)
# Default: NONE
# Note: if the file could not be opened, try using absolute paths.
test.properties=/usr/local/apache/etc/test.properties
and in test.properties:
repositories=/usr/local/apache/servlets
The sofware I am using is:
Apache-JServ-1_0b3.tar.gz
jdk.1.1.7-v1a-glibc-x86.tar.gz
apache_1.3.3.orig.tar
jsdk20-solaris2-sparc.tar.Z
Apache was compiled with:
./configure --prefix=/usr/local/apache --enable-rule=SHARED_CORE
--enable-module=so --enable-module=status
JServ with:
./configure --with-jdk-home=/usr/local/JDK --with-jsdk=/usr/local/JSDK2.0
--with-apache-install=/usr/local/apache --enable-apache-conf
Well, obviously the Java VM dying is not good,
but I don't have any ideas as to the cause or how to fix it.
Nor do I fully understand zones, particularly the first reference
to /servlets in the ApJServMount statement.
Any clues?
Thanks in advance,
James
-------------------------
James Robertson
Step Two Designs Pty Ltd
SGML, XML & HTML Consultancy
http://www.steptwo.com.au/
[EMAIL PROTECTED]
"Beyond the Idea"
ACN 081 019 623
----------------------------------------------------------------
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]