Hibernate 3 issue.
dvrajitha Aug 24, 2016 5:58 AMWhen i try to deploy this in wildfly 10 i am getting this error.
Source: https://github.com/sgilda/wildfly-quickstart/tree/master/hibernate3
What could be the issue?
15:18:57,413 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0027: Starting deployment of "wildfly-hibernate3.war" (runtime-name: "wildfly-hibernate3.war")
15:18:57,716 INFO [org.jboss.as.jpa] (MSC service thread 1-2) WFLYJPA0002: Read persistence.xml for primary
15:18:57,722 WARN [org.jboss.as.connector] (MSC service thread 1-2) WFLYJCA0091: -ds.xml file deployments are deprecated. Support may be removed in a future version.
15:18:57,850 WARN [org.jboss.as.dependency.private] (MSC service thread 1-4) WFLYSRV0018: Deployment "deployment.wildfly-hibernate3.war" is using a private module ("org.apache.commons.collections:main") which may be changed or removed in future versions without notice.
15:18:57,869 WARN [org.jboss.as.dependency.private] (MSC service thread 1-4) WFLYSRV0018: Deployment "deployment.wildfly-hibernate3.war" is using a private module ("org.antlr:main") which may be changed or removed in future versions without notice.
15:18:57,878 WARN [org.jboss.as.dependency.private] (MSC service thread 1-4) WFLYSRV0018: Deployment "deployment.wildfly-hibernate3.war" is using a private module ("asm.asm:main") which may be changed or removed in future versions without notice.
15:18:57,888 WARN [org.jboss.as.dependency.private] (MSC service thread 1-4) WFLYSRV0018: Deployment "deployment.wildfly-hibernate3.war" is using a private module ("org.javassist:main") which may be changed or removed in future versions without notice.
15:18:57,905 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."wildfly-hibernate3.war".FIRST_MODULE_USE: org.jboss.msc.service.StartException in service jboss.deployment.unit."wildfly-hibernate3.war".FIRST_MODULE_USE: WFLYSRV0153: Failed to process phase FIRST_MODULE_USE of deployment "wildfly-hibernate3.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYJPA0019: Could not deploy application packaged persistence provider 'org.hibernate.ejb.HibernatePersistence'
at org.jboss.as.jpa.processor.PersistenceProviderHandler.deploy(PersistenceProviderHandler.java:79)
at org.jboss.as.jpa.processor.PersistenceBeginInstallProcessor.deploy(PersistenceBeginInstallProcessor.java:49)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
... 5 more
Caused by: java.lang.ClassCastException: class org.hibernate.ejb.HibernatePersistence
at java.lang.Class.asSubclass(Class.java:3404)
at org.jboss.as.jpa.processor.PersistenceProviderHandler.deploy(PersistenceProviderHandler.java:72)
... 7 more
15:18:57,984 ERROR [org.jboss.as.controller.management-operation] (management task-6) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "wildfly-hibernate3.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"wildfly-hibernate3.war\".FIRST_MODULE_USE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"wildfly-hibernate3.war\".FIRST_MODULE_USE: WFLYSRV0153: Failed to process phase FIRST_MODULE_USE of deployment \"wildfly-hibernate3.war\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYJPA0019: Could not deploy application packaged persistence provider 'org.hibernate.ejb.HibernatePersistence'
Caused by: java.lang.ClassCastException: class org.hibernate.ejb.HibernatePersistence"}}
15:18:58,078 ERROR [org.jboss.as.server] (management task-6) WFLYSRV0021: Deploy of deployment "wildfly-hibernate3.war" was rolled back with the following failure message:
{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"wildfly-hibernate3.war\".FIRST_MODULE_USE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"wildfly-hibernate3.war\".FIRST_MODULE_USE: WFLYSRV0153: Failed to process phase FIRST_MODULE_USE of deployment \"wildfly-hibernate3.war\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYJPA0019: Could not deploy application packaged persistence provider 'org.hibernate.ejb.HibernatePersistence'
Caused by: java.lang.ClassCastException: class org.hibernate.ejb.HibernatePersistence"}}
15:18:58,109 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0028: Stopped deployment wildfly-hibernate3.war (runtime-name: wildfly-hibernate3.war) in 31ms
15:18:58,133 INFO [org.jboss.as.controller] (management task-6) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."wildfly-hibernate3.war".FIRST_MODULE_USE