-1

I am facing typical issue with the simple servlet, JSP application. I have developed some JSP pages and servlet. It works fine. After it, I have changed JSP file names to case sensitive likeAddEmployee.jsp to addEmployee.jsp and Home.jsp to home.jsp. I have also changed request dispatcher URL with new names. But then I facing exception

java.lang.NoClassDefFoundError: org/apache/jsp/employee/addEmployee_jsp

while loading JSP.

I am using Eclipse IDE and tomcat 9.0 application server.

Avijit Barua
  • 2,950
  • 5
  • 14
  • 35
Dhaval Goti
  • 447
  • 2
  • 10
  • 25

3 Answers3

0

Check spellings first. Like,
java.lang.NoClassDefFoundError: org/apache/jsp/employee/addEmployee_jsp instead of java.lang.NoClassDefFoundError: org/apache/jsp/employee/addEmployee.jsp. The clean and build the project. Finally run. Maybe it would work.

0

I solved this problem after cleaning Tomcat work directory.

ValGarcia
  • 1
  • 2
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Apr 24 '22 at 01:54
0

Here are the steps to solve the problem.

  1. go to server tabs
  2. expand the server
  3. right click on your project
  4. select clean Module Work directory

enter image description here

abdella
  • 490
  • 5
  • 11