Skip to Content
0
Former Member
Jun 11, 2009 at 10:14 AM

Problems with Hibernate/JPA in our current Netweaver project

76 Views

Hi together,

currently we are trying to migrate our Glassfish project to run under Netweaver. Til now, we have used Hibernate as the JPA Implementation.

If we are trying to deploy our EAR, we get the failure that the EntityManager (Persistance Unit) can not be created.

Here is our persistence-context.xml

	<persistence-unit name="soiPersistenceUnit" transaction-type="JTA">
		<provider>org.hibernate.ejb.HibernatePersistence</provider>
		<jta-data-source>SOI_DB</jta-data-source>
		<class>de.hr.ec.hai.ejb.entity.Project</class>
                ...
		<properties>
			<property name="hibernate.dialect" value="org.hibernate.dialect.SAPDBDialect" />
			<property name="hibernate.hbm2ddl.auto" value="update" />
			<property name="hibernate.show_sql" value="true" />
 			<property name="hibernate.query.substitutions" value="true '1', false '0'" />
			<property name="hibernate.current_session_context_class" value="jta" />
			<property name="hibernate.transaction.manager_lookup_class" value="de.hr.ec.hai.ejb.service.SAPWebASTransactionManagerLookup" />
			<property name="hibernate.jdbc.batch.size" value="1" />
		</properties>
	</persistence-unit>

Has anyone an good hint to solve the problem?