This content has been marked as final.
Show 3 replies
-
1. Re: Setting Default Error Pages
peterj Jan 21, 2009 10:49 AM (in response to mduffy_lists)Try server/default/deployers/jbossweb.deployer/web.xml
-
2. Re: Setting Default Error Pages
mduffy_lists Jan 21, 2009 5:53 PM (in response to mduffy_lists)Here's the solution:
Edit the web.xml in
/opt/jboss-5.0.0.GA/server/default/deployers/jbossweb.deployer
by adding
<!-- 404 SC_NOT_FOUND -->
<error-page>
<error-code>404</error-code>
/error/error404.html
</error-page>
just after </welcome-file-list>
Then the html and supporting files (images, css, etc.) go in
/opt/jboss-5.0.0.GA/server/default/deploy/ROOT.war/error -
3. Re: Setting Default Error Pages
rudyamid Mar 5, 2009 6:53 PM (in response to mduffy_lists)Works great with Firefox and Opera.
In Internet Explorer the 404 page doesn't show up though.
I read somewhere that if I enable "listings" in web.xml might work, but I just tried it and still doesn't work.
Any ideas there?