users@glassfish.java.net

Re: Path to custom default error page resources

From: Amy Roh <amy.roh_at_oracle.com>
Date: Thu, 19 Jan 2012 12:09:43 -0800

On 1/19/12 2:22 AM, forums_at_java.net wrote:
> I just tried your recipe exactly, but now I don't even get the HTML
> page. (My
> guess is that the ${...} stuff isn't honored). Have you tried to do this
> yourself?

Which GF are you using? Can you access the HTML page via
http://localhost:8080/my-errorpage.html? I've attached my working
domain.xml for reference.

>
> [quote=amyroh]I would put the custom default error page and image
> files in
> the docroot directory (domains/domain1/docroot &
> domains/domain1/docroot/images) and define the send-error_1 property
> with a
> value "path=${com.sun.aas.instanceRoot}/docroot/404.html code=404".
> From your
> error page, you can refer to your images files [/quote]
>
>
>
>
> --
>
> [Message sent by forum member 'tmpsa']
>
> View Post: http://forums.java.net/node/882803
>
>