Return-Path: X-Original-To: apmail-tomee-commits-archive@www.apache.org Delivered-To: apmail-tomee-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ABE11101F0 for ; Sat, 10 Aug 2013 07:37:50 +0000 (UTC) Received: (qmail 84734 invoked by uid 500); 10 Aug 2013 07:37:50 -0000 Delivered-To: apmail-tomee-commits-archive@tomee.apache.org Received: (qmail 84669 invoked by uid 500); 10 Aug 2013 07:37:49 -0000 Mailing-List: contact commits-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tomee.apache.org Delivered-To: mailing list commits@tomee.apache.org Received: (qmail 84662 invoked by uid 500); 10 Aug 2013 07:37:48 -0000 Delivered-To: apmail-openejb-commits@openejb.apache.org Received: (qmail 84656 invoked by uid 99); 10 Aug 2013 07:37:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Aug 2013 07:37:48 +0000 Date: Sat, 10 Aug 2013 07:37:47 +0000 (UTC) From: "Luca Masini (JIRA)" To: commits@openejb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TOMEE-1013) ContextNotActiveException using TomEE embedded into Arquillian MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TOMEE-1013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13735784#comment-13735784 ] Luca Masini commented on TOMEE-1013: ------------------------------------ Forced all snapshots update and ignored checksum errors, but the error is still there. Tell me what I can check. Thank you. > ContextNotActiveException using TomEE embedded into Arquillian > -------------------------------------------------------------- > > Key: TOMEE-1013 > URL: https://issues.apache.org/jira/browse/TOMEE-1013 > Project: TomEE > Issue Type: Bug > Components: TomEE Arquillian Adapters > Affects Versions: 1.5.2 > Environment: Mac OS, Java 1.7.0_10 > Reporter: Luca Masini > Assignee: Romain Manni-Bucau > Fix For: 1.6.0 > > Attachments: testcase-cdi-stateful.zip, testcase-cdi-stateful.zip > > > You cannot use a transactional event listener from a Stateful EJB to a business method of the same bean: > @Stateful > public class MySFEJB { > .... > public void sender() { > transactionListener.fire(new Payload()); > } > public void receiver(@Observes(during = TransactionPhase.AFTER_SUCCESS) Payload payload) { > // code omitted > } > into the log you can read: > INFO: Cannot send event to bean in non-active context : [ExtendedEntityManagerService, Name:null, WebBeans Type:ENTERPRISE, API Types:[java.io.Serializable,java.lang.Object,net.lucamasini.synch.mobile.boundary.ExtendedEntityManagerService], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]] > then inside the container this Exception is raised (BeanManagerImpl.java:351): > throw new ContextNotActiveException("WebBeans context with scope type annotation @" > + scopeType.getSimpleName() + " does not exist within current thread"); > Everything works fine using the same code inside TomEE as a normal container and not for Integration Tests. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira