SessionFactoryHandlergetSessionFactory错误:org.hibernate.hibernate异常:无法找到当前JTA事务

SessionFactoryHandlergetSessionFactory错误:org.hibernate.hibernate异常:无法找到当前JTA事务,hibernate,Hibernate,我的应用程序已经从JDK1.7迁移到JDK1.8,从JBOSS4迁移到JBOSS-EAP6.4.0。迁移后,我得到以下问题。请帮助我在JBOSS6中进行任何配置 Exception: =========== 20:01:17,584 ERROR [com.excelacom.century.cpf.web.importexcel.helper.SessionFactoryHandler] (http-/127.0.0.1:8080-2) SessionFactoryHandlergetSess

我的应用程序已经从JDK1.7迁移到JDK1.8,从JBOSS4迁移到JBOSS-EAP6.4.0。迁移后,我得到以下问题。请帮助我在JBOSS6中进行任何配置

Exception:
===========

20:01:17,584 ERROR [com.excelacom.century.cpf.web.importexcel.helper.SessionFactoryHandler] (http-/127.0.0.1:8080-2) SessionFactoryHandlergetSessionFactory error: org.hibernate.HibernateException: Unable to locate current JTA transaction
    at org.hibernate.context.JTASessionContext.currentSession(JTASessionContext.java:61) [hibernate-3.2.6.ga.jar:3.2.6.ga]
    at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:544) [hibernate-3.2.6.ga.jar:3.2.6.ga]
    at com.excelacom.century.cpf.web.importexcel.helper.SessionFactoryHandler.getSessionFactory(SessionFactoryHandler.java:50) [importexcel-ui-0.1.jar:]
    at com.excelacom.century.cpf.web.importexcel.helper.ImportHelper.importScreenExcelFile(ImportHelper.java:223) [importexcel-ui-0.1.jar:]
    at com.excelacom.century.cpf.web.importexcel.controller.ImportController.uploadExcelFile(ImportController.java:172) [importexcel-ui-0.1.jar:]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_172]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_172]

20:01:17,643 INFO  [com.excelacom.century.cpf.web.importexcel.helper.SessionFactoryHandler] (http-/127.0.0.1:8080-2) SessionFactoryHandler getSessionFactory Exit
20:01:17,646 SEVERE [org.hibernate.transaction.JTATransaction] (http-/127.0.0.1:8080-2) Could not find UserTransaction in JNDI: javax.naming.NameNotFoundException: UserTransaction -- service jboss.naming.context.java.UserTransaction
    at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:104)
    at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:197)
    at org.jboss.as.naming.InitialContext$DefaultInitialContext.lookup(InitialContext.java:243)
    at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:183)

20:01:17,709 ERROR [com.excelacom.century.cpf.web.importexcel.helper.ImportHelper] (http-/127.0.0.1:8080-2) Error in ImportHelper.importScreenExcelFile: : org.hibernate.TransactionException: Could not find UserTransaction in JNDI: 
    at org.hibernate.transaction.JTATransaction.<init>(JTATransaction.java:64) [hibernate-3.2.6.ga.jar:3.2.6.ga]
    at org.hibernate.transaction.JTATransactionFactory.createTransaction(JTATransactionFactory.java:57) [hibernate-3.2.6.ga.jar:3.2.6.ga]
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
    at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_172]
Caused by: javax.naming.NameNotFoundException: UserTransaction -- service jboss.naming.context.java.UserTransaction
    at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:104)
    at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:197)
    at org.jboss.as.naming.InitialContext$DefaultInitialContext.lookup(InitialContext.java:243)


