• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web.xml - errorpage not working for JSP or Servlets

 
Manoj Jain
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic