-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: HibernatePersistence & PersistenceProvider trouble
PostPosted: Tue Feb 10, 2009 4:06 am 
Newbie

Joined: Tue Feb 10, 2009 3:29 am
Posts: 5
Hibernate version: 3.2.6

Name and version of the database you are using: hsqldb 1.8.6

Hi,
i hope you can help me. I using jboss, with seam,spring and hibernate. Jboss comes with a version of hibernate, so yesterday i need to update the version of hibernate.

The following libs are updated:
    antlr-2.7.6.jar
    commons-collections-3.1.jar
    com4j-1.6.1.jar
    ejb3-persistence.jar
    hibernate3.jar
    hibernate-annotations.jar
    hibernate-commons-annotations.jar
    hibernate-core.jar
    hibernate-entitymanager.jar
    hibernate-search.jar
    hibernate-validator.jar
    javassist-3.4.GA.jar
    jms.jar
    jsr250-api.jar
    jta-1.1.jar
    lucene-core.jar
    slf4j-api-1.5.6.jar
    slf4j-nop-1.5.6.jar
    solr-common.jar
    solr-core.jar


On startup of the server, they reading my configurationContext.xml:
Code:
...
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="generateDdl" value="true" />
<property name="database">
<util:constant static field="org.springframework.orm.jpa.vendor.Database.MYSQL" />
  </property>
  <property name="showSql" value="true" />
  </bean>
</property>
....


and then i getting following exception:

Code:
java.lang.IllegalArgumentException: class org.hibernate.ejb.HibernatePersistence is not assignable to interface javax.persistence.spi.PersistenceProvider


i dont know if this the right forum for my problem, but i hope you can give me some tipps.

Big thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.