[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1950) ClassCastException when using Hibernates DetachedCriteria

Christian Pietsch (JIRA) jira-events at lists.jboss.org
Sat Sep 22 14:12:10 EDT 2007

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
            Priority: Critical

Since migration to Seam 2 (tried Beta 1 and CR1) I cannot list my entities usingHibernate'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
	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"
		persistence-unit-jndi-name="java:/dvdbEntityManagerFactory" />

Add 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


More information about the seam-issues mailing list