You should be able to . I have not tried it with eclipse, but typically persistence frameworks use the non-jta one to alter your database schema for you (Synchronize mappings). The problem here is that you have specified a non-jta datasource, but not a jta datasource. I think it is OpenJpa with is trying to treat it as "managed" (because it could not find a <jta-data-source> and then setting auto-commit to true on a connection obtained from a "managed" resource (OpenJpa SchemaTool.run() method). See if you can update your eclipse to the latest version through UpdateManager and try adding <jta-data-source> also.
On Feb 18, 2008 10:48 AM, <[EMAIL PROTECTED]> wrote: > It is not possible to specify both <jta-data-source> and > <non-jta-data-source>. At least Eclipse complains. <jta-data-source> only is > not possible because of the exception thrown otherwise with Hibernate. > > Regards, > Karsten > > -----Ursprüngliche Nachricht----- > Von: Karan Malhi [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 18. Februar 2008 15:02 > An: users@openejb.apache.org > Betreff: Re: OpenEJB - Missing required persistence.xml > > Did you try by adding a <jta-data-source> also in persistence.xml ? > > On Feb 18, 2008 4:57 AM, <[EMAIL PROTECTED]> wrote: > > > I have attached the sample project on > > http://issues.apache.org/jira/browse/OPENEJB-755. > > > > Thanks, > > Karsten > > > > -----Ursprüngliche Nachricht----- > > Von: David Blevins [mailto:[EMAIL PROTECTED] > > Gesendet: Samstag, 16. Februar 2008 22:38 > > An: users@openejb.apache.org > > Betreff: Re: OpenEJB - Missing required persistence.xml > > > > > > On Feb 16, 2008, at 1:22 PM, Karsten Ohme wrote: > > > > > > > >> On Feb 15, 2008, at 2:46 PM, Jacek Laskowski wrote: > > >> > On Feb 15, 2008 2:37 PM, David Blevins <[EMAIL PROTECTED]> wrote: > > >> > > > >> >> The "Auto-commit" error usually means is that either a) only the > > >> jta- > > >> >> data-source is configured in your persistence.xml so OpenJPA > > >> >> incorrectly attempts to use it also as an non-jta-data-source, > > >> or b) > > >> >> the non-jta-data-source specified is actually a jta-data-source > > >> (i.e. > > >> >> a Resource where the 'JtaManaged' property isn't set to 'false') > > >> > > > >> > Hi Dave, > > >> > > > >> > He had non-jta-data-source only so I think his scenario's b). > > >> ... [show rest of quote] > > >> As I described both a) and b) should be impossible in 3.0-beta-2, so > > >> I'm still very baffled. Has to be something else. > > > > > > I will try again to send the source code as zipped attachment. The > > > last times it was always impossible, because it was considered as > > > spam. I will have access to the source on Monday again. > > > > Great. You can attach it here: > > http://issues.apache.org/jira/browse/OPENEJB-755 > > > > Sometimes the list refuses to accept attachments. > > > > -David > > > > > > > -- > Karan Singh Malhi > -- Karan Singh Malhi