我正在使用JTA與休眠通過這我有一個耳文件有多個戰爭文件時,我部署在玻璃魚耳文件它運行良好,但是當我運行那耳朵文件在JBoss中,它得到S-我的一些錯誤如何在jboss彈簧中使用JTA
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [persistenceContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: EW] Unable to build EntityManagerFactory
16:54:55,678 ERROR [stderr] (MSC service thread 1-8) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1486)
16:54:55,678 ERROR [stderr] (MSC service thread 1-8) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
16:54:55,679 ERROR [stderr] (MSC service thread 1-8) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
16:54:55,680 ERROR [stderr] (MSC service thread 1-8) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
16:54:55,680 ERROR [stderr] (MSC service thread 1-8) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
16:54:55,681 ERROR [stderr] (MSC service thread 1-8) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
16:54:55,682 ERROR [stderr] (MSC service thread 1-8) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
16:54:55,682 ERROR [stderr] (MSC service thread 1-8) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1117)
16:54:55,683 ERROR [stderr] (MSC service thread 1-8) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:922)
16:54:55,683 ERROR [stderr] (MSC service thread 1-8) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
16:54:55,684 ERROR [stderr] (MSC service thread 1-8) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
16:54:55,685 ERROR [stderr] (MSC service thread 1-8) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
16:54:55,685 ERROR [stderr] (MSC service thread 1-8) at com.eyewatch.dao.util.DAOLocator.<clinit>(DAOLocator.java:15)
請發表您的'的persistence.xml '這應該有助於我們幫助你! – Keerthivasan
拋出這個excletion的類使我感到害怕。'DAOLocator' ......看起來像遍歷依賴關係查找,我希望沒有構造一個'ApplicationContext'的ServiceLocator。唉,請發佈完整的stacktrace我希望有更多(某處),請在我的standalone.xml中添加spring configuration和persistence.xml –