-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
I just recently moved my code to JServ and encountered what appears to
be the same problem you are having. I tracked down my problem to an
issue with setting the Last-Modified header. If I didn't set the
Last-Modified header then everything would work, if I did send it, it
would work fine the first time, but then fail on subsequent reloads
(clearing the browser cache would make it work again the next time, but
then fail again on subsequent calls).
Here is what I guess is happening. If your servlet is setting the
Last-Modified header under HTTP/1.1 then it should be prepared to
respond to the client sending a header of If-Modified-Since. (Under the
latest versions of Netscape and IE, if you send a Last-Modified header
then the browsers will include an If-Modified-Since header in subsequent
reloads). I was ignoring the If-Modified-Since header (i.e. returning
the full document whether or not the client needed it instead of
returning a 304 response if the client didn't need a new version). Once
I changed my servlet to correctly handle the If-Modified-Since header
then I stopped getting the error. I also didn't get the error if I
didn't send a Last-Modified header at all (but I wanted to take
advantage of the browser cache, so I coded support for the
If-Modified-Since header instead).
I hope this helps.
thanks,
--Barry
Guy Cohen wrote:
>
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
>
> > Hello,
> >
> > Our jserv configuration is working fine, exept for times
> > when the reload button is pressed. i.e the servlet is being loaded
> > fine, but when we try to reload it we get http 500 internal error.
> > Since the example "Hello.class" servlet, is being reload fine, i wonder
> > if this is a jserv bug/misconfiguration or our servlet bug.
> > Oh, when we get the http 500 error, mod_jserv log file shows:
> > (EMERGENCY) ajp11: cannot scan servlet headers
> > (ERROR) an error returned handling request via protocol "ajpv11".
> >
> > Thank's for your time,
> > Guy Cohen
> > Zapa Digital Arts.
> > http://www.zapa.com
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html/>
> Problems?: [EMAIL PROTECTED]
________________________________________________________
NetZero - We believe in a FREE Internet. Shouldn't you?
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]