IDependOn-Set: 1
IDependOn-Set: 2
IDependOn-Set: 22
IDependOn-Set: 28
IDependOn-Set: 32
IDependOn-Set: 7
LastModifiedSecs: 938459190
Parent: 7
SequenceNumber: 23
Title: When accessing any servlet I get the following error: "Premature end of script headers".
Part: 0
Author-Set: jon@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 920325420
Type: 
Lines: 1
Take the :8007 out of the url you are trying to use. You are connecting to the servlet engine running on port 8007, not your webserver which is probably running on port 80.
EndPart: 0
Part: 1
Author-Set: jon@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 925243860
Type: 
Lines: 4
Chances are that the JVM has not started up properly. About the only time that the JVM will not startup properly is if you have a mis-configuration in your httpd.conf or jserv.properties, or [zone].properties files. You need to properly setup the configuration directives in these files before the JVM will startup properly.


Apache JServ is two parts. A C portion which is mod_jserv.c and is either compiled into Apache or loaded in as a DSO. The other part is a Java Application that has no GUI interface, just a main() method that starts up and listens on a port. The C portion talks to the Java portion via network sockets. If the C portion is not able to correctly communicate with the Java portion (generally due to a misconfiguration on your part), then you will receive "Premature end of script headers" errors.
EndPart: 1
Part: 2
Author-Set: pferdig@iastate.edu
HideAttributions: 1
LastModifiedSecs: 928769914
Type: 
Lines: 6
I was having a similar problem.  every time I attempted to access a servlet, the VM crashed and I recieved these messages in the error log:

[07/06/1999 15:12:34:543] (ERROR) an error returned handling request via protocol "ajpv11"
[07/06/1999 15:12:53:420] (EMERGENCY) ajp11: cannot scan servlet headers

I was running the JDK1.1.6 VM, I switch the the 1.2.1 VM and everything is fine...
EndPart: 2
Part: 3
Author-Set: dking@opentable.com
LastModifiedSecs: 933314366
Type: html
Lines: 1
We've also been having this problem. However, the JVM seems to run fine for small servlets; the distribution Hello.class servlet runs fine. We tried upgrading to the latest 1.2 JVM--no luck. 
EndPart: 3
Part: 4
Author-Set: nurminen@gordion.com
LastModifiedSecs: 933863056
Type: html
Lines: 12
About the JDK1.1.6 issue: java.exe crashes always on Windows NT SP4 when starting JServ, at least mine does (JVM bug?)
<p>
With JDK1.2.1 we also had this "small servlets run fine but big ones don't"-problem.<br> 
This happens only when JServ starts automatically with Apache, but if JServ is started manually it works. This is how to do it:<br>
 -Tell JServ to start manually in mod_jserv.conf change "ApJServManual on"<br>
 -Start apache (mine is NT-service and works fine, don't know about console)<br>
 -Start JServ in a command prompt:<br>
   java org.apache.jserv.JServ <your JServ-path>\conf\jserv.properties<br>
This should work.
<p>
I haven't figured out what's wrong with the automatic start in my case, any ideas?

EndPart: 4
Part: 5
Author-Set: george@sibnet.ro
LastModifiedSecs: 934969396
Type: html
Lines: 4
I get the same error.
I send a POST request to the servlet. When I send the request from my network which is after a transparent HTTP proxy.
If I send it from outside it's okay. 
I call it bad luck !!
EndPart: 5
Part: 6
Author-Set: Andreas.Kutschera@bln.siemens.de
LastModifiedSecs: 935675760
Type: html
Lines: 4
I got this error when my servlet could not find the applet( I changed packages).
Check the access_log and jserv.log (or whatever it's called on your site).
It could be that the repository was missing or the jar-file is nowhere to be
found (in <zone>.properties)
EndPart: 6
Part: 7
Author-Set: t.vahrst@gmx.de
LastModifiedSecs: 936617234
Type: 
Lines: 6
I've had the same problem: the JVM crashes on Windows NT when starting JServ, even when started manually, as nurminenATgordionDOTcom proposed. I solved the problem by disabling the jit-Compiler: 

in jserv.properties:
wrapper.bin.parameters=-nojit

(-nojit is the required parameter to disable the jit-Compiler for Sun's JVM 1.1.6 on Win32-Systems)
EndPart: 7
Part: 8
Author-Set: marcus@mkaz.com
LastModifiedSecs: 938459190
Type: html
Lines: 5
I had the "Premature end of script headers" error also. I fixed the problem by changing the APJServMount configuration from<BR>
<CODE>APJServMount /servlets /root </CODE><BR>
to<BR>
<CODE>APJServMount /servlets ajpv11://localhost:8007/root</CODE><BR>

EndPart: 8
