You are using version 2.3 of web.xml file , which is not only rarely used now but also order of entries matters in version 2.3.
Thanks Vibhor. Now configuration is working.order of entities is proper but a slight mistake in the positioning.
I don't know whethe it is the mistake or not.but when i change a little of my web.xml ,error pages are working.
May be this will be help full to other.I am posting the code what i have changed.
previous version of web.xml:-
<error-page>
<error-code>400</error-code>
<location>/errorhandler</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/errorhandler</location>
</error-page>
<error-page>
<error-code>500 </error-code>
<location>/errorhandler</location>
</error-page>
Above configuration did not work.
Current version of web.xml:-
<error-page>
<error-code>
400
</error-code>
<location>/errorhandler</location>
</error-page>
<error-page>
<error-code>
404
</error-code>
<location>/errorhandler</location>
</error-page>
<error-page>
<error-code>
500
</error-code>
<location>/errorhandler</location>
</error-page>
This configuration is working fine..
and one more remaining is exception-type tag..i kept java.lang.Throwable in exception-type tag in web.xml file.
This is not working.can any one having any suggestions for this .Any help is accepted...!
Thanks & Regards,
Vipul Kumar.