• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ApacheJServ configuration/JDK issues

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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

- satya
 
Joe Wolf
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ApacheJServ is the module add-on to Apache that allows you to serve up servlets.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
"To do good, you actually have to do something." -- Yvon Chouinard
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic