Hallo,
ich bekomme eine Exception Initial SessionFactory creation failed." bei:
Code:
public class HibernateSession {
private static final SessionFactory sessionFactory;
static {
try {
// Create the SessionFactory from hibernate.cfg.xml
sessionFactory = new Configuration().configure().buildSessionFactory();
}
catch (Throwable ex) {
System.err.println("Initial SessionFactory creation failed." + ex);
throw new ExceptionInInitializerError(ex);
}
}
public static SessionFactory getSessionFactory() {
return HibernateSession.sessionFactory;
}
}
Wodurch kann es verursacht werden?
Danke Euch ,
seven-12