title: org.hibernate.HibernateException: No TransactionManagerLookup specified
body: <p>I am having this exception "org.hibernate.HibernateException: No TransactionManagerLookup specified". I had a ejb module project which is deployed on Glassfish Server. I am very confused with this exception since I think i had configured all the necessary configurations on my hibernate.cfg.xml. Here is my Hibernate.cfg.xml</p>
  
  <pre><code>&lt;!-- DataSource properties (begin) --&gt;
  &lt;property name="hibernate.connection.datasource"&gt;testdb&lt;/property&gt;
  
  &lt;!-- JTA transaction properties (begin) --&gt;
  &lt;property name="hibernate.current_session_context_class"&gt;jta&lt;/property&gt;
  &lt;property name="hibernate.transaction.factory_class"&gt;org.hibernate.transaction.CMTTransactionFactory&lt;/property&gt;
  &lt;property name="hibernate.transaction.manager_lookup_class"&gt;org.hibernate.transaction.SunONETransactionManagerLookup&lt;/property&gt;
  
  &lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/property&gt;
  &lt;property name="hibernate.connection.driver_class"&gt;com.mysql.jdbc.Driver&lt;/property&gt;
  &lt;property name="hibernate.show_sql"&gt;true&lt;/property&gt;
  &lt;property name="hibernate.hbm2ddl.auto"&gt;update&lt;/property&gt;
  &lt;property name="hibernate.cache.use_second_level_cache"&gt;false&lt;/property&gt;
  &lt;property name="hibernate.cache.provider_class"&gt;org.hibernate.cache.NoCacheProvider&lt;/property&gt;
  &lt;property name="hibernate.connection.zeroDateTimeBehavior"&gt;convertToNull&lt;/property&gt;
  </code></pre>
  
  <p>This is the stack trace im encountering:</p>
  
  <pre><code>Caused by: org.hibernate.HibernateException: No TransactionManagerLookup specified
  at org.hibernate.context.internal.JTASessionContext.currentSession(JTASessionContext.java:85)
  at org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:1014)
  at dao.CourseDAO.insert(CourseDAO.java:56)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:483)
  at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)
  at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)
  at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4695)
  at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:630)
  at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
  at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:582)
  at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:46)
  at sun.reflect.GeneratedMethodAccessor407.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:483)
  at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
  at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
  at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:582)
  at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)
  at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:140)
  at sun.reflect.GeneratedMethodAccessor458.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:483)
  at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
  at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
  at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
  at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4667)
  at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4655)
  at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)
  ... 121 more
  </code></pre>
  
  <p>Thanks. Hope you can help me . </p>
  
  <p>Can anyone tell me what do i missed here. Thanks.</p>