web.xml redirection in Java Reseller Hosting Plan

Dear Sir,

Please find the below article which describes the web.xml redirection in cPanel servers in Java Reseller Hosting Plan.

Please note that in cpanel servers apache is the webserver and tomcat is application server in Java Reseller Hosting Plan. Any request made for a website will first go to apache. If you have made request for a html file or css or js or images it will be served by apache. If any request for .jsp, /servlet or .do is made it will go to tomcat and tomcat will serve the request.

In standard cPanel server there is no way that you can call the url without .jsp or /servlet or .do and make tomcat serve it. Before tomcat can process your request, it must be first sent to apache with extension .jsp or /servlet or .do, which is forwarded to Tomcat. Then only your web.xml will comes into picture in Java Reseller Hosting Plan.

Please note that you require a .jsp or /servlet in the url in order for the apache to send the request to your application servlet container. Hence you must have a .jsp or a /servlet in your url in order for it to work. Without this, it will not work at all, because the request will not go to tomcat at all hence you will get 404 error.