Joined: Mon Nov 02, 2009 11:42 pm Posts: 1
|
I am trying to debug an error, specifically:
Exception in thread "main" org.hibernate.HibernateException: No CurrentSessionContext configured! at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:542)
I am using Hibernate in NetBeans and have configured CurrentSessionContext in my hibernate.cfg.xml file:
<hibernate-configuration> <session-factory> <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.url">**</property> <property name="hibernate.connection.username">**</property> <property name="hibernate.connection.password">**</property> <property name="hibernate.current_session_context_class">thread</property> ....
Any advice on troubleshooting this would be greatly appreciated!
|
|