myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerhard Petracek <gerhard.petra...@gmail.com>
Subject Re: Error booting CODI on WebSphere 8 (OWB) - WebBeans context with scope type annotation @ApplicationScoped does not exist within current thread
Date Tue, 05 Jul 2011 11:50:47 GMT
fyi: i talked with a member of the websphere team and it looks like it is a
known issue of the owb integration.
the next fixpack should fix it. however, if you have time for testing it,
you can try what i wrote in my previous answer.

regards,
gerhard

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2011/7/5 Gerhard Petracek <gerhard.petracek@gmail.com>

> short addition:
>
> we could do this specific part lazily. however, we would have to test if
> there are additional initialization tasks which are affected.
> it's possible to deactivate the navigation handler with the deactivation
> concept described in the wiki.
> as an alternative (just for testing), you could remove the
> navigation-handler from the faces-config.xml in the jar file of codi.
>
> regards,
> gerhard
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
>
> 2011/7/5 Gerhard Petracek <gerhard.petracek@gmail.com>
>
>> hi hampus,
>>
>> it looks like they bootstrap jsf before cdi which doesn't make sense.
>> we have to talk with the websphere team.
>>
>> regards,
>> gerhard
>>
>> http://www.irian.at
>>
>> Your JSF powerhouse -
>> JSF Consulting, Development and
>> Courses in English and German
>>
>> Professional Support for Apache MyFaces
>>
>>
>>
>> 2011/7/5 Hampus Wingren <hampus.wingren@bredband.net>
>>
>>> I´m having trouble bootstrapping the CODI environment. I´ve deployed the
>>> 0.9.5 version of CODI on WebSphere 8 running open webbeans but as the JSF
>>> runtime initializes I get this stack trace:
>>>
>>> [2011-07-05 09:50:29:809 CEST] 0000000c ClassUtils    E
>>>                                java.lang.reflect.**
>>> InvocationTargetException
>>>        at sun.reflect.**NativeConstructorAccessorImpl.**newInstance0(Native
>>> Method)
>>>        at sun.reflect.**NativeConstructorAccessorImpl.**newInstance(**
>>> NativeConstructorAccessorImpl.**java:56)
>>>        at sun.reflect.**DelegatingConstructorAccessorI**mpl.newInstance(
>>> **DelegatingConstructorAccessorI**mpl.java:39)
>>>        at java.lang.reflect.Constructor.**newInstance(Constructor.java:*
>>> *527)
>>>        at org.apache.myfaces.shared_**impl.util.ClassUtils.**
>>> buildApplicationObject(**ClassUtils.java:539)
>>>        at org.apache.myfaces.config.**FacesConfigurator.**
>>> configureApplication(**FacesConfigurator.java:694)
>>>        at org.apache.myfaces.config.**FacesConfigurator.configure(**
>>> FacesConfigurator.java:459)
>>>        at org.apache.myfaces.webapp.**AbstractFacesInitializer.**
>>> buildConfiguration(**AbstractFacesInitializer.java:**313)
>>>        at org.apache.myfaces.webapp.**Jsp21FacesInitializer.**
>>> initContainerIntegration(**Jsp21FacesInitializer.java:73)
>>>        at org.apache.myfaces.webapp.**AbstractFacesInitializer.**
>>> initFaces(**AbstractFacesInitializer.java:**136)
>>>        at org.apache.myfaces.webapp.**StartupServletContextListener.**
>>> contextInitialized(**StartupServletContextListener.**java:111)
>>>        at com.ibm.ws.webcontainer.**webapp.WebApp.**
>>> notifyServletContextCreated(**WebApp.java:1649)
>>>        at com.ibm.ws.webcontainer.**webapp.WebAppImpl.initialize(**
>>> WebAppImpl.java:410)
>>>        at com.ibm.ws.webcontainer.**webapp.WebGroupImpl.**
>>> addWebApplication(**WebGroupImpl.java:88)
>>>        at com.ibm.ws.webcontainer.**VirtualHostImpl.**addWebApplication(
>>> **VirtualHostImpl.java:169)
>>>        at com.ibm.ws.webcontainer.**WSWebContainer.addWebApp(**
>>> WSWebContainer.java:748)
>>>        at com.ibm.ws.webcontainer.**WSWebContainer.**addWebApplication(*
>>> *WSWebContainer.java:633)
>>>        at com.ibm.ws.webcontainer.**component.WebContainerImpl.**
>>> install(WebContainerImpl.java:**422)
>>>        at com.ibm.ws.webcontainer.**component.WebContainerImpl.**
>>> start(WebContainerImpl.java:**714)
>>>        at com.ibm.ws.runtime.component.**ApplicationMgrImpl.start(**
>>> ApplicationMgrImpl.java:1143)
>>>        at com.ibm.ws.runtime.component.**DeployedApplicationImpl.**
>>> fireDeployedObjectStart(**DeployedApplicationImpl.java:**1369)
>>>        at com.ibm.ws.runtime.component.**DeployedModuleImpl.start(**
>>> DeployedModuleImpl.java:638)
>>>        at com.ibm.ws.runtime.component.**DeployedApplicationImpl.start(*
>>> *DeployedApplicationImpl.java:**967)
>>>        at com.ibm.ws.runtime.component.**ApplicationMgrImpl.**
>>> startApplication(**ApplicationMgrImpl.java:731)
>>>        at com.ibm.ws.runtime.component.**ApplicationMgrImpl.start(**
>>> ApplicationMgrImpl.java:2136)
>>>        at com.ibm.ws.runtime.component.**CompositionUnitMgrImpl.start(**
>>> CompositionUnitMgrImpl.java:**445)
>>>        at com.ibm.ws.runtime.component.**CompositionUnitImpl.start(**
>>> CompositionUnitImpl.java:123)
>>>        at com.ibm.ws.runtime.component.**CompositionUnitMgrImpl.start(**
>>> CompositionUnitMgrImpl.java:**388)
>>>        at com.ibm.ws.runtime.component.**CompositionUnitMgrImpl.access$*
>>> *500(CompositionUnitMgrImpl.**java:116)
>>>        at com.ibm.ws.runtime.component.**CompositionUnitMgrImpl$**
>>> CUInitializer.run(**CompositionUnitMgrImpl.java:**994)
>>>        at com.ibm.wsspi.runtime.**component.WsComponentImpl$_**
>>> AsynchInitializer.run(**WsComponentImpl.java:349)
>>>        at com.ibm.ws.util.ThreadPool$**Worker.run(ThreadPool.java:**
>>> 1648)
>>> Caused by: 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:321)
>>>        at org.apache.webbeans.intercept.**NormalScopedBeanInterceptorHan
>>> **dler.getContextualInstance(**NormalScopedBeanInterceptorHan**
>>> dler.java:124)
>>>        at org.apache.webbeans.intercept.**NormalScopedBeanInterceptorHan
>>> **dler.invoke(**NormalScopedBeanInterceptorHan**dler.java:95)
>>>        at org.apache.myfaces.extensions.**cdi.jsf.api.config.**
>>> JsfModuleConfig_$$_javassist_**6.**isUseViewConfigsAsNavigationCa**
>>> sesEnabled(JsfModuleConfig_$$_**javassist_6.java)
>>>        at org.apache.myfaces.extensions.**cdi.jsf2.impl.navigation.**
>>> CodiNavigationHandler.**isAddViewConfigsAsNavigationCa**seActivated(**
>>> CodiNavigationHandler.java:**146)
>>>        at org.apache.myfaces.extensions.**cdi.jsf2.impl.navigation.**
>>> CodiNavigationHandler.<init>(**CodiNavigationHandler.java:57)
>>>        ... 32 more
>>>
>>>
>>> Anyone got any suggestions?
>>>
>>> Best regards,
>>> Hampus
>>>
>>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message