java.lang.ClassCastException: oracle.toplink.essentials.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider\*\*

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via openxava by dirdam
, 1 year ago
oracle.toplink.essentials.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider\*\*
via github.com by Unknown author, 1 year ago
org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
via google.com by Unknown author, 2 years ago
org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
via Google Groups by Stef Heyenrath, 9 months ago
org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
via Oracle Community by gutierrezge, 1 year ago
org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider>java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
java.lang.ClassCastException: oracle.toplink.essentials.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider\*\*
at javax.persistence.Persistence.findAllProviders(Persistence.java:79)
at org.openxava.jpa.XPersistence.getEntityManagerFactory(XPersistence.java:179)
at org.openxava.jpa.XPersistence.createManager(XPersistence.java:107)
at org.openxava.annotations.parse.AnnotatedClassParser.obtainManagedClassNamesUsingHibernate(AnnotatedClassParser.java:2246)
at org.openxava.annotations.parse.AnnotatedClassParser.getManagedClassNames(AnnotatedClassParser.java:2162)
at org.openxava.annotations.parse.AnnotatedClassParser.getClassNameFor(AnnotatedClassParser.java:2124)
at org.openxava.annotations.parse.AnnotatedClassParser.parse(AnnotatedClassParser.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.openxava.util.Objects.execute(Objects.java:193)
at org.openxava.util.Objects.execute(Objects.java:112)
at org.openxava.component.ComponentParser.parseAnnotatedClass(ComponentParser.java:54)
at org.openxava.component.ComponentParser.parse(ComponentParser.java:34)
at org.openxava.component.MetaComponent.get(MetaComponent.java:60)
at org.openxava.tab.Tab.getMetaTab(Tab.java:203)
at org.openxava.tab.Tab.getPreferences(Tab.java:843)
at org.openxava.tab.Tab.loadUserPreferences(Tab.java:1047)
at org.openxava.tab.Tab.setModelName(Tab.java:776)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.