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

  • Home
  • SEARCH
  • 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 8208303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:17:36+00:00 2026-06-07T09:17:36+00:00

Can some one help me with this problem. jetty is not able to find

  • 0

Can some one help me with this problem. jetty is not able to find my servlet. 🙁

I am getting the following error-

enter image description here

This is my directory structure –

enter image description here

This is my Web.xml –

<!DOCTYPE web-app PUBLIC
 "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
 "http://java.sun.com/dtd/web-app_2_3.dtd" >

<web-app>
   <display-name>Archetype Created Web Application</display-name>
   <servlet>
   <servlet-name>loginSer</servlet-name>
   <display-name>loginSer</display-name>
   <description></description>
<servlet-class>launchpad.servlets.loginSer</servlet-class>
  </servlet>
  <servlet-mapping>
  <servlet-name>loginSer</servlet-name>
  <url-pattern>/loginSer</url-pattern>
  </servlet-mapping>
 </web-app>
  • 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-07T09:17:38+00:00Added an answer on June 7, 2026 at 9:17 am

    You kept it in wrong directory, it should go under

    src/main/java
    

    not in

    src/main/resource
    

    Maven takes into compilati

    Update

    when I add it to /src/main/java eclipse cannot import HttpServlet class.

    It is because you don’t have servlet-api in yoru classpath

    add dependency to your POM, replace ${servlet-api-version} with the appropriate version matching your app environment

    dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>${servlet-api-version}</version>
    </dependency>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can Some one help me the problem with this code? I am getting bunch
I have the following problem with this segment of code. Can some one please
Can any one please help me solve this. I am resizing some flash object/embed
not able to get this, can someone help for this LINQ query? select col1,
My mysql query is not updating my database correctly can some one help me
maybe some one can help me with this... I have a custom search button
hi every body can some one help me with thi problem i have a
I have a big problem I hope some one can help me with it.
Can some one please explain why this simple form doesnt work? The problem is
Hope someone can help me out with this problem I am having. I just

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.