EJB3.0实体BEAN调用异常
妖精的舌头 2007-08-09 11:09:01 各位老大
我用MYECLIPSE5.5开发了个测试的EJB3.0实体BEAN,发布后,做了个测试类调用,老抛出异常,都郁闷了,实在找不到问题所在,特来求教,以下是异常的节选
javax.ejb.EJBException: java.lang.RuntimeException: java.lang.ExceptionInInitializerError; nested exception is: java.lang.RuntimeException: java.lang.ExceptionInInitializerError
java.lang.RuntimeException: java.lang.ExceptionInInitializerError
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:174)....
aused by: java.lang.ExceptionInInitializerError
at com.ejb.UmsgFacade.findById(UmsgFacade.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
....
Caused by: javax.persistence.PersistenceException: org.hibernate.HibernateException: The chosen transaction strategy requires access to the JTA TransactionManager
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)....
Caused by: org.hibernate.HibernateException: The chosen transaction strategy requires access to the JTA TransactionManager
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:329).....
javax.ejb.EJBException: java.lang.RuntimeException: java.lang.ExceptionInInitializerError; nested exception is: java.lang.RuntimeException: java.lang.ExceptionInInitializerError
at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63).....
Caused by: java.lang.RuntimeException: java.lang.ExceptionInInitializerError
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:174)......
Caused by: java.lang.ExceptionInInitializerError
at com.ejb.UmsgFacade.findById(UmsgFacade.java:66).....
Caused by: javax.persistence.PersistenceException: org.hibernate.HibernateException: The chosen transaction strategy requires access to the JTA TransactionManager
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)......
Caused by: org.hibernate.HibernateException: The chosen transaction strategy requires access to the JTA TransactionManager
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:329).......