java.lang.ClassCastException: org.hibernate.search.event.FullTextIndexEventListener cannot be cast to org.hibernate.event.PostInsertEventListener

openxava | dgsalas | 8 years ago
  1. 0

    Desplegar el war en JBoss

    openxava | 8 years ago | dgsalas
    java.lang.ClassCastException: org.hibernate.search.event.FullTextIndexEventListener cannot be cast to org.hibernate.event.PostInsertEventListener
  2. 0

    Help with setting up the development environment - Open Knowledge Management

    openkm.com | 8 months ago
    java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener cannot be cast to org.hibernate.event.PreInsertEventListener
  3. 0

    Help with setting up the development environment - Open Knowledge Management

    openkm.com | 7 months ago
    java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener cannot be cast to org.hibernate.event.PreInsertEventListener
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hello, When deploying machin.war, I got this error message: C:\Documents and Settings\SKE11264>2011-07-07 11:24:06,531 : WARDeployer.doDeploy : Deploying machin.war 2011-07-07 11:24:28,653 : BaseWebContainerService.registerWar : The application /D:/ske11264/wp/jonas_base/deploy/machin.war has its java2-delegation-model p arameter set to false. JOnAS 5 offers a new possibility called the filtering class loader that can replace this parameter and doesn't suffer from the many unexp ected behaviours caused by class loader inversion. Please see to JOnAS configuration guide for details. [machin] 2011-07-07 11:24:30,073 DEBUG [Thread-29] SpringContextListener.contextInitialized(45) | initializing context... 2011-07-07 11:24:30,089 : ApplicationContext.log : Loading Spring root WebApplicationContext [machin] 2011-07-07 11:24:32,087 ERROR [Thread-29] ContextLoader.initWebApplicationContext(205) | Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceManager' defined in ServletContext resource [/WEB-INF/application Context-manager.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springfram ework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/applicationContext-hi bernate.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.fact ory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]: Invoca tion of init method failed; nested exception is java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/applica tionContext-hibernate.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframew ork.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext-hibernat e.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/application Context-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener Caused by: java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:783) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:804) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:744) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:131) ... ad so on I suspect a conflict between Hibernate .war version and EsayBeans Hibernate .war version. I don't understand why because the application is configured to prefer dependencies embedded in the .war like JOnAS permit it. Is EasyBeans overriding this behavior ? Best regards, Stéphane.

    JIRA | 5 years ago | Stéphane KÉRAIN
    java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener
  6. 0

    Help with setting up the development environment - Open Source Document Management System | OpenKM

    openkm.com | 2 months ago
    java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener cannot be cast to org.hibernate.event.PreInsertEventListener

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.hibernate.search.event.FullTextIndexEventListener cannot be cast to org.hibernate.event.PostInsertEventListener

      at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory()
    2. Hibernate
      AnnotationConfiguration.buildSessionFactory
      1. org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:856)
      1 frame
    3. Hibernate EJB
      HibernatePersistence.createEntityManagerFactory
      1. org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:730)
      2. org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:121)
      2 frames
    4. JavaEE 7
      Persistence.createEntityManagerFactory
      1. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
      1 frame
    5. org.openxava.jpa
      XPersistence.createManager
      1. org.openxava.jpa.XPersistence.getEntityManagerFactory(XPersistence.java:180)
      2. org.openxava.jpa.XPersistence.createManager(XPersistence.java:108)
      2 frames
    6. org.openxava.annotations
      AnnotatedClassParser.parse
      1. org.openxava.annotations.parse.AnnotatedClassParser.obtainManagedClassNamesUsingHibernate(AnnotatedClassParser.java:2110)
      2. org.openxava.annotations.parse.AnnotatedClassParser.getManagedClassNames(AnnotatedClassParser.java:2026)
      3. org.openxava.annotations.parse.AnnotatedClassParser.getClassNameFor(AnnotatedClassParser.java:1988)
      4. org.openxava.annotations.parse.AnnotatedClassParser.parse(AnnotatedClassParser.java:50)
      4 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    8. org.openxava.util
      Objects.execute
      1. org.openxava.util.Objects.execute(Objects.java:193)
      2. org.openxava.util.Objects.execute(Objects.java:112)
      2 frames
    9. org.openxava.component
      MetaComponent.get
      1. org.openxava.component.ComponentParser.parseAnnotatedClass(ComponentParser.java:54)
      2. org.openxava.component.ComponentParser.parse(ComponentParser.java:34)
      3. org.openxava.component.MetaComponent.get(MetaComponent.java:60)
      3 frames
    10. org.openxava.view
      View.getFocusPropertyId
      1. org.openxava.view.View.getMetaModel(View.java:242)
      2. org.openxava.view.View.getMetaView(View.java:223)
      3. org.openxava.view.View.createMetaMembers(View.java:141)
      4. org.openxava.view.View.getMetaMembers(View.java:120)
      5. org.openxava.view.View.getFirsEditablePropertyId(View.java:3091)
      6. org.openxava.view.View.calculateFocusPropertyId(View.java:3069)
      7. org.openxava.view.View.getFocusPropertyId(View.java:3055)
      7 frames