geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <>
Subject Re: OWB is always enabled even no web beans in the web application
Date Thu, 11 Nov 2010 17:06:02 GMT
There's definitely a bug.... possibly several.

I'd like to know exactly what isn't getting initialized that causes this error.  On the other
hand if there's no beans.xml we really shouldn't be installing any webbeans functionality.
 On the third hand :-)  we don't really know how much of an ee application is supposed to
be "covered" by a single owb context so I'm unsure of some details about how to decide when
to install owb stuff.  I'm hoping to catch pete muir to ask him about this...

david jencks

On Nov 10, 2010, at 11:57 PM, Ivan wrote:

> Hi,
>     I found some jsf and ejb cases failed with the exception below, and apparently, no
web beans is used in those application, suppose that all the OWB related codes should not
be executed.  After checking the integration codes, I found something like in the OpenWebBeansWebInitializer
>     --->
>     servletContext.setAttribute(OpenWebBeansConfiguration.PROPERTY_OWB_APPLICATION, "true");
>     <---
>     Seems that OWB uses this to identify whether the current application is an OWB application.
 But the set action is always executed even no web bean exists in the application. So is there
a bug here ?
> thanks.
>     2010-11-11 14:35:46,515 ERROR [ErrorPageWriter] An exception occurred
> javax.faces.FacesException: javax.enterprise.context.ContextNotActiveException: WebBeans
context with scope type annotation @RequestScoped does not exist within current thread
>     at org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.wrap(
>     at org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.handle(
>     at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(
>     at org.apache.myfaces.lifecycle.LifecycleImpl.execute(
>     at javax.faces.webapp.FacesServlet.service(
>     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>     at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>     at org.apache.catalina.core.StandardWrapperValve.invoke(
>     at org.apache.catalina.core.StandardContextValve.invoke(
>     at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(
>     at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(
>     at org.apache.geronimo.tomcat.valve.ProtectedTargetValve.invoke(
>     at org.apache.catalina.core.StandardHostValve.invoke(
>     at org.apache.catalina.valves.ErrorReportValve.invoke(
>     at org.apache.catalina.core.StandardEngineValve.invoke(
>     at org.apache.catalina.connector.CoyoteAdapter.service(
>     at org.apache.coyote.http11.Http11Processor.process(
>     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
>     at$
>     at org.apache.geronimo.pool.ThreadPool$
>     at org.apache.geronimo.pool.ThreadPool$
>     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
>     at java.util.concurrent.ThreadPoolExecutor$
>     at
> Caused by: javax.enterprise.context.ContextNotActiveException: WebBeans context with
scope type annotation @RequestScoped does not exist within current thread
>     at org.apache.webbeans.container.BeanManagerImpl.getContext(
>     at org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.getContextualInstance(
>     at org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.invoke(
>     at org.apache.webbeans.conversation.ConversationImpl_$$_javassist_3.isTransient(ConversationImpl_$$
>     at org.apache.webbeans.jsf.WebBeansPhaseListener.beforePhase(
>     at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(
>     at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(
>     ... 21 more
> -- 
> Ivan

View raw message