Hello,
I am assigned a decision analysis resolution task for a new project in my company. I am evaluating Websphere Application Server v7.0 with Hibernate as JPA provider, and having some integration troubles.
Websphere cannot create an EntityManagerFactory and gives the following error.
Code:
CWWJP0009E: The server cannot create an EntityManagerFactory factory for the Frameworks persistent unit from the org.hibernate.ejb.HibernatePersistence provider in file:/C:/Documents and Settings/burak/IBM/rationalsdp/workspace/Frameworks/ejbModule/ module.
I found out that there are other people having exactly the same problem but I am not sure whether the source of the problem is a mistake by me, a bug in Websphere or Hibernate. Also you can check this post:
http://groups.google.com/group/ibm.soft ... 0?lnk=raotI have configured my persistence.xml as follows:
Code:
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="Frameworks">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>jdbc/OracleJDBCDriverXADataSource</jta-data-source>
<class>gov.tubitak.frameworks.domain.Framework</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<property name="hibernate.dialect"
value="org.hibernate.dialect.Oracle9Dialect"/>
</properties>
</persistence-unit>
</persistence>
And I have added the hibernate core, annotations and entitymanager jars to my EAR project.
Because of this problem EntityManager injection fails:
Code:
@PersistenceContext private EntityManager entityManager;
Thanks in advance.