> stack below (you are going through the
> org.jboss.ejb.plugins.BaseLocalContainerInvoker....
hmmmm thinking aloud here, just walked the dog as a way to calm my nerves :) I
remember there was hookup code in the containerinvoker that told the "baselocalCI"
where to find the transaction monitor... and use that to retrieve the values, *it
could very well be* that I nuked this initialization code with the new detached
invoker.
Do me a favor, go in the code that barfs (baselocalCI$homeproxy) and test if there is
a transaction monitor hooked up if not let me know
the local stuff has not been ported to the new invokers.
marcf
> I don't know
>
> marcf
>
> > What I did was
> > I think I just figured out the problem, but I
> don't
> > know how to solve it.
> > When you start user transaction
> > (ctx.getUserTransaction().begin()) it is not
> > associated with the Invocation object (this is in
> > EnterpriseContext.UserTransactionImpl). Therefore,
> > when I call my entity it
> > does not find an existing TX in mi, thus an
> exception
> > is thrown.
> >
> > The runTestCase method from my SLSB and part of
> the
> > stack trace follows
> > after this message.
> >
> > -dain
> >
> >
> >
> >
> > runTestCase method from my EJBTestRunnerBean:
> >
> ----------------------------------------------------
> > private void runTestCase(EJBTestCase testCase)
> throws
> > RemoteTestException {
> > try {
> > System.out.println("BEGIN TRANSACTION
> > CTION runTestCase");
> > ctx.getUserTransaction().begin();
> > try {
> > testCase.runBare();
> > } catch(Throwable e) {
> > throw new RemoteTestException(e);
> > }
> > if(ctx.getUserTransaction().getStatus() ==
> > () == Status.STATUS_ACTIVE) {
> > System.out.println("COMMIT TRANSACTION
> > NSACTION runTestCase");
> > ctx.getUserTransaction().commit();
> > }
> > } catch(Throwable e) {
> > try {
> > System.out.println("ROLLBACK TRANSACTION
> > NSACTION runTestCase");
> > ctx.getUserTransaction().rollback();
> > } catch(SystemException unused) {
> > // eat the exception we are exceptioning out
> > ning out anyway
> > }
> > if(e instanceof RemoteTestException) {
> > throw (RemoteTestException) e;
> > }
> > throw new RemoteTestException(e);
> > }
> > }
> >
> > Part of the stack trace:
> >
> ----------------------------------------------------
> > <error message="Transaction Required, read the
> spec!"
> >
> >
> >
> >
> type="net.sourceforge.junitejb.RemoteTestException">
> > javax.ejb.TransactionRequiredLocalException:
> > Transaction Required, read the
> > spec!
> > at
> > at
> >
> org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.
>
> > nvokeHome
> > (BaseLocalContainerInvoker.java:290)
> > at
> > at
> >
> org.jboss.ejb.plugins.local.BaseLocalContainerInvoker$
>
> > omeProxy.invoke
> > (BaseLocalContainerInvoker.java:428)
> > at $Proxy11.findAll(Unknown Source)
> > at
> > at
> >
> org.jboss.test.cmp2.relationship.oneToManyUnidirection
>
> > l.ABTest.
> > deleteAllAsAndBs(ABTest.java:304)
> > at
> > at
> >
> org.jboss.test.cmp2.relationship.oneToManyUnidirection
>
> > l.ABTest.
> > setUpEJB(ABTest.java:292)
> > at
> >
> net.sourceforge.junitejb.EJBTestRunnerBean.setUpEJB(EJ
>
> > TestRunnerBean.java
> > :72)
> > ...
______________________________________________________________________
View this jboss-dev thread in the online forums:
http://jboss.org/forums/thread.jsp?forum=66&thread=6276
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development