http errors

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

http errors

jel-2

Sometimes I get HTTP 500 or other HTTP error messages from the http server , and can' t catch these, on the usual way by the help of configuring web application by the web.xml:

This is a part of my web.xml file:

<error-page>
  <error-code>500</error-code>
  <location>/server_error.html</location>
</error-page>

As far as I can see this way is the comform mode for handling http error messages.
It usually works at me, except when I apply it in my orbeon web application.
Why can't I get the specified error page?


Please help!

jel







--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: http errors

Erik Bruchez
Administrator
Jel,

 From what I understand from the Servlet spec, this will only work in
case the application is using HttpServletResponse.sendError(). It turns
out that the only place OPS uses sendError is in the HTTP serializer
when it finds and error-code in its configuration, but this is
apparently is not used by OPS when it generates errors.

-Erik

[hidden email] wrote:

>
> Sometimes I get HTTP 500 or other HTTP error messages from the http
> server , and can' t catch these, on the usual way by the help of
> configuring web application by the web.xml:
>
> This is a part of my web.xml file:
>
> <error-page>
>   <error-code>500</error-code>
>   <location>/server_error.html</location>
> </error-page>
>
> As far as I can see this way is the comform mode for handling http error
> messages.
> It usually works at me, except when I apply it in my orbeon web
> application.
> Why can't I get the specified error page?
>
>
> Please help!
>
> jel



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws