java.lang.ClassCastException: com.ibm.ws.persistence.EntityManagerImpl incompatible with org.hibernate.impl.SessionImpl

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 paulalvarez
, 1 year ago
com.ibm.ws.persistence.EntityManagerImpl incompatible with org.hibernate.impl.SessionImpl
via openxava by achurilov
, 1 year ago
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerImpl cannot be cast to org.hibernate.impl.SessionImpl
java.lang.ClassCastException: com.ibm.ws.persistence.EntityManagerImpl incompatible with org.hibernate.impl.SessionImpl
at org.openxava.annotations.parse.AnnotatedClassParser.obtainManagedClassNamesUsingHibernate(AnnotatedClassParser.java:2247)
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 org.openxava.component.ComponentParser.parseAnnotatedClass(ComponentParser.java:46)
at org.openxava.component.ComponentParser.parse(ComponentParser.java:35)
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

You are the first who have seen this exception.

Write tip

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