2011-05-28 190 views
-2

我已經得到了錯誤:休眠JNDI錯誤

INFO: building session factory 
May 28, 2011 2:28:05 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance 
INFO: Not binding factory to JNDI, no JNDI name configured 
Exception in thread "main" org.hibernate.HibernateException: No CurrentSessionContext configured! 
     at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:542) 
     at hiberpack.EventManager.createAndStoreEvent(EventManager.java:25) 
     at hiberpack.EventManager.main(EventManager.java:18) 
Java Result: 1 

我可以做什麼用呢?請幫忙。

回答