Hi,
Given my persistence.xml below :
Code:
<?xml version="1.0" encoding="UTF-8"?>
<entity-manager>
<name>TimeFaces</name>
<class>example.model.a</class>
<class>example.model.b</class>
<class>example.model.c</class>
<class>example.model.d</class>
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<properties>
<property name="hibernate.ejb.cfgfile" value="/hibernate.cfg.xml"/>
</properties>
</entity-manager>
I got the following error :
[junit] javax.persistence.PersistenceException: java.lang.NullPointerException
[junit] at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:97)
What's wrong with the file above ?
Thanks for any help/suggestion,
nusa.