[
http://jira.jboss.com/jira/browse/JBSEAM-1950?page=all ]
Pete Muir updated JBSEAM-1950:
------------------------------
Fix Version/s: (was: 2.0.0.GA)
Assignee: Emmanuel Bernard
ClassCastException when using Hibernates DetachedCriteria
---------------------------------------------------------
Key: JBSEAM-1950
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1950
Project: JBoss Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.0.0.CR1, 2.0.0.BETA1
Environment: Jboss 4.2.1
Reporter: Christian Pietsch
Assigned To: Emmanuel Bernard
Priority: Critical
Since migration to Seam 2 (tried Beta 1 and CR1) I cannot list my entities using
Hibernate's DetachedCriteria any longer. Stack trace is:
Caused by: java.lang.ClassCastException: org.hibernate.search.impl.FullTextSessionImpl
at
org.jboss.seam.persistence.HibernateSessionProxy.getDelegateSessionImplementor(HibernateSessionP
roxy.java:401)
at
org.jboss.seam.persistence.HibernateSessionProxy.list(HibernateSessionProxy.java:566)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
at de.dvdb.generic.search.AbstractSearch.retrieveItems(AbstractSearch.java:261)
- in general I can access the entityManager in my application
- I don't use Seam's new search capabilities at all (right now)
- I'm getting the Hibernate Session in the following way:
<factory name="hibernateSession" scope="STATELESS"
auto-create="true" value="#{dvdb.delegate}" />
<persistence:managed-persistence-context name="dvdb"
auto-create="true"
persistence-unit-jndi-name="java:/dvdbEntityManagerFactory" />
Adding hibernate-search.jar and dependencies didn't help.
- Chris
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira