How to change default error page(status 404 - not found) in GlassFish 3.0.1-3.1.2.2 Community Edition?
Ref: h t t p: / / s tackoverflow . com/questions/3751566/how-to-change-default-error-pagestatus-404-not-found-in-glassfish-3-0-1-comm 1.Create a page 404.htm 2. and save it as 404.htm and put it to your $ { com . sun . aas . instanceRoot }/ docroot / Ex: / usr / share / glassfish3 / glassfish / domains / domain1 / docroot / 3 .Enter the following URL in the Browser. https : //ip_address:4848/web/configuration/virtualServerEdit.jsf?name=server&configName=server-config 4 .Add a new Property for "server" in "Virtual Servers". Name : send - error_1 Value : code = 404 path = $ { com . sun . aas . instanceRoot }/ docroot / 404.htm reason = Resource_not_found Description : 404 Error Page