Hi, I got a fix from IBM which they wanted me to try out. I´ll suppose that they will give it to you if you ask them. The one I got is not an official fix.
regards, Hampus On Wed, 27 Jul 2011 13:48:23 +0200, Gerhard Petracek <[email protected]> wrote: > hi markus, > > since it's a general cdi integration issue of v8.0.0, it's completely > independent of portable cdi extensions like codi. > owb is very pluggable -> there might be a workaround but that also depends > on the integration of owb in WAS -> we can't answer such a question easily. > however, if you don't need special WAS features for now, you could start > with an other server like tomcat/tomee/jboss as7/glassfish 3.1.1/... (or the > previous version of WAS you are using + owb) and switch to WAS 8.0.1 as soon > as the fixpack is released (which is pretty soon). > > 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/27 markuslachat <[email protected]> > >> >> this is really interesting. I am trying to do the same. WebSphere 8.0.0.1 >> intended relase date is September 26th 2011. Is there any iFix solving this >> issue before the new version of WAS is out? >> >> >> Jakob Korherr wrote: >> > >> > great news :) >> > >> > 2011/7/8 Gerhard Petracek <[email protected]>: >> >> fyi: the websphere team notified my that they successfully deployed a >> >> codi >> >> demo on websphere v8.0.0.1 (which will be released soon). >> >> >> >> 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 <[email protected]> >> >> >> >>> It looks like they don´t set the contextclassloader to the web app >> >>> loader before they start it up. Now they use the OSGI classloaders >> which >> >>> seems to be loading stuff above the jee loader, hence the error. I >> think >> >>> that this is a common regression from release to release. We´ve seen >> >>> this before. >> >>> >> >>> regards, >> >>> Hampus >> >>> >> >>> >> >>> >> >>> On Tue, 5 Jul 2011 14:59:29 +0200, Gerhard Petracek >> >>> <[email protected]> wrote: >> >>> > hi hampus, >> >>> > >> >>> > ok - thx. it looks like they also have a classloader issue. >> >>> > we could bypass that as well but that's a jsf-api class used by codi. >> >>> so >> >>> if >> >>> > this one doesn't work, i guess others won't work as well. >> >>> > if you would like to test it, you can deactivate ViewScopedExtension >> >>> with >> >>> > the same approach provided by codi or you remove it manually from >> >>> > META-INF/services/javax.enterprise.inject.spi.Extension >> >>> > >> >>> > 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 <[email protected]> >> >>> > >> >>> >> Hi >> >>> >> >> >>> >> So I got further with enabling the >> >>> >> org.apache.webbeans.application.useJSF2Extensions property to true >> >>> (it´s >> >>> >> false by default) but now I´ve got some really strange ClassNotFound >> >>> >> problems (javax.faces.beans.ViewScoped) but I guess that it´s not >> >>> >> related to CODI. >> >>> >> >> >>> >> I think I´ll open a PMR with IBM and I´ll get back if they present >> >>> any >> >>> >> solution. >> >>> >> >> >>> >> (If you´ve not seen this before): >> >>> >> >> >>> >> Caused by: javax.enterprise.event.ObserverException: Caught >> Exception >> >>> >> while handling event object with type : >> >>> >> org.apache.webbeans.portable.events.discovery.AfterBeanDiscoveryImpl >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:448) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.webbeans.container.BeanManagerImpl.fireEvent(BeanManagerImpl.java:415) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.webbeans.config.BeansDeployer.fireAfterBeanDiscoveryEvent(BeansDeployer.java:269) >> >>> >> at >> >>> >> >> >>> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:180) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:124) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:78) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> com.ibm.ws.webbeans.common.CommonLifeCycle.startApplication(CommonLifeCycle.java:106) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> com.ibm.ws.webbeans.services.JCDIServletContainerInitializer.onStartup(JCDIServletContainerInitializer.java:85) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:609) >> >>> >> at >> >>> >> >> >>> >> com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:405) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169) >> >>> >> ... 17 more >> >>> >> Caused by: org.apache.webbeans.exception.WebBeansException: >> >>> >> java.lang.reflect.InvocationTargetException >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:282) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:434) >> >>> >> ... 28 more >> >>> >> Caused by: java.lang.reflect.InvocationTargetException >> >>> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >> Method) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) >> >>> >> at java.lang.reflect.Method.invoke(Method.java:611) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:276) >> >>> >> ... 29 more >> >>> >> Caused by: java.lang.NoClassDefFoundError: >> >>> javax.faces.bean.ViewScoped >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.webbeans.jsf.scopes.ViewScopedContext.getScope(ViewScopedContext.java:148) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.webbeans.container.BeanManagerImpl.addContext(BeanManagerImpl.java:375) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.webbeans.portable.events.discovery.AfterBeanDiscoveryImpl.addContext(AfterBeanDiscoveryImpl.java:153) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.webbeans.jsf.scopes.Jsf2ScopesExtension.registerViewContext(Jsf2ScopesExtension.java:59) >> >>> >> ... 34 more >> >>> >> Caused by: java.lang.ClassNotFoundException: >> >>> >> javax.faces.bean.ViewScoped >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) >> >>> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:612) >> >>> >> ... 38 more >> >>> >> >> >>> >> Thanks for your replies... >> >>> >> >> >>> >> Regards, >> >>> >> Hampus >> >>> >> >> >>> >> On Tue, 5 Jul 2011 13:50:47 +0200, Gerhard Petracek >> >>> >> <[email protected]> wrote: >> >>> >> > 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 <[email protected]> >> >>> >> > >> >>> >> >> 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 <[email protected]> >> >>> >> >> >> >>> >> >>> 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 <[email protected]> >> >>> >> >>> >> >>> >> >>>> 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 >> >>> >> >>>> >> >>> >> >>>> >> >>> >> >>> >> >>> >> >> >> >>> >> >> >>> >> >> >>> >> >>> >> >> >> > >> > >> > >> > -- >> > Jakob Korherr >> > >> > blog: http://www.jakobk.com >> > twitter: http://twitter.com/jakobkorherr >> > work: http://www.irian.at >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/Error-booting-CODI-on-WebSphere-8-%28OWB%29----WebBeans-context-with-scope-type-annotation-%40ApplicationScoped-does-not-exist-within-current-thread-tp31995457p32146467.html >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >>

