jQuery in Action, 2nd edition*
The moose likes EJB and other Java EE Technologies and the fly likes createEntityManagerFactory is null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply locked New topic

createEntityManagerFactory is null

tarik el berrak

Joined: Oct 06, 2006
Posts: 29
Hi all,

I have a problem with my jpa project.

here is the persistence file:
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
<persistence-unit name="QuotePickerPU" transaction-type="RESOURCE_LOCAL">
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver" />
<property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/trainning" />
<property name="hibernate.connection.username" value="root"/>

i get null when calling this

emf = Persistence.createEntityManagerFactory("QuotePickerPU");

any ideas ??

Thanks in advance

SCJP 1.5<br />New Target (SCWCD 5)
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 9955

Please do not post the same question in multiple forums. Let's continue this discussion in your other thread at http://www.coderanch.com/t/418901/java-EJB-SCBCD/certification/createEntityManagerFactory-null

[My Blog] [JavaRanch Journal]
Consider Paul's rocket mass heater.
subject: createEntityManagerFactory is null
Similar Threads
Hibernate: Error getting property 'lastItem'
Could not resolve a persistence unit corresponding to the persistence-context-ref-name
JPA: Can't find Persistence Provider
Problem with Mapping between 1 bit column and boolean field
createEntityManagerFactory null