Maven and OpenEJB unit testing

2008-12-08 Thread Marcin Kwapisz
Hi. My ejb module (PersonAccountModule) depends on ejb facade components in different project (EJBFacades). So I had to configure classpath as follows: p.put("openejb.deployments.classpath.include", ".*/(PersonAccountModule|EJBFacades)/target/classes.*"); ejb-jar.xml in PersonAccountModule is

Re: Maven and OpenEJB unit testing

2008-12-08 Thread Mohammad Nour El-Din
Hi Marcin... Did you define this jar file as a dependency in any other module in its POM.XML file ? On Mon, Dec 8, 2008 at 10:02 AM, Marcin Kwapisz <[EMAIL PROTECTED]> wrote: > Hi. > > My ejb module (PersonAccountModule) depends on ejb facade components in > different project (EJBFacades). So

Stateful removal

2008-12-08 Thread Jean-Sébastien Scrève
Hi, My configuration is the following : Open 3.1, hibernate 3.2.6. I have a question regarding stateful removal: I retrieve an entity with a stateful object. I navigate through relations and everything works fine. I then call an @Remove method on the stateful. I kept a reference on my entity so

Data source not found when calling EntityManager.persist() inside EJB

2008-12-08 Thread Aflyctus N.E.B.
I'm trying to embed OpenEJB 3.1 in my EJB3 application so that I can unit test my application. If it matters, I'm using NetBeans 6.5. I followed the following instructions to setup Toplink Essentials as my OpenEJB persistence provider: http://qbeukes.blogspot.com/2008/08/toplink-as-your-openejb-

RE: Maven and OpenEJB unit testing

2008-12-08 Thread Marcin Kwapisz
> Did you define this jar file as a dependency in any other module in > its POM.XML file ? [Marcin Kwapisz] PersonAccountModule directly depends on EJBFacades. There are not any transitive dependencies between these two modules. I have made some investigations. EJBFacades-1.0-SNAPSHOT.jar come

Re: Maven and OpenEJB unit testing

2008-12-08 Thread sanga lawalata
I have this error code while try to persist this entity bean. it seems that It can get the sequence number from oracle dual sequence. Below I put also the ddl. Any advice ? WARN - Unexpected exception from beforeCompletion; transaction will roll back org.apache.openjpa.persistence.PersistenceE

Unit Testing with openEjb

2008-12-08 Thread sanga lawalata
I have this error code while try to persist this entity bean. it seems that It can get the sequence number from oracle dual sequence. Below I put also the ddl. Any advice ? WARN - Unexpected exception from beforeCompletion; transaction will roll back org.apache.openjpa.persistence.PersistenceE

Re: Stateful removal

2008-12-08 Thread Dain Sundstrom
I checked the code and we don't close the EntityManager when the stateful bean is removed. Do you know if this is a spec defined behavior or something that JBoss just does? Also, if this code is called from within a JTA transaction, I wouldn't expect the EntityManager to be closed until th

Re: Maven and OpenEJB unit testing

2008-12-08 Thread Mohammad Nour El-Din
Hi Sanga... Can you please send this maessage in a separate thread/new mail on the same list, becuase the original problem of this thread is not related to your problem. On Mon, Dec 8, 2008 at 9:16 PM, sanga lawalata <[EMAIL PROTECTED]> wrote: > I have this error code while try to persist this

Re: Maven and OpenEJB unit testing

2008-12-08 Thread Mohammad Nour El-Din
Thanks Sanga, I didn't notice the mail you sent later. On Tue, Dec 9, 2008 at 12:11 AM, Mohammad Nour El-Din <[EMAIL PROTECTED]> wrote: > Hi Sanga... > > Can you please send this maessage in a separate thread/new mail on > the same list, becuase the original problem of this thread is not > relate