facebook

java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateE

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #259535 Reply

    mimi_grebici
    Member

    Hi

    N.B : I am sorry for my english and I hope that you can anderstand what I want to say 😆 !!!!

    can you please explain to me how MyEclipse work towards Hibernate

    in applicationContext.xml file, sessionFactory is declared by class org.springframework.orm.hibernate3.LocalSessionFactoryBean

    and in the DAO classes there is import org.springframework.orm.hibernate3.support.HibernateDaoSupport

    so I suppose that hibernate3.* is the used version !! so why this version did not be loaded by myEclipse like it done for sring jars ?!!

    and when I load this version I have the following exception :

    java.lang.ClassNotFoundException: org.springframework.orm.hibernate3.LocalSessionFactoryBean

    then I delete 3 , I declare sessionFactory like this :

    <bean id=”sessionFactory” class=”org.springframework.orm.hibernate.LocalSessionFactoryBean”>

    I have this exception

    java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateException

    Can you please tell me why ?!!!

    thanks

    Mimi

    #259538 Reply

    mimi_grebici
    Member

    Now I have an other problem !!
    I have downloaded the version 1.2 of springFramework

    I dont have the exception but the web.xml file is not copied in the WEB-INF folder during the deployment !!!

    what does it mean?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateE

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