Results 1 to 8 of 8
  1. #1

    Tomcat unable to find servlet in Shared linux java hosting Server

    Hi,
    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:

    -css
    -html
    -js
    -jsp
    -META-INF
    ----classes
    ----lib
    ----web.xml
    -WEB-INF
    -index.html
    -Model.war


    *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.



    Urgent help is required.

  2. #2
    Since it's under a shared hosting, have you tried to contact hosting support for some solution?

  3. #3
    Yes, but I just want to know that is there any special configuration or setting required to enable the servlet?

    Or

    Is there any specific way to call servlet in this case.?

  4. #4
    Join Date
    May 2011
    Posts
    64
    as far as I am concerned, if you need to host Tomcat servers, you better do it on a Linux server, not Windows Server

    :-)

  5. #5
    you can not enable it by yourself, I would prefer linux hosting with tomcat support unless you can manage a VPS windows.

  6. #6
    Quote Originally Posted by software_tech View Post
    as far as I am concerned, if you need to host Tomcat servers, you better do it on a Linux server, not Windows Server
    I think the OP uses linux hosting. He just posted in the wrong forum.

    sumitlole, you should open a support ticket with your hosting provider for urgent help.
    PremiumReseller.com Hyper-V SSD VPS USA London Singapore
    Reseller Hosting Cpanel PURE SSD CloudLinux Softaculous
    Windows Reseller Asp.NET 4.5 MSSQL 2012 SmarterMail Enterprise

  7. #7
    What comapny are you with, the OP?
    musicfanbox.net - is my web site.

  8. #8

    Tomcat unable to find servlet in Shared linux java hosting Server

    Hello friend,
    I am also facing same issue with my shared Java hosting server.Whether you fix the issue?..what was the problem?



    Quote Originally Posted by sumitlole View Post
    Hi,
    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:

    -css
    -html
    -js
    -jsp
    -META-INF
    ----classes
    ----lib
    ----web.xml
    -WEB-INF
    -index.html
    -Model.war


    *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.



    Urgent help is required.

Similar Threads

  1. Replies: 1
    Last Post: 01-11-2011, 08:34 PM
  2. Tomcat (Java Servlet) Reseller?
    By divzero in forum Reseller Hosting
    Replies: 10
    Last Post: 07-29-2005, 09:50 PM
  3. Replies: 3
    Last Post: 08-16-2001, 06:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •