facebook

Getting the Below Error

  1. MyEclipse Archived
  2.  > 
  3. Documentation
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #248216 Reply

    naveenkilaru
    Member

    Hello,

    When I try to run the Sample Example On Hibernate I am getting the folloing Error.

    Could Anybody help me out to solve the Problem. Its giving me problem while building the Session factory.

    log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
    log4j:WARN Please initialize the log4j system properly.
    java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:323)
    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:219)
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
    at com.genuitec.hibernate.SessionManager.currentSession(SessionManager.java:54)
    at com.genuitec.hibernate.bonus.HibernateTest.main(HibernateTest.java:35)
    Exception in thread “main”

    #248281 Reply

    Riyad Kalla
    Member

    Navigate to your project properties, Java Build Path > Libraries > Add Library > MyEclipse Libraries > Hibernate Advanced Libraries then hit OK. You are missing ehcache.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Getting the Below Error

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