users@glassfish.java.net

Global 500 error page

From: <glassfish_at_javadesktop.org>
Date: Tue, 17 Nov 2009 02:55:30 PST

Hi

I'm trying to set up a global 500 error page in my Glassfish server.

I've my page into domains/domain1/config/error.html

and I've added the following property to my virtual-server config:
         <property name="send-error_1" value="code=404 path=error.html reason=MY-404-REASON"/>
          <property name="send-error_2" value="code=500 path=error.html reason=MY-500-REASON"/>
          <property name="send-error_3" value="code=503 path=error.html reason=MY-503-REASON"/>
 
404 error page works. But 500 error page doesn't work, I always get Glassfish's internal error page. (Not yet validated that 503 works)

I've restarted the domain and the Glassfish server.

What's wrong?
[Message sent by forum member 'appel' ]

http://forums.java.net/jive/thread.jspa?messageID=372126