Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Tomcat unable to find servlet

Discussion in 'General Discussion' started by sumitlole, May 23, 2011.


Which Server is best fit for Java based Web Application

  1. Linux Based Shared server

    0 vote(s)
  2. Windows based Shared server

    0 vote(s)
  1. sumitlole

    sumitlole Registered

    May 23, 2011
    Likes Received:
    Trophy Points:
    I have a problem trying to set up tomcat to run a simple servlet and hope someone can help out.

    I am trying to deploy/upload a Java based web application on Linux based shared Java hosting server. For this I have uploaded the war file on Cpanel, also I have created same file structure as it was in Tomcat.

    I have created following structure in public_html directory of Cpanel:


    *All the classes are kept in classes folder inside web-inf.

    Tomcat is running and the index page is visible. I have redirected from index.html page to jlogin.jsp page inside the jsp folder. It working fine with complete effect of css & images and all scripting working fine on jlogin page.

    But when I am calling Login servlet from jlogin.jsp page it gives 404 NOT FOUND error. I have tried all possible path to call servlet, still problem persist.

    Login.class servlet is located in : WEB-INF/classes/com/org/Model/servlets

    ERROR is - 404
    type Status report
    message /Model/Login
    description The requested resource (/Model/Login) is not available.

    //web.xml follows (located in WEB-INF

    <?xml version="1.0" encoding="ISO-8859-1"?>

    <web-app xmlns=""




    Urgent help is required.
    Yormen likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice