java.lang.ClassCastException

oracle.toplink.essentials.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider\*\*

Solutions on the web19055

  • via Coderanch by kishore nag, 7 months ago
    oracle.toplink.essentials.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider
  • oracle.toplink.essentials.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider\*\*
  • via Coderanch by kishore nag, 7 months ago
    oracle.toplink.essentials.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider
  • Stack trace

    • java.lang.ClassCastException: oracle.toplink.essentials.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider\*\* at javax.persistence.Persistence.findAllProviders(Persistence.java:79) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:48) 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago