We have something similar at our customer. Most times using openejb with deltaspike-cdictrl for running our unit tests (way faster than liberty) and WAS-8.5.5.1 in production. See [1] and [2] plus a bit maven magic in the poms for a sample setup.
LieGrue, strub [1 https://github.com/struberg/lightweightEE/blob/jta/backend/src/test/java/de/jaxenter/eesummit/caroline/backend/test/CdiContainerTest.java [2] https://github.com/struberg/lightweightEE/blob/jta/backend/src/test/resources/db/db-mysql.properties On Tuesday, 20 May 2014, 12:34, "[email protected]" <[email protected]> wrote: > > >Hello Mark, > >thank you for pointing this out. This version mess in WebSphere drives me >crazy. Unfortunately the development happens using liberty because its much >more convinient. The integration test happens under WAS 8.0.0.8 cause it's the >productive environment. I guess we have to go back developing with this >environment too, otherwise we run into things like this incompatiblities. > >Greetings, > >Heiko > >-- >Dr.-Ing. Heiko Kopp > >> -----Ursprüngliche Nachricht----- >> Von: Mark Struberg [mailto:[email protected]] >> Gesendet: Dienstag, 20. Mai 2014 12:30 >> An: [email protected] >> Betreff: Re: 0.7/0.8-SNAPSHOT - Error under WAS 8 - NullPointerException at >> Application Start in ViewConfigResolverProducer.createViewConfigResolver >> >> Hi Heiko! >> >> Side note: You need to distinguish between WAS-8.5.5.x and the liberty >> profile. >> They both have similar version numbers but are really different. E.g. WAS >> uses >> OWB-1.1.0-snapshot whereas liberty uses OWB-1.1.6. >> >> LieGrue, >> strub >> >> On Tuesday, 20 May 2014, 12:10, Gerhard Petracek >> <[email protected]> wrote: >> >> >> > >> > >> >short addition: >> >please pull the latest change and try it again. >> > >> >regards, >> >gerhard >> > >> > >> > >> > >> >2014-05-20 11:46 GMT+02:00 Gerhard Petracek >> <[email protected]>: >> > >> >> hi heiko, >> >> >> >> the only way to get around that WAS8 issue is to deactivate >> >> org.apache.deltaspike.jsf.impl.config.view.ViewConfigPathValidator >> >> (it implements Deactivatable). >> >> >> >> regards, >> >> gerhard >> >> >> >> >> >> >> >> 2014-05-20 11:36 GMT+02:00 <[email protected]>: >> >> >> >> Hello, >> >>> >> >>> we've come across an issue with Version 0.7 and even 0.8-SNAPSHOT >> >>> under WebSphere 8 in the JSF module. When the application is started >> >>> the following stack trace occurs. >> >>> >> >>> I've debugged into this a bit more. The SPI extension >> >>> ViewConfigExtension is present and exists and the observers are >> >>> correctly called, however it seems that afterwards within the >> >>> ViewConfigResolverProducer the ViewConfigExtension is not correctly >> >>> injected. The problem seems to be related to WAS 8 and not WAS 8.5 as >> the liberty profile works. >> >>> >> >>> I've changed the producer in the following way which made it work >> >>> under WAS 8. >> >>> >> >>> @Produces >> >>> @ApplicationScoped >> >>> public ViewConfigResolver createViewConfigResolver() >> >>> { >> >>> if (viewConfigExtension == null) >> >>> { >> >>> viewConfigExtension = >> >>> BeanProvider.getContextualReference(ViewConfigExtension.class); >> >>> } >> >>> >> >>> ... >> >>> } >> >>> >> >>> >> >>> Can somebody help out what might happen here? WebSphere 8 uses a >> >>> rather old version of OWB, but still it would be great if deltaspike >> >>> would support it. >> >>> >> >>> Thanks, >> >>> >> >>> Heiko >> >>> >> >>> [20.05.14 10:52:52:745 CEST] 00000025 webapp E >> >>>com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated >> >>> SRVE0283E: Es wurde eine Ausnahme beim Initialisieren des Kontextes >> >>> abgefangen: {0} >> >>> java.lang.NullPointerException >> >>> at >> >>> >> >>>org.apache.deltaspike.jsf.impl.config.view.ViewConfigResolverProducer >> >>>.createViewConfigResolver(ViewConfigResolverProducer.java:50) >> >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >> >>>Method) >> >>> at >> >>> >> >>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. >> >>>java:60) >> >>> at >> >>> >> >>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces >> >>>sorImpl.java:37) >> >>> at java.lang.reflect.Method.invoke(Method.java:611) >> >>> at >> >>> >> >>>org.apache.webbeans.intercept.InterceptorHandler.invoke(InterceptorHa >> >>>ndler.java:297) >> >>> at >> >>> >> >>>org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.inv >> o >> >>>ke(NormalScopedBeanInterceptorHandler.java:98) >> >>> at >> >>> >> >>>org.apache.deltaspike.jsf.impl.config.view.ViewConfigResolverProducer >> >>>_$$_javassist_31.createViewConfigResolver(ViewConfigResolverProducer >> _ >> >>>$$_javassist_31.java) >> >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >> >>>Method) >> >>> at >> >>> >> >>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. >> >>>java:60) >> >>> at >> >>> >> >>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces >> >>>sorImpl.java:37) >> >>> at java.lang.reflect.Method.invoke(Method.java:611) >> >>> at >> >>> >> >>>org.apache.webbeans.inject.InjectableMethods.doInjection(InjectableMe >> >>>thods.java:205) >> >>> at >> >>> >> >>>org.apache.webbeans.component.ProducerMethodBean.createDefaultInsta >> nc >> >>>e(ProducerMethodBean.java:204) >> >>> at >> >>> >> >>>org.apache.webbeans.component.ProducerMethodBean.createInstance(Pr >> odu >> >>>cerMethodBean.java:166) >> >>> at >> >>> >> >>>org.apache.webbeans.component.AbstractOwbBean.createNewInstance(A >> bstr >> >>>actOwbBean.java:216) >> >>> at >> >>> >> >>>org.apache.webbeans.portable.creation.AbstractProducer.produce(Abstra >> >>>ctProducer.java:82) >> >>> at >> >>> >> >>>org.apache.webbeans.component.InjectionTargetWrapper.produce(Injectio >> >>>nTargetWrapper.java:142) >> >>> at >> >>> >> >>>org.apache.webbeans.component.AbstractOwbBean.create(AbstractOwbB >> ean. >> >>>java:174) >> >>> at >> >>> >> >>>org.apache.webbeans.context.creational.BeanInstanceBag.create(BeanIns >> >>>tanceBag.java:80) >> >>> at >> >>> >> >>>org.apache.webbeans.context.AbstractContext.getInstance(AbstractConte >> >>>xt.java:226) >> >>> at >> >>> >> >>>org.apache.webbeans.context.AbstractContext.get(AbstractContext.java: >> >>>191) >> >>> at >> >>> >> >>>org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.get >> C >> >>>ontextualInstance(NormalScopedBeanInterceptorHandler.java:135) >> >>> at >> >>> >> >>>org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.inv >> o >> >>>ke(NormalScopedBeanInterceptorHandler.java:95) >> >>> at >> >>> >> >>>org.javassist.tmp.java.lang.Object_$$_javassist_30.getConfigDescripto >> >>>rs(Object_$$_javassist_30.java) >> >>> at >> >>> >> >>>org.apache.deltaspike.jsf.impl.config.view.ViewConfigPathValidator.va >> >>>lidateViewConfigPaths(ViewConfigPathValidator.java:63) >> >>> at >> >>> >> >>>org.apache.deltaspike.jsf.impl.config.view.ViewConfigPathValidator.co >> >>>ntextInitialized(ViewConfigPathValidator.java:52) >> >>> at >> >>> >> >>>com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(W >> eb >> >>>App.java:1686) >> >>> at >> >>> >> >>>com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java: >> >>>410) >> >>> at >> >>> >> >>>com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(Web >> Grou >> >>>pImpl.java:88) >> >>> at >> >>> >> >>>com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHost >> >>>Impl.java:169) >> >>> at >> >>> >> >>>com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer >> .java: >> >>>746) >> >>> at >> >>> >> >>>com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebCo >> ntain >> >>>er.java:634) >> >>> at >> >>> >> >>>com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContai >> n >> >>>erImpl.java:422) >> >>> at >> >>> >> >>>com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContain >> er >> >>>Impl.java:714) >> >>> at >> >>> >> >>>com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrI >> >>>mpl.java:1164) >> >>> at >> >>> >> >>>com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObje >> >>>ctStart(DeployedApplicationImpl.java:1369) >> >>> at >> >>> >> >>>com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModul >> eI >> >>>mpl.java:639) >> >>> at >> >>> >> >>>com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedAp >> >>>plicationImpl.java:967) >> >>> at >> >>> >> >>>com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(Appl >> >>>icationMgrImpl.java:770) >> >>> at >> >>> >> >>>com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynam >> >>>ically(ApplicationMgrImpl.java:1361) >> >>> at >> >>> >> >>>com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrI >> >>>mpl.java:2162) >> >>> at >> >>> >> >>>com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(Compositio >> n >> >>>UnitMgrImpl.java:446) >> >>> at >> >>> >> >>>com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUni >> >>>tImpl.java:123) >> >>> at >> >>> >> >>>com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(Compositio >> n >> >>>UnitMgrImpl.java:389) >> >>> at >> >>> >> >>>com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(Co >> mpos >> >>>itionUnitMgrImpl.java:117) >> >>> at >> >>> >> >>>com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(Compositi >> on >> >>>UnitMgrImpl.java:664) >> >>> at >> >>> >> >>>com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl >> . >> >>>java:5468) >> >>> at >> >>> >> >>>com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextMana >> ge >> >>>rImpl.java:5594) >> >>> at >> >>> >> >>>com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext. >> >>>java:255) >> >>> at >> >>> >> >>>com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startComposition >> U >> >>>nit(CompositionUnitMgrImpl.java:678) >> >>> at >> >>> >> >>>com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startComposition >> U >> >>>nit(CompositionUnitMgrImpl.java:622) >> >>> at >> >>> >> >>>com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(Appl >> >>>icationMgrImpl.java:1251) >> >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >> >>>Method) >> >>> at >> >>> >> >>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. >> >>>java:60) >> >>> at >> >>> >> >>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces >> >>>sorImpl.java:37) >> >>> at java.lang.reflect.Method.invoke(Method.java:611) >> >>> at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:69) >> >>> at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown >> >>>Source) >> >>> at >> >>> >> >>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces >> >>>sorImpl.java:37) >> >>> at java.lang.reflect.Method.invoke(Method.java:611) >> >>> at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:272) >> >>> at >> >>> >> >>>javax.management.modelmbean.RequiredModelMBean$4.run(RequiredMo >> delMBe >> >>>an.java:1152) >> >>> at >> >>> >> >>>java.security.AccessController.doPrivileged(AccessController.java:298 >> >>>) >> >>> at >> >>> >> >>>com.ibm.oti.security.CheckedAccessControlContext.securityCheck(Checke >> >>>dAccessControlContext.java:30) >> >>> at >> >>> >> >>>sun.misc.JavaSecurityAccessWrapper.doIntersectionPrivilege(JavaSecuri >> >>>tyAccessWrapper.java:41) >> >>> at >> >>> >> >>>javax.management.modelmbean.RequiredModelMBean.invokeMethod(Req >> uiredM >> >>>odelMBean.java:1146) >> >>> at >> >>> >> >>>javax.management.modelmbean.RequiredModelMBean.invoke(RequiredMo >> delMB >> >>>ean.java:999) >> >>> at >> >>> >> >>>com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM >> >>>BeanServerInterceptor.java:847) >> >>> at >> >>> >> >>>com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java: >> 783 >> >>>) >> >>> at >> >>> >> >>>com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java: >> 13 >> >>>35) >> >>> at >> >>> >> >>>com.ibm.ws.security.util.AccessController.doPrivileged(AccessControll >> >>>er.java:118) >> >>> at >> >>> >> >>>com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java >> :1 >> >>>228) >> >>> at >> >>> >> >>>com.ibm.ws.management.connector.AdminServiceDelegator.invoke(Admin >> Ser >> >>>viceDelegator.java:181) >> >>> at >> >>> >> >>>com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java: >> >>>247) >> >>> at >> >>> >> >>>com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork >> (IP >> >>>CConnectorInboundLink.java:360) >> >>> at >> >>> >> >>>com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCCo >> nnec >> >>>torReadCallback.complete(IPCConnectorInboundLink.java:602) >> >>> at >> >>> >> >>>com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompleted >> Cal >> >>>lback.complete(SSLReadServiceContext.java:1819) >> >>> at >> >>> >> >>>com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted >> >>>(AioReadCompletionListener.java:175) >> >>> at >> >>> >> >>>com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFutu >> >>>re.java:217) >> >>> at >> >>> >> >>>com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChann >> e >> >>>lFuture.java:161) >> >>> at >> >>>com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) >> >>> at >> >>>com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) >> >>> at >> >>> >> >>>com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.j >> >>>ava:775) >> >>> at >> >>>com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) >> >>> at >> >>>com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1702) >> >>> >> >>> -- >> >>> Heiko Kopp >> >>> >> >>> >> >>> If you are not the addressee, please inform us immediately that you >> >>> have received this e-mail by mistake, and delete it. We thank you >> >>> for your support. > >> >>> >> >>> >> >> >> > >> > >> > > >If you are not the addressee, please inform us immediately that you have >received this e-mail by mistake, and delete it. We thank you for your support. > > >
