I've been having a lot of trouble getting
servlets to run on my server. I keep getting the following errors in my error_log when I try to access a servlet on the server:
[error] Invalid method in request
[error] malformed header from script. Bad header=<!DOCTYPE HTML PUBLIC "-//IETF: /sevlets/Hello
ApacheJServ/1.1.2: Exception creating the server socket:java.net.BindException: Address already in use.
and the corresponding errors in my mod_jserv.log:
(EMERGENCY) ajp12[1]: cannot scan servlet headers (500)
(ERROR) an error returned handling request via protocol "ajpv12"
and as the server contiunes to run I get this error every 5 minutes:
(EMERGENCY) ajp12: ping: no reply (-1)
I'm using Apache 1.3.20 with JServ 1.1.2, JSDK2.0, and JDK1.3.1
on a linux machine running RedHat 7.1
part of my jserv.properties looks like this:
wrapper.bin=/usr/local/java/jdk1.3.1/bin/java
wrapper.classpath=/usr/local/apache/libexec/ApacheJServ.jar
wrapper.classpath=/usr/local/java/jsdk/lib/jsdk.jar
wrapper.classpath=/usr/local/jserc/lib/gnujsp10.jar
wrapper.classpath=/usr/local/src/mm.mysql.jdbc-1.2c
wrapper.classpath=/usr/local/src/gnujsp_1.0.1/lib/servlet_2.1.jar
bindaddress *
port=8007
I'm sure this is a configuration issue but I suspect that the proper functioning of the JDK might be involved. Anyone have any insight into this kind of situation?