Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hibernate 3.3 fail to create entity manager factory in Websphere 7.0. Please help

2,072 views
Skip to first unread message

landoa

unread,
Mar 13, 2010, 12:30:06 AM3/13/10
to
i got error as below when i deploy the application into Websphere 7.0
(embeded in RAD 7.5).

[3/13/10 13:22:55:074 SGT] 00000014 JPAPUnitInfo E CWWJP0015E: An
error occurred in the org.hibernate.ejb.HibernatePersistence
persistence provider when it attempted to create the container entity
manager factory for the afesjpa persistence unit. The following error
occurred: [PersistenceUnit: afesjpa] Unable to build
EntityManagerFactory
[3/13/10 13:22:55:074 SGT] 00000014 JPAPUnitInfo E CWWJP0009E: The
server cannot create an EntityManagerFactory factory for the afesjpa
persistent unit from the org.hibernate.ejb.HibernatePersistence
provider in file:/C:/Afes3/afesjpa/src/ module.

below is the persistence.xml.
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0"
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">
<persistence-unit name="afesjpa" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>jdbc/IIMSDB</jta-data-source>
<properties>
<property name="hibernate.dialect"
value="org.hibernate.dialect.DB2Dialect"/>
</properties>
</persistence-unit>
</persistence>


anyone have solution? Please help and thanks in advance.

landoa

unread,
Mar 13, 2010, 1:45:22 AM3/13/10
to
i found the solution. added the below property into persistence.xml
then will fix the issue.

<property name="hibernate.transaction.manager_lookup_class"
value="org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"/
>

0 new messages