tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacek Laskowski" <ja...@laskowski.net.pl>
Subject Re: OpenEJB - Missing required persistence.xml
Date Fri, 15 Feb 2008 20:32:32 GMT
On Fri, Feb 15, 2008 at 9:36 AM,  <Karsten.Ohme@t-systems.com> wrote:

>  <?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>

Remove provider so OpenJPA kicks in. It actually did, but provider
might confuse it or openejb. Don't really know. Add <jta-data-source>
with the same value as <non-jta-data-source>. Remove transaction-type
element.

What's in foo.bar.testfacade.TestFacadeImplOpenEJBTest.testPersistStrecke(TestFacadeImplOpenEJBTest.java:103)?

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Mime
View raw message