首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

急求前辈们指导,有个小异常

2013-09-11 
急!!求前辈们指导,有个小错误xception sending context initialized event to listener instance of class

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

热点排行