If you find the error as follows then try to have a look at the persistence.xml to check whether it has any classes which is not present in the project.Remove the classnames from the persistence.xml
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: xxxPU] class or package not found
at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1431)
at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:1214)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1058)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:703)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:75)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:200)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$600(PersistenceUnitServiceImpl.java:57)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:99)
... 4 more
Caused by: java.lang.ClassNotFoundException: xxxxx from [Module "org.hibernate:main" from local module loader @9e89d68 (finder: local module finder @3b192d32 (roots:
No comments:
Post a Comment