Re: OpenEJB - Missing required persistence.xml

2008-02-18 Thread Karsten Ohme
David Blevins schrieb: On Feb 16, 2008, at 1:38 PM, David Blevins wrote: 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 th

Re: OpenEJB - Missing required persistence.xml

2008-02-18 Thread David Blevins
On Feb 18, 2008, at 11:26 AM, David Blevins wrote: - Added a way for Hibernate to get the transaction manager from openejb. There might be another way of doing this other than the persistence.xml. I grabbed the hibernate source and am looking for a better way. Sumbitted a patch to hibe

Re: OpenEJB - Missing required persistence.xml

2008-02-18 Thread David Blevins
On Feb 16, 2008, at 1:38 PM, David Blevins wrote: 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

Re: OpenEJB - Missing required persistence.xml

2008-02-18 Thread Karan Malhi
e 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 also in persistence.xml ? > > On Feb 18, 2008 4:57 AM, <[

Re: OpenEJB - Missing required persistence.xml

2008-02-18 Thread Michael Dick
to:[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 also in persistence.xml ? > > On Feb 18, 2008 4:57 AM, <[EMAIL PROTECTED]> wrote: > &g

Re: OpenEJB - Missing required persistence.xml

2008-02-18 Thread Karan Malhi
: 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:4

Re: OpenEJB - Missing required persistence.xml

2008-02-16 Thread David Blevins
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 persisten

Re: OpenEJB - Missing required persistence.xml

2008-02-16 Thread Karsten Ohme
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

Re: OpenEJB - Missing required persistence.xml

2008-02-16 Thread Karsten Ohme
>On Fri, Feb 15, 2008 at 9:36 AM, <[EMAIL PROTECTED]> wrote: > >> >> > >> 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/n

Re: OpenEJB - Missing required persistence.xml

2008-02-15 Thread David Blevins
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 no

Re: OpenEJB - Missing required persistence.xml

2008-02-15 Thread David Blevins
On Feb 15, 2008, at 9:36 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED] > wrote: 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.xm

Re: OpenEJB - Missing required persistence.xml

2008-02-15 Thread Jacek Laskowski
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

Re: OpenEJB - Missing required persistence.xml

2008-02-15 Thread David Blevins
On Feb 15, 2008, at 4:03 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED] > wrote: Not working, the tables are not created. Now I get this: Auto-commit can not be set while enrolled in a transaction I'm very interested in how you got this error so I can fix any related checks we have. In 3.0

Re: OpenEJB - Missing required persistence.xml

2008-02-15 Thread Jacek Laskowski
On Fri, Feb 15, 2008 at 9:36 AM, <[EMAIL PROTECTED]> wrote: > > > 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/persist

Re: OpenEJB - Missing required persistence.xml

2008-02-15 Thread Karsten.Ohme
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 erro

Re: OpenEJB - Missing required persistence.xml

2008-02-15 Thread Karsten.Ohme
Not working, the tables are not created. Now I get this: Auto-commit can not be set while enrolled in a transaction javax.ejb.EJBException: The bean encountered a non-application exception.; nested exception is: org.apache.openjpa.persistence.PersistenceException: Auto-commit can not

Re: OpenEJB - Missing required persistence.xml

2008-02-14 Thread David Blevins
On Feb 14, 2008, at 6:29 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED] > wrote: Thanks a lot again, I have now made one errors progress: Now the problem seems to be that the entities in the database are not automatically created. Is this possible or do I have to do it on my own? Thanks, K

Re: OpenEJB - Missing required persistence.xml

2008-02-14 Thread Jacek Laskowski
On Thu, Feb 14, 2008 at 6:29 AM, <[EMAIL PROTECTED]> wrote: > Now the problem seems to be that the entities in the database are not > automatically created. Is this possible or do I have to do it on my own? What do you mean by "not automatically created"? If you execute EntityManager.persist()

RE: OpenEJB - Missing required persistence.xml

2008-02-14 Thread Karsten.Ohme
Thanks a lot again, I have now made one errors progress: Now the problem seems to be that the entities in the database are not automatically created. Is this possible or do I have to do it on my own? Thanks, Karsten javax.ejb.EJBException: The bean encountered a non-application exception.; nes

Re: OpenEJB - Missing required persistence.xml

2008-02-13 Thread David Blevins
On Feb 13, 2008, at 6:26 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED] > wrote: I get: Apache OpenEJB 3.0-beta-2build: 20080131-03:38 http://openejb.apache.org/ - openejb.home = C:\workspace\TestFacade\target - openejb.base = C:\workspace\TestFacade\target - Configuring Service(id=Default S

Re: OpenEJB - Missing required persistence.xml

2008-02-13 Thread Jacek Laskowski
On Feb 13, 2008 6:26 AM, <[EMAIL PROTECTED]> wrote: > - Unexpected exception from beforeCompletion; transaction will roll back > > org.apache.openjpa.persistence.PersistenceException: null > at > org.apache.openjpa.jdbc.kernel.AbstractJDBCSeq.getConnection(AbstractJDBCSeq.java:162) >

RE: OpenEJB - Missing required persistence.xml

2008-02-13 Thread Karsten.Ohme
jdbc.kernel.AbstractJDBCSeq.getConnection(AbstractJDBCSeq.java:158) ... 55 more For some strange reason when I was editing and using the openejb.xml the error was different; the tables in the database were not created. Thanks, Karsten -----Ursprüngliche Nachricht- Von: David Blevin

Re: OpenEJB - Missing required persistence.xml

2008-02-12 Thread David Blevins
It seems like what's happening is eclipse isn't configured to copy in the src/*/resources files into the related build output directories. To see if I could replicate the issue, I grabbed our injection-of- entitymanager example from the examples zip and generated an eclipse project for it us

Re: OpenEJB - Missing required persistence.xml

2008-02-11 Thread Jacek Laskowski
On Feb 11, 2008 10:34 AM, <[EMAIL PROTECTED]> wrote: > - FAIL ... PatternManagementDaoImpl:Missing required persistence.xml > for @PersistenceContext ref "em" to unit "pattern-managementPu" > > What's wrong? It is there. And where should it be placed? In META-INF > like usually? It seems that