运行jboss 6.0
我收到以下错误,你能帮我吗
18:20:29,504 WARN [org.jboss.deployers.vfs.structure] Exception looking for WEB-INF/lib, /C:/eTravel_workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_9_Server1294231790973/deploy/eTravel.war, java.util.zip.ZipException: error in opening zip file
18:23:28,990 INFO [org.jboss.jpa.deployment.PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=eTravel.war#eTravel
18:23:28,990 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=eTravel.war#eTravel state=Create: java.lang.ClassCastException: org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider
at org.jboss.jpa.builder.DefaultCEMFBuilder.build(DefaultCEMFBuilder.java:46) [:1.0.2-alpha-1]
i got the following error can u help me out
18:20:29,504 WARN [org.jboss.deployers.vfs.structure] Exception looking for WEB-INF/lib, /C:/eTravel_workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_9_Server1294231790973/deploy/eTravel.war, java.util.zip.ZipException: error in opening zip file
18:23:28,990 INFO [org.jboss.jpa.deployment.PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=eTravel.war#eTravel
18:23:28,990 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=eTravel.war#eTravel state=Create: java.lang.ClassCastException: org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider
at org.jboss.jpa.builder.DefaultCEMFBuilder.build(DefaultCEMFBuilder.java:46) [:1.0.2-alpha-1]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的 WAR 中可能有 JPA JAR 的副本。删除它们。 JBoss 有自己的副本,它们会发生冲突。
You probably have a copy of the JPA JAR(s) in your WAR. Remove them. JBoss has its own copy, and they will clash.