解决一下struts 2与spring ,hibernate整合的问题

sqi007 2008-12-08 03:25:36
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personService': Injection of persistence methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: No persistence units parsed from {classpath*:META-INF/persistence.xml}
出现如下问题,具体是哪个地方现了问题,本人是菜鸟。
...全文
247 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
sqi007 2008-12-10
  • 打赏
  • 举报
回复
问题搞定了,不是你们提到的,只不过是我没有在META-INF下配置persistence.xml这个文件,文件放错位置了
kbyst 2008-12-09
  • 打赏
  • 举报
回复
楼主似乎没有在web.xml里配置spring过滤器
试试
pidanlove 2008-12-08
  • 打赏
  • 举报
回复
personService 和 entityManagerFactory 配置有问题,注意大小写。再重新SET一下。

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