Return-Path: Delivered-To: apmail-openejb-users-archive@www.apache.org Received: (qmail 96502 invoked from network); 2 Nov 2009 20:34:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Nov 2009 20:34:09 -0000 Received: (qmail 54155 invoked by uid 500); 2 Nov 2009 20:34:09 -0000 Delivered-To: apmail-openejb-users-archive@openejb.apache.org Received: (qmail 54117 invoked by uid 500); 2 Nov 2009 20:34:08 -0000 Mailing-List: contact users-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openejb.apache.org Delivered-To: mailing list users@openejb.apache.org Received: (qmail 54107 invoked by uid 99); 2 Nov 2009 20:34:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Nov 2009 20:34:08 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Nov 2009 20:34:06 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1N53az-000277-Py for users@openejb.apache.org; Mon, 02 Nov 2009 12:33:45 -0800 Message-ID: <26157819.post@talk.nabble.com> Date: Mon, 2 Nov 2009 12:33:45 -0800 (PST) From: amanica To: users@openejb.apache.org Subject: Re: Exceptions when invoking EJBs from OpenEJB ran as embedded container In-Reply-To: <23977489.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: amanic@gmail.com References: <23977489.post@talk.nabble.com> recursion wrote: > > Exception in thread "pool-1-thread-12" java.lang.IllegalStateException: No > tx on thread > at > org.apache.geronimo.transaction.manager.TransactionManagerImpl.getActiveTransactionImpl(TransactionManagerImpl.java:194) > at > org.apache.geronimo.transaction.manager.TransactionManagerImpl.putResource(TransactionManagerImpl.java:218) > at > org.apache.openejb.core.transaction.JtaTransactionPolicy.putResource(JtaTransactionPolicy.java:116) > at > org.apache.openejb.core.transaction.EjbTransactionUtil.createTransactionPolicy(EjbTransactionUtil.java:59) > at > org.apache.openejb.core.stateful.StatefulContainer.createEJBObject(StatefulContainer.java:295) > at > org.apache.openejb.core.stateful.StatefulContainer.invoke(StatefulContainer.java:263) > at > org.apache.openejb.core.ivm.EjbHomeProxyHandler.create(EjbHomeProxyHandler.java:270) > at > org.apache.openejb.core.ivm.EjbHomeProxyHandler._invoke(EjbHomeProxyHandler.java:161) > at > org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:286) > at $Proxy11.create(Unknown Source) > at > org.apache.openejb.core.ivm.naming.BusinessLocalReference.getObject(BusinessLocalReference.java:33) > at > org.apache.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:150) > at > org.apache.openejb.core.ivm.naming.ContextWrapper.lookup(ContextWrapper.java:115) > at javax.naming.InitialContext.lookup(Unknown Source) > > Any ideas ? > I got a similar excepion today, and figured out for the second time that it was because of this: ERROR - JAVA AGENT NOT INSTALLED. The JPA Persistence Provider requested installation of a ClassFileTransformer which requires a JavaAgent. See http://openejb.apache.org/3.0/javaagent.html and from the mentioned page it is clear that you have to add something like the following to your runtime VM args: -javaagent:openejb-javaagent-3.0-beta-2.jar -- View this message in context: http://old.nabble.com/Exceptions-when-invoking-EJBs-from-OpenEJB-ran-as-embedded-container-tp23977489p26157819.html Sent from the OpenEJB User mailing list archive at Nabble.com.