aspose file tools*
The moose likes Servlets and the fly likes web.xml - errorpage not working for JSP or Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "web.xml - errorpage not working for JSP or Servlets" Watch "web.xml - errorpage not working for JSP or Servlets" New topic
Author

web.xml - errorpage not working for JSP or Servlets

Manoj Jain
Greenhorn

Joined: Sep 16, 2008
Posts: 2
How a solution of removing a option in IE be global to N number of users of a website? You should not give a solution for removing a option from IE to see the Custom Error Page or something else.

Error message received while executing the servlet which doesn't exist on the server:
HTTP Status 404 - /servlet/abc

--------------------------------------------------------------------------------

type Status report

message /servlet/abc

description The requested resource (/servlet/abc) is not available.


The above problem occurs because the desired servlet doesn't exist on the server but it might be listed somewhere because of which its getting hits. The problem is that <errorpage> tag is not working i.e. the custom error page is not displayed.

I have made changes in web.xml of website and restarted tomcat but no result.
I have made changes in web.xml of tomcat and restarted tomcat but no result.

Catalina.out details :
INFO: Marking servlet org.apache.catalina.INVOKER.abc as unavailable
Sep 21, 2008 10:05:28 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Error loading WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@16b13c7
abc
java.lang.ClassNotFoundException: abc

I am using Tomcat 5.5.25 - and there are many servlets which doesn't exists on the server anymore but they generate errors because of which log file becomes very heavy everday.

Any suggestion or solutions ?

Thanks

[edit: removed editorial content more appropriate to another forum]
[ September 22, 2008: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61662
    
  67

Originally posted by Mannu Jain:
How a solution of removing a option in IE be global to N number of users of a website? You should not give a solution for removing a option from IE to see the Custom Error Page or something else.
Because sometimes that is the solution..


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web.xml - errorpage not working for JSP or Servlets