tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Dick" <michael.d.d...@gmail.com>
Subject Re: OpenEJB - Missing required persistence.xml
Date Mon, 18 Feb 2008 16:35:01 GMT
Hi Karsten,

You definitely should be able to specify both jta-data-source and
non-jta-data-source in persistence.xml. Are you using any plugins for
Eclipse which parse persistence.xml? I'm using Eclipse 3.3.1.1 with Dali and
it's not complaining for me.


On Feb 18, 2008 9:48 AM, <Karsten.Ohme@t-systems.com> 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:karan.malhi@gmail.com]
> 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, <Karsten.Ohme@t-systems.com> 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:david.blevins@visi.com]
> > 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 <david.blevins@...> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message