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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:53:34+00:00 2026-05-25T17:53:34+00:00

I am having a problem with errors such as: HTTP Status 500 – ——————————————————————————–

  • 0

I am having a problem with errors such as:

    HTTP Status 500 - 

--------------------------------------------------------------------------------

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 9 in the generated java file
Only a type can be imported. com.test.util.ConnectionManager resolves to a package

An error occurred at line: 31 in the jsp file: /test.jsp
EmployeeDAO cannot be resolved to a type
28:                 <td>Job Title</td>
29:                 <td>Hire Date</td>
30:             </tr>
31:             <%  EmployeeDAO em = new EmployeeDAO();
32:             Connection ct = ConnectionManager.getInstance().getConnection();
33:             ResultSet rs = em.selectByFirstNameRS(empN,ct);
34:             try {


An error occurred at line: 31 in the jsp file: /test.jsp
EmployeeDAO cannot be resolved to a type
28:                 <td>Job Title</td>
29:                 <td>Hire Date</td>
30:             </tr>
31:             <%  EmployeeDAO em = new EmployeeDAO();
32:             Connection ct = ConnectionManager.getInstance().getConnection();
33:             ResultSet rs = em.selectByFirstNameRS(empN,ct);
34:             try {


An error occurred at line: 32 in the jsp file: /test.jsp
ConnectionManager cannot be resolved
29:                 <td>Hire Date</td>
30:             </tr>
31:             <%  EmployeeDAO em = new EmployeeDAO();
32:             Connection ct = ConnectionManager.getInstance().getConnection();
33:             ResultSet rs = em.selectByFirstNameRS(empN,ct);
34:             try {
35:                     if(rs != null) {%>


An error occurred at line: 53 in the jsp file: /test.jsp
ConnectionManager cannot be resolved
50:             } catch (Exception e) {
51:                 e.printStackTrace();
52:             } finally {
53:                 ConnectionManager.getInstance().releaseConnection(ct);
54:             }%>
55:         </table>
56:             <a href="index.html">Return to search</a>


Stacktrace:
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


Note The full stack trace of the root cause is available in the Apache Tomcat/6.0.33 logs.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.33

I was looking through google and it may be caused by not having packages inside the WEB-INF folder. I am running tomcat through IntelliJ IDEA and I’m wondering shouldn’t it move packages that are already in the filepath to the created WEB-INF folder on its own? And if it does, what am I doing wrong? This is the two files I’m using:

index.html:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
    <title>Employee Test Webapp</title>
</head>
<body>
    <h3>Employee Database:</h3>
    <table>
        <tr>
            What is the name of the Employee you want to find?
        </tr>
        <tr>
            <form action="test.jsp" method="post">
            <td><input type="text" name="empName"></td>
                <td><input type="submit" value="search"></td>
            </form>
        </tr>
    </table>

</body>
</html>

And test.jsp:

<%@ page import="com.sun.xml.internal.ws.wsdl.writer.document.xsd.Import" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.test.dao.*" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="com.test.util.ConnectionManager" %>
<%@ page import="java.sql.ResultSet" %>
<% String empN = request.getParameter("empName"); %>
<html>
<head><title>Employee Test Web App</title></head>
<body>
        Your results are:

        <table cellpadding="15" border="1" style="background-color: #ffffcc;">
            <tr>
                <td>Employee ID</td>
                <td>First Name</td>
                <td>Last Name</td>
                <td>Company Name</td>
                <td>Department Name</td>
                <td>Job Title</td>
                <td>Hire Date</td>
            </tr>
            <%  EmployeeDAO em = new EmployeeDAO();
            Connection ct = ConnectionManager.getInstance().getConnection();
            ResultSet rs = em.selectByFirstNameRS(empN,ct);
            try {
                    if(rs != null) {%>
                        <%while (rs.next()) {%>
                        <tr>
                            <td><%=rs.getInt(1)%></td>
                            <td><%=rs.getString(2)%></td>
                            <td><%=rs.getString(3)%></td>
                            <td><%=rs.getString(4)%></td>
                            <td><%=rs.getString(5)%></td>
                            <td><%=rs.getString(6)%></td>
                            <td><%=rs.getString(7)%></td>
                        </tr><%
                        }
                    }else{
                        %> <tr>Table empty</tr> <%
                    }
            } catch (Exception e) {
                e.printStackTrace();
            } finally {
                ConnectionManager.getInstance().releaseConnection(ct);
            }%>
        </table>
            <a href="index.html">Return to search</a>
  </body>
</html>

Some imports Idea made on its own. Here’s my filepath:

https://i.stack.imgur.com/nJqQq.png

Please 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-05-25T17:53:34+00:00Added an answer on May 25, 2026 at 5:53 pm

    Project Structure was right and intellij took care of everything. The resolve error was product of an inner runtime error that had to be corrected first. I used the tomcat logs in order to find it. Thanks for all your help either way.

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

Sidebar

Related Questions

Having problem with the middle Div not expanding to the width http://acs.graphicsmayhem.com/images/middiv.jpg Ok, how
I'm having problem in the following line: rd.PrintOptions.PaperSize = PaperSize.PaperFanfoldStdGerman; it throws an exception
We are having problem with the server migration. We have one application that are
I'm trying to follow this tutorial from Cython: http://docs.cython.org/docs/tutorial.html#the-basics-of-cython and I'm having a problem.
We're having problem with a huge number of legacy stored procedures at work. Do
I'm having problem when running my Windows Forms program. In the program, I have
I'm having problem with Rails plugin attachment_fu . On every upload, I get validation
i'm having problem to deal with charset in ruby on rails app, specificially in
I am having problem in getting reference of Ajax control extender using $find() or
I'm having problem selecting an element with an id like this <li =0f:Bactidol_Recorder.mp4>. I

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.