tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Karsten.O...@t-systems.com>
Subject Re: OpenEJB - Missing required persistence.xml
Date Fri, 15 Feb 2008 17:36:01 GMT
Hi,

well it works now. Because I have changed the persistence provider to Hibernate. The problem
now is that entities are not persisted. persist() simply does nothing. But no error is shown.

The persistence.xml is as follows. I have also a full log of the whole Hibernate. I cannot
find an error.

<?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="testFacadePu" transaction-type="RESOURCE_LOCAL">
		<provider>org.hibernate.ejb.HibernatePersistence</provider>
		<non-jta-data-source>java:jdbc/DerbyDatabase</non-jta-data-source>
		<properties>
  			<property name="hibernate.hbm2ddl.auto" value="create-drop" />
			<property name="openjpa.jdbc.SynchronizeMappings"
				value="buildSchema(ForeignKeys=true)" />
			<property name="hibernate.hbm2ddl.auto" value="create-drop" />
		</properties>
	</persistence-unit>
</persistence>

The log:

DEBUG - opened session at timestamp: 12030966900
DEBUG - id unsaved-value: 0
DEBUG - transient instance of: foo.bar.testfacade.model.Strecke
DEBUG - saving transient instance
DEBUG - saving [foo.bar.testfacade.model.Strecke#<null>]
DEBUG - processing cascade ACTION_PERSIST for: foo.bar.testfacade.model.Strecke
DEBUG - done processing cascade ACTION_PERSIST for: foo.bar.testfacade.model.Strecke
DEBUG - Wrapped collection in role: foo.bar.testfacade.model.Strecke.punkte
DEBUG - delaying identity-insert due to no transaction in progress
DEBUG - processing cascade ACTION_PERSIST for: foo.bar.testfacade.model.Strecke
DEBUG - cascade ACTION_PERSIST for collection: foo.bar.testfacade.model.Strecke.punkte
DEBUG - cascading to persist: foo.bar.testfacade.model.Punkt
DEBUG - id unsaved-value: 0
DEBUG - transient instance of: foo.bar.testfacade.model.Punkt
DEBUG - saving transient instance
DEBUG - saving [foo.bar.testfacade.model.Punkt#<null>]
DEBUG - delaying identity-insert due to no transaction in progress
DEBUG - cascading to persist: foo.bar.testfacade.model.Punkt
DEBUG - id unsaved-value: 0
DEBUG - transient instance of: foo.bar.testfacade.model.Punkt
DEBUG - saving transient instance
DEBUG - saving [foo.bar.testfacade.model.Punkt#<null>]
DEBUG - delaying identity-insert due to no transaction in progress
DEBUG - cascading to persist: foo.bar.testfacade.model.Punkt
DEBUG - id unsaved-value: 0
DEBUG - transient instance of: foo.bar.testfacade.model.Punkt
DEBUG - saving transient instance
DEBUG - saving [foo.bar.testfacade.model.Punkt#<null>]
DEBUG - delaying identity-insert due to no transaction in progress
DEBUG - cascading to persist: foo.bar.testfacade.model.Punkt
DEBUG - id unsaved-value: 0
DEBUG - transient instance of: foo.bar.testfacade.model.Punkt
DEBUG - saving transient instance
DEBUG - saving [foo.bar.testfacade.model.Punkt#<null>]
DEBUG - delaying identity-insert due to no transaction in progress
DEBUG - cascading to persist: foo.bar.testfacade.model.Punkt
DEBUG - id unsaved-value: 0
DEBUG - transient instance of: foo.bar.testfacade.model.Punkt
DEBUG - saving transient instance
DEBUG - saving [foo.bar.testfacade.model.Punkt#<null>]
DEBUG - delaying identity-insert due to no transaction in progress
DEBUG - done cascade ACTION_PERSIST for collection: foo.bar.testfacade.model.Strecke.punkte
DEBUG - done processing cascade ACTION_PERSIST for: foo.bar.testfacade.model.Strecke
DEBUG - closing session
DEBUG - connection already null in cleanup : no action

Mime
View raw message