Hi, I'm using tomcat apache-tomcat-6.0.37 I have a few web applications in webapps directory.
portal sms crm I'm creating custom error pages. inside the webapplication "portal" under WEB-INF in web.xml I have given the following. <error-page> <error-code>400</error-code> <location>/lp/404.html</location> </error-page> <error-page> <error-code>404</error-code> <location>/lp/404.html</location> </error-page> <error-page> <error-code>500</error-code> <location>/lp/oops.html</location> </error-page> <error-page> <exception-type>java.lang.Throwable</exception-type> <location>/lp/oops.html</location> </error-page> And is working fine for the errors like domain.com/portal/sdgggdhsh But for other web applications, obviously it wont work. because I haven't configured in their web.xml files. Is there any way I can give common error pages? I can see that there is a web.xml file under conf directory. And I have given the settings in it. As below. <error-page> <error-code>400</error-code> <location>/404.html</location> </error-page> <error-page> <error-code>404</error-code> <location>/404.html</location> </error-page> <error-page> <error-code>500</error-code> <location>/oops.html</location> </error-page> <error-page> <exception-type>java.lang.Throwable</exception-type> <location>/oops.html</location> </error-page> Path I changed. starting from "/" and put the files in webapps directory. But it is not working. How can I do this? -- Randeep Mob: +919447831699[kerala] Mob: +919880050349[B'lore] I blog here: http://www.randeeppr.me/ Follow me Here: http://twitter.com/Randeeppr Poke me here! http://www.facebook.com/Randeeppr A little Linux Help http://www.linuxhelp.in/ Work profile: http://in.linkedin.com/in/randeeppr