Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8170713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:13:00+00:00 2026-06-06T21:13:00+00:00

i use tomcat + cpanel . my jsps and tags correct run but can

  • 0

i use tomcat + cpanel . my jsps and tags correct run but can not run servlet .

my web.xml content is :

 <servlet>
        <servlet-name>Servlet1</servlet-name>
        <servlet-class>pack1.Servlet1</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>Servlet1</servlet-name>
        <url-pattern>/Servlet1</url-pattern>
    </servlet-mapping>

when request http://www.mydomain.com/Servlet1 get this error (404) :

Not Found

The requested URL /Servlet1 was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

please help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T21:13:02+00:00Added an answer on June 6, 2026 at 9:13 pm

    The cpanel suggests that you’re using a 3rd party host. A lot of cheapass 3rd party hosts have due to system limitations different rules for deploying servlets. You should be reading their developer guide/documentation/FAQ how exactly to properly deploy servlets on their host. For example, some 3rd party hosts require a specific folder or package structure, or they require a specific URL structure.

    Godaddy, for example, requires you to use the URL structure /servlet/YourServletClassName, with the /servlet prefix path, see also their FAQ.

    If you want to have full control over deployment or want to follow standard Java EE rules, you’d rather look for a different host. For example, OpenShift, which is a completely free cloud hosting service using the full fledged JBoss AS 7 application server, including EJB and JPA support and all on em and the free choice between MySQL and PostgreSQL databases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We use Tomcat for our java web application. There is a properties file under
I use tomcat. I am developing a web application using struts2, and I use
i want to configure tomcat 7 to use port 80 on windows 7, but
How Can I use my system as a tomcat server ? Like tomcat server
suppose, I use Tomcat as a web container. Is it true that once all
I have an application i can war up which i usually use with tomcat
I use tomcat server, and try to call a java class from servlet, that
I use Tomcat 6.0.20 and JDK 1.6.0.13. How can I load libraries from sub-folders
I am trying to use Tomcat 6.0 as a web development server within SpringSource
I am developing a java web Application and I use Tomcat connection pooling, here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.