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?
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
Forgive my ignorance, but Is JServ your servlet container? regds.
ApacheJServ is the module add-on to Apache that allows you to serve up servlets.
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
The way I understood JServ is that it is an add-on to Apache that allows Apache server to talk to an application server (like Tomcat) which serves up servlets. So IMHO, you still need an application server (preferably tomcat like) capable of serving servlets. In other words, I don't think Apache server with JServ added-on will solve your problem. regds. - satya
Joe Wolf
Ranch Hand
Joined: Jul 05, 2001
Posts: 42
posted
0
Hmm...that may be right, but as far as my knowledge goes, Apache+ApacheJServ ~ Tomcat. At one point I was actually able to view servlets on my server using only JServ but I had made some changes because my JVM was failing a lot and now I can't get servlets working again.
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
Is JServ your servlet container? You are saying that this is probably true. aha!...I learnt something new today. Never knew this, I should try it sometime. Sorry couldn't help. - satya