Hi,
I'm running Hibernate deployed on WebLogic 8.1 and am deploying hibernate3.jar with my ear file.
As soon as the bean code hits the HibernateUtil class to set up the session e.g.
if (HibernateUtil.currentSession() == null) {
System.out.println("Session is null");
} else {
System.out.println("Session is not null");
}
, the following error is generated:
Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
From the looks of things, it seems that hibernate3.jar cannot be located but from my understanding, if the jar is included in the ear, then WebLogic should automatically use the jar and add it to it's classpath.
I've also tried copying the hibernate3.jar to the weblogic server/lib dir but again no luck.
|