em.getDelegate() fails in glassfish 2 if hibernate is JPA provider
------------------------------------------------------------------
Key: JBSEAM-4708
URL: https://jira.jboss.org/browse/JBSEAM-4708
Project: Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.2.0.GA
Environment: Glassfish 2.1.1
Seam 2.2.0GA
Java JDK 1.6.0_21
Windows XP SP3
Reporter: Rainer Flicker
If Hibernate is used as JPA provider with Glassfish 2 and em.getDelegate() is
executed, a RuntimeException will be
thrown:
java.lang.RuntimeException: could not proxy delegate
at
org.jboss.seam.persistence.HibernatePersistenceProvider.proxyDelegate(HibernatePersistenceProvider.java:148)
at
org.jboss.seam.persistence.EntityManagerProxy.getDelegate(EntityManagerProxy.java:97)
at
org.hibernate.search.jpa.impl.FullTextEntityManagerImpl.getDelegate(FullTextEntityManagerImpl.java:165)
at
org.jboss.seam.persistence.EntityManagerProxy.getDelegate(EntityManagerProxy.java:97)
...
See
http://weblogs.java.net/blog/2009/05/25/be-careful-while-using-entitymanagergetdelegate
If em.getDelegate() is executed, glassfish returns
org.hibernate.ejb.EntityManagerImpl. But
org.jboss.seam.persistence.HibernatePersistenceProvider expects
org.hibernate.Session.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues