----------------------------------------------------------------
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!!!
----------------------------------------------------------------

I'm running RedHat 6.0 Linux, Apache 1.3.9, JServ 1.1b3, jsdk 2.0, and
Java JDK 1.1.8 from IBM.

Servlets work with the servletrunner, but I can't get things to work
from Apache. After I kill -HUP apache, here's what I get in the error log: 

    [Sun Oct 31 20:30:46 1999] [notice] SIGHUP received.  Attempting to restart
    [Sun Oct 31 20:30:46 1999] [notice] Apache/1.3.9 (Unix) ApacheJServ/1.1b3 
PHP/3.0.12 configured -- resuming normal operations
    java.lang.NullPointerException
        at org.apache.jserv.JServ.fail(Compiled Code)
        at org.apache.jserv.JServ.fail(Compiled Code)
        at org.apache.jserv.JServ.start(Compiled Code)
        at org.apache.jserv.JServ.main(Compiled Code)
    java.lang.NullPointerException
        at org.apache.jserv.JServ.fail(Compiled Code)
        at org.apache.jserv.JServ.fail(Compiled Code)
        at org.apache.jserv.JServ.start(Compiled Code)
        at org.apache.jserv.JServ.main(Compiled Code)

Another one of these stack traces shows up every 10 seconds or so. 

Here's what mod_jserv.log says (a few minutes after Apache is restarted):

    [31/10/1999 20:31:51:999] (ERROR) wrapper: printing debugging information (command 
line, env)
    [31/10/1999 20:31:51:999] (ERROR) wrapper: argument[ 0] /usr/local/java/bin/java
    [31/10/1999 20:31:51:999] (ERROR) wrapper: argument[ 1] org.apache.jserv.JServ
    [31/10/1999 20:31:51:999] (ERROR) wrapper: argument[ 2] 
/usr/local/apache/conf/jserv/jserv.properties
    [31/10/1999 20:31:51:999] (ERROR) wrapper: environment[ 0] 
PATH=/bin:/usr/bin:/usr/local/bin
    [31/10/1999 20:31:51:999] (ERROR) wrapper: environment[ 1] 
CLASSPATH=/home/httpd/servlet/lib/ApacheJServ.jar:/usr/local/jsdk/lib/jsdk.jar

Any idea what the problem might be? (I'd check the FAQ if it were
still online.)

Also, where would I add a -nojit flag to get line numbers on the
stack trace?

Jack Orenstein

-- This is not a disclaimer --


Here are jserv.conf and jserv.properties with comments
removed. httpd.conf includes jserv.conf.

<<< jserv.conf

LoadModule jserv_module /usr/local/apache/libexec/mod_jserv.so

<IfModule mod_jserv.c>
ApJServManual off
ApJServProperties /usr/local/apache/conf/jserv/jserv.properties
ApJServLogFile /usr/local/apache/logs/mod_jserv.log
ApJServLogLevel notice
ApJServDefaultProtocol ajpv12
ApJServDefaultPort 8007
ApJServSecretKey DISABLED
ApJServMount /servlet/hello ajpv11://zack:8007/hello
ApJServMountCopy on
<Location /jserv/>
  SetHandler jserv-status
  
  order deny,allow
  deny from all
  allow from localhost
</Location>
</IfModule>

<<< jserv.properties

wrapper.bin=/usr/local/java/bin/java
wrapper.class=org.apache.jserv.JServ
wrapper.classpath=/home/httpd/servlet/lib/ApacheJServ.jar
wrapper.classpath=/usr/local/jsdk/lib/jsdk.jar
bindaddress=localhost
port=8007
zones=hello
hello.properties=/home/httpd/servlet/zone.properties
pool=false
pool.capacity=10
pool.controller=org.apache.java.recycle.DefaultController
security.selfservlet=true
security.maxConnections=50
security.authentication=false
log=true
log.file=/usr/local/apache/logs/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.servletException=true
log.channel.jservException=true
log.channel.warning=true
log.channel.servletLog=true
log.channel.critical=true


--
--------------------------------------------------------------
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