日期:2014-05-19 浏览次数:20896 次
<hibernate-configuration> <!-- jndi --> <session-factory name="java:comp/env/hibernate/SessionFactory"> <!-- properties --> <property name="connection.datasource"> java:comp/env/jdbc/etc_portal </property> <property name="dialect"> net.sf.hibernate.dialect.Oracle9Dialect </property> <property name="show_sql">false</property> <property name="use_outer_join">false</property> [b]<property name="transaction.manager_lookup_class"> net.sf.hibernate.transaction.JBossTransactionManagerLookup </property> <property name="jta.UserTransaction"> java:comp/UserTransaction </property>[/b] <!-- mapping files --> </session-factory> </hibernate-configuration>
net.sf.hibernate.HibernateException: Could not locate TransactionManager at net.sf.hibernate.transaction.JNDITransactionManagerLookup.getTransact ionManager(JNDITransactionManagerLookup.java:26)
[b]<property name="transaction.manager_lookup_class"> net.sf.hibernate.transaction.JBossTransactionManagerLookup </property> <property name="jta.UserTransaction"> java:comp/UserTransaction </property>[/b]