hibernate.connection.datasource = java:jboss/OracleDSPC
hibernate.transaction.factory_class = \org.hibernate.transaction.JTATransactionFactory
hibernate.transaction.manager_lookup_class = \org.hibernate.transaction.JBossTransactionManagerLookup
hibernate.jta.UserTransaction=weblogic.transaction.UserTransaction
hibernate.connection.release_mode=auto
hibernate.connection.pool_size=10
hibernate.bytecode.provider=cglib
show_sql=true
hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
hibernate.hbm2ddl.auto=update 
异常:
===========
20:01:17584错误[com.excelacom.century.cpf.web.importexcel.helper.SessionFactoryHandler](http-/127.0.0.1:8080-2)SessionFactoryHandlergetSessionFactory错误:org.hibernate.hibernateeException:无法找到当前JTA事务
在org.hibernate.context.JTASessionContext.currentSession(JTASessionContext.java:61)[hibernate-3.2.6.ga.jar:3.2.6.ga]
在org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:544)[hibernate-3.2.6.ga.jar:3.2.6.ga]
在com.excelacom.century.cpf.web.importexcel.helper.SessionFactoryHandler.getSessionFactory(SessionFactoryHandler.java:50)[importexcel-ui-0.1.jar:]
在com.excelacom.century.cpf.web.importexcel.helper.ImportHelper.importScreenExcelFile(ImportHelper.java:223)[importexcel-ui-0.1.jar:]
在com.excelacom.century.cpf.web.importexcel.controller.ImportController.uploadExcelFile(ImportController.java:172)[importexcel-ui-0.1.jar:]
在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)[rt.jar:1.8.0_172]
在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[rt.jar:1.8.0172]
20:01:17643信息[com.excelacom.century.cpf.web.importexel.helper.SessionFactoryHandler](http-/127.0.0.1:8080-2)SessionFactoryHandler getSessionFactory退出
20:01:17646严重[org.hibernate.transaction.JTATransaction](http-/127.0.0.1:8080-2)在JNDI中找不到UserTransaction:javax.naming.NameNotFoundException:UserTransaction--service jboss.naming.context.java.UserTransaction
位于org.jboss.as.naming.ServiceBasedNamegstore.lookup(ServiceBasedNamegstore.java:104)
位于org.jboss.as.naming.NamingContext.lookup(NamingContext.java:197)
位于org.jboss.as.naming.InitialContext$DefaultInitialContext.lookup(InitialContext.java:243)
位于org.jboss.as.naming.NamingContext.lookup(NamingContext.java:183)
20:01:17709错误[com.excelacom.century.cpf.web.importexcel.helper.ImportHelper](http-/127.0.0.1:8080-2)ImportHelper.importScreenExcelFile::org.hibernate.TransactionException:在JNDI中找不到用户事务:
在org.hibernate.transaction.JTATransaction.(JTATransaction.java:64)[hibernate-3.2.6.ga.jar:3.2.6.ga]
在org.hibernate.transaction.JTATransactionFactory.createTransaction(JTATransactionFactory.java:57)[hibernate-3.2.6.ga.jar:3.2.6.ga]
位于org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
在java.lang.Thread.run(Thread.java:748)[rt.jar:1.8.0_172]
原因:javax.naming.NameNotFoundException:UserTransaction——服务jboss.naming.context.java.UserTransaction
位于org.jboss.as.naming.ServiceBasedNamegstore.lookup(ServiceBasedNamegstore.java:104)
位于org.jboss.as.naming.NamingContext.lookup(NamingContext.java:197)
位于org.jboss.as.naming.InitialContext$DefaultInitialContext.lookup(InitialContext.java:243)
hibernate.connection.datasource=java:jboss/OracleDSPC
hibernate.transaction.factory\u class=\org.hibernate.transaction.JTATransactionFactory
hibernate.transaction.manager\u lookup\u class=\org.hibernate.transaction.JBossTransactionManagerLookup
hibernate.jta.UserTransaction=weblogic.transaction.UserTransaction
hibernate.connection.release\u mode=auto
hibernate.connection.pool_size=10
hibernate.bytecode.provider=cglib
show_sql=true
hibernate.dialogue=org.hibernate.dialogue.Oracle10gDialogue
hibernate.hbm2ddl.auto=更新

请帮助我解决上述问题:jboss 6和jdk 1.8版本是否支持hibernate 3?