This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes ajp12 cannot scan servlet headers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ajp12 cannot scan servlet headers" Watch "ajp12 cannot scan servlet headers" New topic
Author

ajp12 cannot scan servlet headers

Joe Wolf
Ranch Hand

Joined: Jul 05, 2001
Posts: 42
I just installed Apache and ApacheJServ on my Win32 machine. I am able to view the http://127.0.0.1/jserv page, which I believe it is a servlet itself, but when I try to open up a servlet in my mounted zone, such as ://127.0.0.1/servlets/IsItWorking I get these errors in mod_jserv.log:
[17/07/2001 17:35:54:034] (EMERGENCY) ajp12[1]: cannot scan servlet headers (500)
[17/07/2001 17:35:54:034] (ERROR) an error returned handling request via protocol "ajpv12"
And in my error.log I see these messages:
[Tue Jul 17 13:07:50 2001] [error] [client 127.0.0.1] Invalid method in request �
[Tue Jul 17 13:07:50 2001] [error] [client 128.143.10.219] malformed header from script. Bad header=<!DOCTYPE HTML PUBLIC "-//IETF: /servlets/IsItWorking
And in the browser I see a page entitled "500 Internal Server Error". If anyone has any clues it would be great, because I'm having the exact same problem on my linux box as well. I think it might be a problem with the JDK, or perhaps I'm failing to include a key line in my configuration files.
I'm using JDK1.1.8 from Sun, JSDK2.0, Apache 1.3.20, JServ 1.1.2
My jserv.properties contains
wrapper.classpath=C:\Program Files\Apache JServ 1.1.2\ApacheJServ.jar
wrapper.classpath=c:\jsdk2.0\lib\jsdk.jar
wrapper.classpath=c:\jdk1.1.8\lib\classes.zip
if that means anything to anyone. Thanks for your help, whoever knows what is going on.
-Joe
timothy zimmerman
Ranch Hand

Joined: Jun 26, 2001
Posts: 149
I'm not sure if I have the answer to your problem but you might consider upgrading your jdk, 1.1.8 is pretty old these days. I'll take a look at my installation and see if I get any other ideas.
[This message has been edited by timothy zimmerman (edited July 17, 2001).]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15962
    
  19

Those messages look sort of familiar. I had all sorts of grief with ajpv12 trying to do virtual hosts. Switched to ajpv13 and the wildcat became a pussycat.


Customer surveys are for companies who didn't pay proper attention to begin with.
Joe Wolf
Ranch Hand

Joined: Jul 05, 2001
Posts: 42
I've tried upgrading my JDK before and it still gives me problems, even though I believe that my problems might be coming form the JDK.
What do I need in order to use ajpv13? Do I need to download something or just replace my "2"s with "3"s in my configuration files?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ajp12 cannot scan servlet headers
 
Similar Threads
Apache and JServ
Servlet compile problems
ApacheJServ configuration/JDK issues
IIS Plugin for weblogic throwing connection pool errors
wrappper.classpath is pointing to the correct version of ApacheJServ.jar