I have been struggling to set up JServ for several days now and have not
yet been able to
get it to work. Any help would be appreciated. My setup is the following:
        
        Pentium system
        Red Hat Linux 5.1
        Blackdown java jdk117_v1a
        JServ 1.0b3 (compiled as DSO)
        Apache 1.3.4

The problem...

Apache works fine serving pages, executing scripts and running SSIs.
JServ seems to start up fine, (see the jserv.log file below)
The jserv status page loads but:

When requesting "http://localhost/example/Hello" 
Or when following the ajpv11 link from the status page 

nothing happens and the browser times out. My jserv.log file reports
        .
        .
        .
        Connection from localhost/127.0.0.1
        Initializing servlet request
        Reading request data

        [a minute or so passes then the next lines show up in the jserv.log file]

        Malformed request data: Malformed request: java.io.IOException: Malformed
Request: reading line length
        Sending response headers.
        Status: 400 Bad Request
        Servlet-Error: Malformed data send to JServ

I would certainly be very grateful for any insight into this problem. Here
are my configuration files. 


error_log

        httpd: [Mon Mar  1 14:31:57 1999] [notice] Apache/1.3.4 (Unix)
ApacheJServ/1.0b3 configured -- resuming normal operations

jserv.log

        [01/03/1999 14:31:57:097] (INFO) Apache Module was cleaned-up
        [01/03/1999 14:32:00:176] (INFO) wrapper: watching processes
(PID=7862,PPID=7861,VM PID=7868)
        [01/03/1999 14:32:00:177] (INFO) wrapper classpath:
/usr/local/jserv/lib/Apache-JServ.jar:/usr/local/JSDK2.0/lib/jsdk.jar:/home/
httpd/cgi-bin
        [01/03/1999 14:32:00:177] (INFO) wrapper: Java VM spawned
(PID=7868|PPID=7862)
        [01/03/1999 14:32:01:874 PST] JServ is starting...
        [01/03/1999 14:32:01:876 PST] WARNING: connection authentication is disabled
        [01/03/1999 14:32:01:913 PST] Connection allowed from localhost/127.0.0.1
        [01/03/1999 14:32:01:914 PST] Listening on port 8007 accepting 50 maximum
connections
        [01/03/1999 14:32:01:945 PST] Creating Servlet Zones
        [01/03/1999 14:32:01:946 PST] Servlet Zone example initializing...
        [01/03/1999 14:32:01:947 PST]  - Configuration file:
/home/httpd/cgi-bin/example.properties
        [01/03/1999 14:32:02:007 PST] Initialisation timeout: 10 seconds
        [01/03/1999 14:32:02:007 PST] Destroy timeout: 10 seconds
        [01/03/1999 14:32:02:008 PST] Session timeout: 1800 seconds
        [01/03/1999 14:32:02:008 PST] Session check frequency: 30 seconds
        [01/03/1999 14:32:02:009 PST] Autoreload on zone file changes: true
        [01/03/1999 14:32:02:009 PST] Autoreload on classfile changes: true
        [01/03/1999 14:32:02:013 PST] Default initArgs: {}
        [01/03/1999 14:32:02:025 PST] Servlet Zone example initialization complete
        [01/03/1999 14:32:22:171 PST] Connection from localhost/127.0.0.1
        [01/03/1999 14:32:22:210 PST] Initializing servlet request
        [01/03/1999 14:32:22:211 PST] Reading request data
        [01/03/1999 14:37:23:487 PST] Malformed request data: Malformed request:
java.io.IOException: Malformed Request: reading line length
        [01/03/1999 14:37:23:488 PST] Sending response headers.
        [01/03/1999 14:37:23:490 PST] Status: 400 Bad Request
        [01/03/1999 14:37:23:491 PST] Servlet-Error: Malformed data send to JServ


http.conf

        LoadModule jserv_module libexec/mod_jserv.so
        ApJServManual Off
        ApJServProperties /usr/local/apache/etc/jserv.properties 
        ApJServLogFile /usr/local/apache/logs/jserv.log 
        ApJServDefaultProtocol ajpv11
        ApJServDefaultPort 8007
        ApJServSecretKey /usr/local/apache/etc/jserv.secret.key
        ApJServMount /example /example
        <Location /jserv/>
          SetHandler jserv-status
          order deny,allow
          deny from all
          allow from localhost 127.0.0.1
        </Location>

jserv.properties
        
        wrapper.bin=/usr/local/jdk117_v1a/bin/java
        wrapper.class=org.apache.jserv.JServ
        wrapper.classpath=/usr/local/jserv/lib/Apache-JServ.jar
        wrapper.classpath=/usr/local/JSDK2.0/lib/jsdk.jar
        wrapper.classpath=/home/httpd/cgi-bin
        
        wrapper.protocol=ajpv11
        port=8007
        
        zones=example
        
        example.properties=/home/httpd/cgi-bin/example.properties
        security.selfservlet=true
        security.maxConnections=50
        security.allowedAddresses=127.0.0.1
        security.authentication=false
        security.challengeSize=5
        
        log=true
        log.file=/usr/local/apache/logs/jserv.log
        log.timestamp=true
        log.dateFormat=[dd/MM/yyyy HH:mm:ss:SSS zz] 
        log.channel.init=true
        log.channel.terminate=true
        log.channel.serviceRequest=true
        log.channel.authentication=true
        log.channel.requestData=true
        log.channel.responseHeaders=true
        log.channel.signal=true
        log.channel.exceptionTracing=true
        log.channel.servletManager=true





----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://www.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to