Get your CodeRanch badge!*
The moose likes Servlets and the fly likes ApacheJServ configuration/JDK issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "ApacheJServ configuration/JDK issues" Watch "ApacheJServ configuration/JDK issues" New topic
Author

ApacheJServ configuration/JDK issues

Joe Wolf
Ranch Hand

Joined: Jul 05, 2001
Posts: 42
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

Forgive my ignorance, but
Is JServ your servlet container?
regds.

- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Joe Wolf
Ranch Hand

Joined: Jul 05, 2001
Posts: 42
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

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
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ApacheJServ configuration/JDK issues
 
Similar Threads
ActionServlet compilation error
wrappper.classpath is pointing to the correct version of ApacheJServ.jar
OK I give up: ClassNotFound error for modelmbean
Help configuring Tomcat on Fedora
ajp12 cannot scan servlet headers