geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevan Miller (JIRA)" <>
Subject [jira] [Created] (GERONIMO-5896) ContextNotActiveException running JCDI TCK
Date Mon, 11 Apr 2011 22:48:05 GMT
ContextNotActiveException running JCDI TCK

                 Key: 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:

2011-04-09 23:53:45,964 ERROR [ApplicationContextTest]] Exception sending context initialized
event to listener instance of class org.jboss.jsr299.tck.test\
javax.enterprise.context.ContextNotActiveException: WebBeans context with scope type annotation
@ApplicationScoped does not exist within current thread
        at org.apache.webbeans.container.BeanManagerImpl.getContext(
        at org.apache.webbeans.container.InjectableBeanManager.getContext(
        at org.jboss.jsr299.tck.tests.context.application.TestServletContextListener.contextInitialized(
        at org.apache.catalina.core.StandardContext.listenerStart(
        at org.apache.catalina.core.StandardContext$
        at org.apache.catalina.core.StandardContext$
        at java.util.concurrent.FutureTask$Sync.innerRun(
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$
2011-04-09 23:53:45,965 ERROR [StandardContext] Error listenerStart

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/
is (has become?) somewhat different from OpenWebBeans WebBeansConfigurationListener). Namely,
in contextInitialized(ServletConextEvent) we don't have:

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message