Weblogic 10.3.6 与 hibernate jpa 2 冲突

A-wolf 2016-09-21 05:34:33
<Sep 21, 2016 5:26:41 PM CST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'wechat-manage-cxf' due to error weblogic.application.ModuleException: Failed to load webapp: wechat-manage-cxf.war because of DeploymentException: weblogic.deployment.EnvironmentException: Error processing persistence unit persistenceUnit of module wechat-manage-cxf.war: Error instantiating the Persistence Provider class org.hibernate.ejb.HibernatePersistence of the PersistenceUnit persistenceUnit: java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider.
weblogic.application.ModuleException: Failed to load webapp: wechat-manage-cxf.war because of DeploymentException: weblogic.deployment.EnvironmentException: Error processing persistence unit persistenceUnit of module wechat-manage-cxf.war: Error instantiating the Persistence Provider class org.hibernate.ejb.HibernatePersistence of the PersistenceUnit persistenceUnit: java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:397)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
...全文
112 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

5,655

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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