Hum ok, I'll try to totally disable aries-tx. In my mind, it asked me that it was required, may be because aries-tx bundle was started. I'll investigate. Thank you!
Tom Leung <[email protected]> a écrit : >Current EclipseLink implementation doesn't support JTA. That means you need >to handle transaction yourself. > >Tom > > > >Charlie Mordant <[email protected]> 於 2013年3月26日 21:54 寫道: > >> Hi, >> >> I'm not able to persist data with aries jpa, although id is added during >> transaction, nothing in the db >> >> I'm using Java 7, karaf 3.0.0.RC1, eclipselink and derby and see nothing >> strange in the log (it creates sequence while persisting, but does not seem >> to persist anything as there is nothing in the db, and I'm not able to >> retrieve data after commiting tx). >> >> My blueprint file looks like the one in the aries jpa tuto. >> >> Flushing data tells me that there no active transaction (even if I've the >> <tx:...> blueprint). >> >> >> Anyone experienced the same issue? Do you want complete a test case? >> >> Here's my feature: >> >> <feature name='eclipselink' version='${eclipselink.version}'> >> <bundle >> start-level="30">mvn:org.apache.derby/derby/${derby.version}</bundle> >> <feature >> version='${org.apache.servicemix.bundles.serp.version}'>org.apache.servicemix.bundles.serp</feature> >> <feature >> version='${karaf.feature.transaction.version}'>transaction</feature> >> <feature version='${karaf.feature.jndi.version}'>jndi</feature> >> <feature version='${karaf.feature.jpa.version}'>jpa</feature> >> <feature >> version='${org.apache.servicemix.bundles.commons-collections.version}'>org.apache.servicemix.bundles.commons-collections</feature> >> <bundle >> start-level="30">mvn:commons-lang/commons-lang/${commons-lang.version}</bundle> >> <feature >> version='${org.apache.servicemix.bundles.commons-dbcp.version}'>org.apache.servicemix.bundles.commons-dbcp</feature> >> <!-- <bundle >> start-level="30">mvn:org.apache.geronimo.specs/geronimo-jpa_2.0_spec/${org.apache.geronimo.specs.geronimo-jpa_2.0_spec.version}</bundle> >> --><bundle >> start-level="30">mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/${geronimo-jms_1.1_spec.version}</bundle> >> <bundle >> start-level="30">mvn:org.eclipse.persistence/javax.persistence/${javax.persistence.version}</bundle> >> >> <bundle >> start-level="30">mvn:org.eclipse.persistence/org.eclipse.persistence.asm/${org.eclipse.persistence.asm.version}</bundle> >> <bundle >> start-level="30">mvn:org.eclipse.persistence/org.eclipse.persistence.antlr/${org.eclipse.persistence.antlr.version}</bundle> >> <bundle >> start-level="30">mvn:org.eclipse.persistence/org.eclipse.persistence.core/${eclipselink.version}</bundle> >> <bundle >> start-level="30">mvn:org.eclipse.persistence/org.eclipse.persistence.jpa/${eclipselink.version}</bundle> >> <bundle >> start-level="30">mvn:org.eclipse.persistence/org.eclipse.persistence.jpa.jpql/${eclipselink.version}</bundle> >> <bundle >> start-level="30">mvn:net.osgiliath.framework/helpers.org.eclipse.eclipselink.persistence.provider.exporter/${osgiliath.helpers.version}</bundle> >> </feature> >> >> >> >> >> >> -- >> Regards, >> >> Charlie Mordant
