0 Replies Latest reply on Sep 7, 2007 5:48 PM by Forrest Chang

    JPA differences from JBoss 4.04 to 4.2.1?

    Forrest Chang Newbie

      HI All:

      We upgraded from 4.0.4 to 4.2.1 and a waar with JPA/Hibernate/MySQL which used to work fine on both 4.0.4 and the current GlassFish no longer works on 4.2.1

      Here's a segment from the JBoss log

      22:20:02,490 INFO [STDOUT] 22:20:02,490 INFO [QueryBinder] Binding Named query: ComplianceAgreements.findAllComplianceAgreementId => SELECT s FROM ComplianceAgreements s order by id desc
      22:20:02,522 INFO [STDOUT] 22:20:02,522 INFO [EntityBinder] Bind entity com.baesystems.irad.hibernate.ComplianceAgreements on table compliance_agreements
      22:20:02,580 INFO [STDOUT] 22:20:02,580 INFO [Version] Hibernate Validator 3.0.0.GA
      22:20:02,691 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
      java.lang.ClassCastException: org.hibernate.search.event.FullTextIndexEventListener
       at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:856)
       at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:730)
       at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:121)
       at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
       at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)


      I suspect this may have something to do with jar version differences. I originally had ejb jars, which I removed, which had given me different stack traces, but I haven't been able to consistently duplicate them.

      Is there a quick thing I'm missing?

      THanks

      Forrest