'JSP is not found with error java.lang.NoClassDefFoundError after renaming it

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.



Solution 1:[1]

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.

Solution 2:[2]

I solved this problem after cleaning Tomcat work directory.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Valeria Ferreira Garcia