Share This Now: [addtoany]
Watch Reseller Hosting Video Tutorial
Java Web Hosting Procedure
In cpanel servers apache is the webserver and tomcat is application server. 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.
Tomcat File Structure :
1. All classes must be put inside the WEB-INF/Classes folder
2. Even put your library files also inside it.
3. Try placing classes and library files inside the lib folder also.
4. You can place your jsp files in public_html folder.
We have uploaded sample servlets in WEB-INF/classes folder in your public_html
You can check the test page by domainname/jsptest.jsp
Important : You can access any servlet by using www.yourdomain.com/servlet/YourServletName
Deploying war file is considered insecure and hence it is not allowed by default in your tomcat. However it can be changed if you require.