facebook

NoClassDefFoundError: org/hibernate/criterion/Criterion

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #263943 Reply

    frankc01a
    Member

    I have a dynamic web project that I started and am using ZK Ajax without Javascript.

    I “added” Hibernate capabilities. I have read the other posts about going to Properties->MyEclipse->Web and have checked all the deployment boxes.

    I get this when instantiating a reverse engineered DAO

    Please help

    #263945 Reply

    Riyad Kalla
    Member

    You need to have the Hibernate 3.1 Core Libraries in your path. You also need to make sure that your project is setup to deploy libraries on your build path.

    First go to your project properties, Java Build Path > Libraries. Make sure you have “Hibernate 3.1 Core Libraries” listed. If not you can add it by clicking Add Library > MyEclipse Library, then selecting it.

    Next check your MyEclipse > Web > Deployment settings and make sure it’s set to deploy the user libraries.

    Lastly if you have setup Tomcat to run directly from your project dir, then that is the problem; because the libraries don’t exist in your WEB-INF/lib dir until deployment time.

    #263962 Reply

    frankc01a
    Member

    I did have Tomcat set to run direct from project dir.

    To remedy I have to deploy and I should see the Hibernate jars then put into WEB-INF/lib?

    #263964 Reply

    frankc01a
    Member

    Ok, it worked although I had to create a new project.

    If would be easier of the workspace server settings accomadated this.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: NoClassDefFoundError: org/hibernate/criterion/Criterion

You must be logged in to post in the forum log in