This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Custom error 404 page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Custom error 404 page" Watch "Custom error 404 page" New topic

Custom error 404 page

Tejpal Singh

Joined: Aug 08, 2003
Posts: 26
I have my JBoss-2.2.1 configured with Tomcat-3.2.1.
I want to redirect the flow of the application on "Page not found" or "error 404" to a customized page say "error404.html".
I have tried all that i could find on various forums but still cant get it working.
Following is what i am using in my tomcat web.xml file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
The default context is ROOT.
i.e. the xml file is located under the path D:\JBoss-2.2.1_Tomcat-3.2.1\tomcat\webapps\ROOT\WEB-INF
The html file is located under the path D:\JBoss-2.2.1_Tomcat-3.2.1\tomcat\webapps\ROOT\
Please help me on my above issue.
- Tejpal

"When work, commitment and pleasure all become one and you reach that deep well where passion lives, nothing is impossible."
norman richards
Ranch Hand

Joined: Jul 21, 2003
Posts: 367
I tried to deploy a webapp of mine with and error-code on that version of JBoss and it failed. It failed on the latest 2.2.2 release, but ran fine on 2.4.10 and 3.0.7.
My suggestion is to upgrade to JBoss 3 if possible, and 2.4 if you really need an older JBoss...
I agree. Here's the link:
subject: Custom error 404 page
It's not a secret anymore!