Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 16134 invoked from network); 11 Apr 2011 22:48:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Apr 2011 22:48:44 -0000 Received: (qmail 49569 invoked by uid 500); 11 Apr 2011 22:48:44 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 49503 invoked by uid 500); 11 Apr 2011 22:48:44 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 49496 invoked by uid 99); 11 Apr 2011 22:48:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Apr 2011 22:48:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Apr 2011 22:48:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AA9FF9D3A5 for ; Mon, 11 Apr 2011 22:48:05 +0000 (UTC) Date: Mon, 11 Apr 2011 22:48:05 +0000 (UTC) From: "Kevan Miller (JIRA)" To: dev@geronimo.apache.org Message-ID: <1831806360.50992.1302562085680.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (GERONIMO-5896) ContextNotActiveException running JCDI TCK MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 ContextNotActiveException running JCDI TCK ------------------------------------------ Key: GERONIMO-5896 URL: https://issues.apache.org/jira/browse/GERONIMO-5896 Project: Geronimo Issue Type: Bug Security Level: public (Regular issues) Components: OpenWebBeans Reporter: Kevan Miller Fix For: 3.0 Running the JCDI tck can result in some exceptions like the following: {code} 2011-04-09 23:53:45,964 ERROR [ApplicationContextTest]] Exception sending context initialized event to listener instance of class org.jboss.jsr299.tck.test\ s.context.application.TestServletContextListener javax.enterprise.context.ContextNotActiveException: WebBeans context with scope type annotation @ApplicationScoped does not exist within current thread at org.apache.webbeans.container.BeanManagerImpl.getContext(BeanManagerImpl.java:341) at org.apache.webbeans.container.InjectableBeanManager.getContext(InjectableBeanManager.java:115) at org.jboss.jsr299.tck.tests.context.application.TestServletContextListener.contextInitialized(TestServletContextListener.java:38) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4521) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5004) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:4999) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680) 2011-04-09 23:53:45,965 ERROR [StandardContext] Error listenerStart {code} This is because the OpenWebBeans application initialization is not being driven. Geronimo's WebBeansConfigurationListener (plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/WebBeansConfigurationListener.java) is (has become?) somewhat different from OpenWebBeans WebBeansConfigurationListener). Namely, in contextInitialized(ServletConextEvent) we don't have: {code} this.lifeCycle.startApplication(event); {code} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira