-->
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: Custom provider for hibernate
PostPosted: Wed Mar 05, 2014 7:23 am 
Newbie

Joined: Fri Oct 15, 2010 10:30 am
Posts: 3
Hi everyone,

Last days I tried to make hibernate 4.3.1 work with my JPA project deployed in a tomcat. I used a persistence.xml as a configuration file where I specified my data source for Hibernate. The problem is that it seems to me that this version of Hibernate has an issue. It didn't get the data source loaded. (for more details, you can look at this link: http://stackoverflow.com/questions/22175544/cannot-call-jndi-resource-in-persistence-xml-file). Finally I cnaged version to 4.2.8.Final, and everything worked as supposed to.
During my trials to solve this issue, I tried to extend HibernatePersistenceProvider class with my own class, and specify it in <provider> tag of my persistence.xml file. Anywat, when I tried this, I got a
Code:
javax.persistence.PersistenceException: No Persistence provider for EntityManager named X
exception.

Can anyone suggest me how I would be able to provide my own class as provider for Hibernate?


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.