xception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productTypeServiceBean': Injection of persistence fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in URL [file:/F:/学习软件/Tomcat%206.0/webapps/guanquan9/WEB-INF/classes/beans.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Cannot parse persistence unit from ServletContext resource [/META-INF/persistence.xml]
哪位前辈能留个邮箱,qq号帮我改下这个工程这个错误,感激不尽,急死了,进度挺了2天了
这个文件有没有?
在类路径下。你自己看看。beans.xml里面的entityManagerFactory定义出错导致productTypeServiceBean定义出错Error creating bean with name 'productTypeServiceBean': Injection of persistence fields failed
检查下/beans.xml中映射字段