[jboss-user] [Beginners Corner] - Persistence classLoader issue

jules11 do-not-reply at jboss.com
Fri Feb 13 22:40:00 EST 2009


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 at 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...


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210098#4210098

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210098



More information about the jboss-user mailing list