Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.
(Answer) (Category) Java Apache Project : (Category) Apache JServ 1.0 : (Category) Configuration :
Malformed AJP request: error reading line data [id = ] [token1 = null] [token2 = null]
Someone on the users mailing list had this problem and it was because the URL that he was trying to access was something like this:

http://www.server.com:8007/examples/HelloWorld

The problem is that you should not have the port number of the Apache JServ process in the URL. The way that Apache JServ works is that it is a two part process. The C code is a module that is compiled into the httpd daemon. The Java part of the process is a daemon that, by default, listens on port 8007. The C portion talks to the Java portion via sockets on that port.

So, the above URL would try a connection to the Java portion directly and you will get errors as a result. (duh!). In reality, you want to make a connection to the servlet engine through the httpd server (ie: port 80). The httpd server then connects to the Java portion through the C module.

This is how the picture should look:

client - httpd - mod_jserv - sockets - java daemon

Not like this:

client - java daemon


[Append to This Answer]
Previous: (Answer) Duplicate name error
Next: (Answer) Setting the USER id for java interepreter forked from Apache web-server
This document is: http://java.apache.org/faq/?file=279
[Search] [Appearance] [Show Expert Edit Commands]
This is a Faq-O-Matic 2.709.
Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.