Posted on 2006-05-08
Last Modified: 2010-03-31
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, 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

Question by:keepworking
    1 Comment
    LVL 92

    Accepted Solution

    where is the class file?  It should be in WEB-INF/classes/m/ImObject.class
    or in a jar in WEB-INF/lib

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    If you have upgraded to Java2 update 10 on a Microsoft Windows client, you may have discovered that your Java application does not work as it did before.  For example, the colors of your Java2D graphic may be all wrong for no apparent reason. Aft…
    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now