baliukas wrote:
Can you post full stack trace ? It must be "ExceptionInInitializerError" and cause in this satck trace. "java.lang.NoClassDefFoundError" is thrown on the next attempt to use uninitialized class and it says nothing usefull.
Here it is - just after configuring ehcache:
* WARN Configurator:125 - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/D:/JavaProjects/workspace/SkokCom30Dev/lib/ehcache-0.9.jar!/ehcache-failsafe.xml [19:17:46,281]
java.lang.NoClassDefFoundError
at net.sf.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:237)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:805)
at com.hands.skokcom3.dane.dao._RootDAO.initialize(_RootDAO.java:615)
at com.hands.skokcom3.logbiz.techniczne.ManagerPolecen.inicjujDostepDoBazy(ManagerPolecen.java:420)
at com.hands.skokcom3.logbiz.techniczne.manager_polecen.ObiektDostepuDoSesjiInterakcji.podajSesje(ObiektDostepuDoSesjiInterakcji.java:49)
at com.hands.skokcom3.logbiz.techniczne.ManagerPolecen.wykonajFunkcjeBiznesowa(ManagerPolecen.java:309)
at com.hands.skokcom3.logbiz.techniczne.ManagerPolecen.sWykonajFunkcjeBiznesowa(ManagerPolecen.java:118)
at com.hands.skokcom3.logbiz.techniczne.ManagerPolecen$1InterakcjaInicjujaca.glownePrzetwarzanie(ManagerPolecen.java:557)
at com.hands.skokcom3.interakcje.techniczne.ManagerInterakcji.uruchomInter(ManagerInterakcji.java:112)
at com.hands.skokcom3.interakcje.techniczne.ManagerInterakcji$1.run(ManagerInterakcji.java:172)
at java.lang.Thread.run(Unknown Source)
As you can see - the stack trace is not very deep and there's not too much info ... The message of NoClassDefFoundError is null. The _RootDAO.java:615 looks like this:
setSessionFactory(null, cfg.buildSessionFactory());