• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 193
  • Last Modified:


I am refactoring my project on Tomcat and Eclipse. I think all of the code should work.

on web project, there is a 1.jsp file calling

on java project, there is a java file InObject.java, getId() is one of method in this java file. this java file is inside package m..dataserver;

when I run 1.jsp page, I got error:

javax.servlet.ServletException: m/dataserver/ImObject

root cause

java.lang.NoClassDefFoundError: m/ImObject
what is wrong, I am sure there is ImObject.java

1 Solution
where is the class file?  It should be in WEB-INF/classes/m/ImObject.class
or in a jar in WEB-INF/lib
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now