Hi
I have a problem with initializing hibernate (instantiating and configuring caches; ExceptionInInitializerError):
797 [main] DEBUG net.sf.hibernate.connection.DriverManagerConnectionProvider - returning connection to pool, pool size: 1
797 [main] INFO net.sf.hibernate.cfg.SettingsFactory - Use scrollable result sets: true
797 [main] INFO net.sf.hibernate.cfg.SettingsFactory - Query language substitutions: {no='N', true=1, yes='Y', false=0}
797 [main] INFO net.sf.hibernate.cfg.SettingsFactory - cache provider: net.sf.ehcache.hibernate.Provider
797 [main] INFO net.sf.hibernate.cfg.Configuration - instantiating and configuring caches
java.lang.ExceptionInInitializerError
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:739)
at demo.DemoMain.<init>(DemoMain.java:33)
at demo.DemoMain.main(DemoMain.java:44)
Caused by: java.lang.IllegalStateException: Cannot determine classloader
at net.sf.cglib.core.AbstractClassGenerator.getClassLoader(AbstractClassGenerator.java:165)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:176)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:177)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:149)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:142)
at net.sf.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:235)
... 3 more
Exception in thread "main"
It seems that there is a problem with the class-loader
|