-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

Hi all,

I installed JServ earlier this week (had Apache 1.3.6 running for a
month or so now
with no problems) and after some initial configuration problems that I
was able to
solve I ran into an error that I've been banging my head against ever
since. I'm not
a JServ guru and I've been up and down through the FAQ-O-MATIC to no
avail, so I'm
turning to the mailing list.

>From my limited knowledge it seems that mod_jserv is having some trouble
communicating
with JServ (at least I think that's the problem). Here is my trace log:

[19990728 224322.121 EDT] ApacheJServ/1.0 is starting...
[19990728 224322.121 EDT] WARNING: connection authentication is disabled
[19990728 224322.334 EDT] Connection allowed from localhost/127.0.0.1
[19990728 224322.335 EDT] Listening on port 8007 accepting 50 maximum
connections
[19990728 224322.344 EDT] Creating Servlet Zones
[19990728 224322.344 EDT] Servlet Zone bdujserv initializing...
[19990728 224322.344 EDT]  - Using configuration file:
/opt/dev/bdu/bdujserv/bdujserv.properties
[19990728 224322.372 EDT] Initialisation timeout: 10 seconds
[19990728 224322.372 EDT] Destroy timeout: 10 seconds
[19990728 224322.372 EDT] Session timeout: 1800 seconds
[19990728 224322.372 EDT] New session timeout: 1800 seconds
[19990728 224322.372 EDT] Session check frequency: 30 seconds
[19990728 224322.372 EDT] Autoreload on zone file changes: true
[19990728 224322.372 EDT] Autoreload on classfile changes: true
[19990728 224322.373 EDT] Default initArgs: {}
[19990728 224322.378 EDT] Servlet Zone bdujserv initialization complete

So far, so good, right? Then I try to call my servlet from Netscape:

[19990728 224822.112 EDT] Connection from localhost/127.0.0.1
[19990728 224822.133 EDT] Initializing servlet request
[19990728 224822.133 EDT] Reading request data
[...pause...]
[19990728 225024.531 EDT] Connection from localhost/127.0.0.1
[19990728 225024.531 EDT] Initializing servlet request
[19990728 225024.531 EDT] Reading request data               
[...pause...]          
[19990728 225024.531 EDT] Connection from localhost/127.0.0.1
[19990728 225024.531 EDT] Initializing servlet request
[19990728 225024.531 EDT] Reading request data
[...pause...]
[19990728 225226.056 EDT] Connection from localhost/127.0.0.1
[19990728 225226.056 EDT] Initializing servlet request
[19990728 225226.056 EDT] Reading request data 

This messages refer to an AJP request from mod_jserv, not an
HTTP request from Netscape, correct?
Finally I get:

[19990728 225226.056 EDT] Connection from localhost/127.0.0.1
[19990728 225226.056 EDT] Initializing servlet request
[19990728 225226.056 EDT] Reading request data 
[...pause...]
[19990728 225323.693 EDT] AJP Protocol Error: java.io.IOException:
Malformed AJP request: error reading line length [id = ] [token1 = null]
[token2 = null]
[19990728 225323.693 EDT] Sending response headers.
[19990728 225323.694 EDT] Status: 400 Bad Request
[19990728 225323.694 EDT] Servlet-Error: Malformed data sent to
JServ         

BANG! Then the last section repeats over and over and over, sometimes
with
the 3 lines before the pause, sometimes without.
>From what I can tell mod_jserv is connecting to JServ but sending null
values,
or something like that. I am using port 8007, specified in both
http.conf
and jserv.properties.
It happens even when I try the JServ "example" servlet.

I don't want to make this email any longer with my properties files, but
I'm happy to send them or anything else to anyone kind enough to offer
some help.
Oh yeah, I'm running under Linux-Mandrake (based on Red Hat) v6.0. I
also
have mod_ssl statically linked, but disabled (i.e. apachectl start, not
sslstart).

Any and all replies are much appreciated.

Thank you in advance!


Barry Fruitman


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