日期:2014-05-17  浏览次数:20620 次

急!!求前辈们指导,有个小错误
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天了

------解决方案--------------------
Error creating bean with name 'productTypeServiceBean': Injection of persistence fields failed
检查下/beans.xml中映射字段
------解决方案--------------------
/META-INF/persistence.xml
这个文件有没有?
在类路径下。你自己看看。
------解决方案--------------------
beans.xml里面的entityManagerFactory定义出错导致productTypeServiceBean定义出错