0 Replies Latest reply on Feb 13, 2009 10:39 PM by Jon Doe

    Persistence classLoader issue

    Jon Doe Newbie

      hi all...

      i'm getting this issue when trying to jboss 4.2.3.ga (jdk1.6). it works fine in tomcat, so i'm thinking there's a clash in the hibernate jars (or something else). if someone has an idea, would be helpful:

      pleApplicationEventMulticaster@1e48d65]
      20:32:05,157 INFO [STDOUT] ERROR: org.springframework.web.context.ContextLoader - Context initialization failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bookingService': Injection of persistence methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating be
      an with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/data-source-config.xml]: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError: Class org.hibernate.ejb.Hibernate
      Persistence does not implement the requested interface javax.persistence.spi.PersistenceProvider
       at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(Persiste
      nceAnnotationBeanPostProcessor.java:324)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCap
      ableBeanFactory.java:998)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCap
      ableBeanFactory.java:472)
      


      thx in adv...