i try to build simple crud app using java hibernate 3.6, but i've got a problem, when try to run, it was error, like this:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Inisialisasi sessionFactory failed org.hibernate.InvalidMappingException: Unable to read XML
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
any suggestion please? thanks's,
public class HibernateUtil {
private static final SessionFactory sessionFactory;
private static final orangDao orangDao;
static {
try {
sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();
orangDao = new orangDaoImpl(sessionFactory);
} catch (Throwable e) {
System.err.println("Inisialisasi sessionFactory gagal "+e);
throw new ExceptionInInitializerError(e);
}
}
public static orangDao getPersonDao() {
return orangDao;
}
public static SessionFactory getSessionFactory() {
return sessionFactory;
}
}