Hi Romain, I think I might have encountered this working with geronimo + jcdi tck. If it's the same problem, the test worked OK run by itself but usually failed when run in a group. When I investigated the harness appeared to be arbitrarily creating more http sessions when running in a group than when running just the one test, in particular it wiped out the first session from the first request before the second, causing the scoped object to get lost. I couldn't figure out why the session creation behavior was different in the two situations.
hope you have better luck.... david jencks On Nov 2, 2011, at 6:14 PM, Romain Manni-Bucau wrote: > Hi, > > it seems this tck test can fail depending of the build: > > *Failed tests: > testSessionContextSharedBetweenServletRequestsInSameHttpSession(org.jboss.jsr299.tck.tests.context.session.SessionContextTest): > 500 Internal Server Error for > http://localhost:33720/org.jboss.jsr299.tck.tests.context.session.SessionContextTest/IntrospectSession* > > > any idea? it just test that when you call twice a servlet you get the > same session scoped cdi bean. > > the error is > * > * > * > javax.enterprise.context.ContextNotActiveException: WebBeans context with > scope type annotation @SessionScoped 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) > * > > - Romain
