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 7928881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:52:58+00:00 2026-06-03T19:52:58+00:00

recently I wrote a basic web application with only index.jsp and a simple servlet,

  • 0

recently I wrote a basic web application with only index.jsp and a simple servlet, here’s the code:
index.jsp

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
</head>
<body>
    <h1>Hello W!</h1>
    <form action="Hello.do">
        <p>Wprowadź imię:   </p>
        <input type="text" name="imie"/>
        <input type="submit" value="OK"/>
    </form>
</body>

in web.xml there is a fragment linking Hello.do to servlet HelloServlet.java:

<web-app>
  <display-name>Archetype Created Web Application</display-name>
    <servlet>
        <servlet-name>HelloServlet</servlet-name>
        <servlet-class>pl.helion.jeeweb.HelloServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>HelloServlet</servlet-name>
        <url-pattern>/Hello.do</url-pattern>
    </servlet-mapping>
</web-app>

and of course servlet in package pl.helion.jeeweb.
But when I launch the application, fill the form and click OK, I get:

javax.servlet.ServletException: Error instantiating servlet class pl.helion.jeeweb.HelloServlet
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
...
root cause

java.lang.ClassNotFoundException: pl.helion.jeeweb.HelloServlet
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
...

so what’s wrong?
and by the way, sorry for my english and thanks for help;]

  • 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-03T19:53:00+00:00Added an answer on June 3, 2026 at 7:53 pm

    My problem was that I had a bad folder structure. By default package and servlet were in folder resources, all I had to do was to rename it to java

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

Sidebar

Related Questions

I recently wrote some javascript code that filled a drop down list based on
I recently wrote a piece of code which did SomeClass someObject; mysqlpp::StoreQueryResult result =
I recently wrote a program that used a simple producer/consumer pattern. It initially had
I recently wrote an extremely basic edge detection algorithm that works on an array
I recently wrote some code that uses the same unsigned short to store two
I recently wrote a small C code which uses sockets to listen on a
I recently wrote a simple utility in Perl to count words in a file
I recently wrote up a simple Twitter app for Android to learn the ropes
I recently wrote a section of code wherein upon finishing, I received a warning
I recently wrote a parser in Python using Ply (it's a python reimplementation of

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.