If a servlet generates an exception, where does the output go?
Is it possible to see it?

The case:

When I call one of my servlets on the Sun Java Web Server like this:
  http://my_server/my_servlet
I get this answer:

<HTML><HEAD>
<TITLE>Warning message</TITLE></HEAD>
<BODY BGCOLOR="#eeeeff"><HR>
<H1><IMG SRC="/system/images/Error_Duke.gif"ALIGN=TOP>Warning message...</H1>
<P>The parameter "code" in plugin statement is missing !</P><HR>
</BODY>
</HTML>

which results from an exception.


When I call the same servlet from Apache I have this answer:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>500 Internal Server Error</TITLE>
</HEAD><BODY>
<H1>Internal Server Error</H1>
The server encountered an internal error or misconfiguration and was unable to
complete your request.<P>
Please contact the server administrator,
 [EMAIL PROTECTED] and inform them of the time the error occurred,
and anything you might have done that may have caused the error.<P>
More information about this error may be available in the server error log.<P><HR>
<ADDRESS>Apache/1.3.6 Server at spock.aeon-shopping.de Port 80</ADDRESS>
</BODY></HTML>

and this in the JServ log file:

[28/04/1999 16:34:28:580 GMT+02:00] Initializing servlet request
[28/04/1999 16:34:28:638] (ERROR) ajp11: Servlet Error: Internal Server Error
[28/04/1999 16:34:28:638] (ERROR) an error returned handling request via protocol
"ajpv11"
[...]
[28/04/1999 16:34:28:596 GMT+02:00] All data read.
[28/04/1999 16:34:28:596 GMT+02:00] Parsing cookies
[28/04/1999 16:34:28:597 GMT+02:00] Request is in session
3fde2d20b17d599c.1.925308054077
[28/04/1999 16:34:28:597 GMT+02:00] Calling service()
[28/04/1999 16:34:28:632 GMT+02:00] Sending response headers.
[28/04/1999 16:34:28:632 GMT+02:00] Status: 500 Internal Server Error
[28/04/1999 16:34:28:632 GMT+02:00] Servlet-Error: Internal Server Error

and nothing else in the error log file.


Thank you!!!
andrea
-- 

                             _____________
____________________________/             \
                                           |
   Andrea Caltroni       Software Engineer |
   AEON  Virtual  Shopping  Services  GmbH |
   Zettachring 6, 70567 Stuttgart, Germany |
   email:             [EMAIL PROTECTED] |


----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to