Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. Persistence.createEntityManagerFactory() has thrown a ClassCastException
    Hibernate Java Persistence API, Version 2.1
    0
    0
    2
  2. Persistence.findAllProviders() has thrown a ClassCastException
    Hibernate Java Persistence API, Version 2.1
    0
    0
    2

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence
1 matching frame hidden
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:79)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60)
    at client.ClientEMF.main(ClientEMF.java:14)

External results for this pattern (5)

  1. Unknown authorvia github.com5 months ago
    org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
    Show stack trace
  2. gutierrezgevia Oracle Community5 months 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
    Show stack trace
  3. hazervia Google Groups6 months ago
    org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider
    Show stack trace
  4. Stef Heyenrathvia Google Groups1 year ago
    org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
    Show stack trace
  5. desirazuvia Terracotta2 years ago
    No message found for this stack trace.
    Show stack trace