users@glassfish.java.net

Re: How to change glassfish default 404 error-page

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Tue, 23 Feb 2010 16:29:26 -0800

On 02/23/10 06:38 AM, glassfish_at_javadesktop.org wrote:
> Hi! I want to revive this thread cause I'm in trouble, I need to configure custom error pages for Glassfish V3 prelude, and I'm using the error-code into the domain.xml like this:
>
> <property name="send-error_1" value="code=404 path=/errors/404.html reason=MY-404-REASON"/>
>
>

Since your path starts with '/', it is interpreted as an absolute path,
which is not what you want.

Try removing the leading '/', and the path should be interpreted as relative
to your domain's config directory.

Jan

> under docroot element into virtual-server. Where did I place the /errors/ folder? I place it into \glassfishv3-prelude\glassfish\domains\domain1\config but i can't see my 404 page, I only get the IE error page:
>
> HTTP 404 - File not found
> Internet Explorer
>
> Any ideas to why I can't see my custom page? It's correct my /errors/ folder localization?
>
> Thanks
> [Message sent by forum member 'plotemyorma' (plotem.yorma_at_gmail.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=388225
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>