File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes User Defined Error Page for 404 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "User Defined Error Page for 404" Watch "User Defined Error Page for 404" New topic
Author

User Defined Error Page for 404

N mn
Greenhorn

Joined: Jun 19, 2002
Posts: 1
Hi,I am trying to give the user defined error page for 404. My web.xml entry contains :
<error-page>
<error-code>404</error-code>
<location>http://localhost:8080/ignoreurl.wml</location>
</error-page>
But it seems I am still getting the default 404 page from within Tomcat.
Any suggestions as to what is wrong ?
Thanx,
NM
Dave Comeau
Greenhorn

Joined: Jun 14, 2002
Posts: 27
Did you restart Tomcat and check the startup logs for any clues?
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Your username does not meet the requirements of the official Javaranch naming policy. Please choose one that does.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: User Defined Error Page for 404
 
Similar Threads
404 not found
error page under WEB-INF
Handle all error codes other than one
Defining error page
response.sendError & error-page