道 人首蛇身:spring roo :Error creating bean with name 'entityManagerFactory'

来源:百度文库 编辑:九乡新闻网 时间:2024/04/28 03:33:13
2011-06-06 08:42:55,343 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager'
defined in file [F:\install\Java EE相关程序、资料
\springsource\tc-server-developer-2.1.1.RELEASE\
spring-insight-instance\wtpwebapps\realestateExchage
\WEB-INF\classes\META-INF\spring\
applicationContext.xml]:
Cannot resolve reference to bean 'entityManagerFactory'
while setting bean property 'entityManagerFactory';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'entityManagerFactory'
defined in file [F:\install\Java EE相关程序、资料\springsource\tc-server-developer-2.1.1.RELEASE
\spring-insight-instance\wtpwebapps\realestateExchage\WEB-INF\classes\META-INF\spring\applicationContext.xml]:
Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: persistenceUnit] Unable to build EntityManagerFactory 也没有做什么,就是进去persistent.xml打了几个回车保存,再发布就可以了