{"action":"created","issue":{"url":"https://api.github.com/repos/hammock-project/hammock/issues/130","repository_url":"https://api.github.com/repos/hammock-project/hammock","labels_url":"https://api.github.com/repos/hammock-project/hammock/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/hammock-project/hammock/issues/130/comments","events_url":"https://api.github.com/repos/hammock-project/hammock/issues/130/events","html_url":"https://github.com/hammock-project/hammock/issues/130","id":302114208,"number":130,"title":"owb2/jetty gives illegal state on DecoratedObjectFactory ","user":{"login":"immetoo","id":18482607,"avatar_url":"https://avatars3.githubusercontent.com/u/18482607?v=4","gravatar_id":"","url":"https://api.github.com/users/immetoo","html_url":"https://github.com/immetoo","followers_url":"https://api.github.com/users/immetoo/followers","following_url":"https://api.github.com/users/immetoo/following{/other_user}","gists_url":"https://api.github.com/users/immetoo/gists{/gist_id}","starred_url":"https://api.github.com/users/immetoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/immetoo/subscriptions","organizations_url":"https://api.github.com/users/immetoo/orgs","repos_url":"https://api.github.com/users/immetoo/repos","events_url":"https://api.github.com/users/immetoo/events{/privacy}","received_events_url":"https://api.github.com/users/immetoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-04T19:34:22Z","updated_at":"2018-03-04T23:41:58Z","closed_at":null,"author_association":"NONE","body":"Just got the my example working(based on hammock-microprofile) with dist-microprofile-2.1 which is very nice, but when changing the implementions i runned into some errors;\r\n\r\ndist-microprofile;\r\nworks\r\n\r\ndist-microprofile replaced undertow with jetty;\r\nworks\r\n\r\ndist-microprofile replaced weld3 with owb2;\r\nGives no startup error, but api response is \"No service was found.\"\r\n\r\ndist-microprofile replaced weld3/undertow with owb2/jetty;\r\nBoots but logs;\r\n\r\n```\r\njava.lang.IllegalStateException: Unable to find required ServletContext attribute: org.eclipse.jetty.util.DecoratedObjectFactory\r\nat org.eclipse.jetty.websocket.server.WebSocketServerFactory.doStart(WebSocketServerFactory.java:311) ~[websocket-server-9.4.8.v20171121.jar:9.4.8.v20171121]\r\nat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.8.v20171121.jar:9.4.8.v20171121]\r\nat org.atmosphere.container.Jetty9AsyncSupportWithWebSocket.<init>(Jetty9AsyncSupportWithWebSocket.java:54) [atmosphere-runtime-2.4.17.jar:2.4.17]\r\nat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [?:1.8.0_111]\r\nat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [?:1.8.0_111]\r\nat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:1.8.0_111]\r\nat java.lang.reflect.Constructor.newInstance(Constructor.java:423) [?:1.8.0_111]\r\nat org.atmosphere.cpr.DefaultAsyncSupportResolver.newCometSupport(DefaultAsyncSupportResolver.java:237) [atmosphere-runtime-2.4.17.jar:2.4.17]\r\nat org.atmosphere.cpr.DefaultAsyncSupportResolver.resolveWebSocket(DefaultAsyncSupportResolver.java:308) [atmosphere-runtime-2.4.17.jar:2.4.17]\r\nat org.atmosphere.cpr.DefaultAsyncSupportResolver.resolve(DefaultAsyncSupportResolver.java:294) [atmosphere-runtime-2.4.17.jar:2.4.17]\r\nat org.atmosphere.cpr.AtmosphereFramework.autoDetectContainer(AtmosphereFramework.java:2083) [atmosphere-runtime-2.4.17.jar:2.4.17]\r\nat org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:914) [atmosphere-runtime-2.4.17.jar:2.4.17]\r\nat org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:825) [atmosphere-runtime-2.4.17.jar:2.4.17]\r\nat org.apache.cxf.transport.sse.atmosphere.AtmosphereSseServletDestination.finalizeConfig(AtmosphereSseServletDestination.java:144) [cxf-rt-rs-sse-3.2.2.jar:3.2.2]\r\nat org.apache.cxf.transport.sse.SseHttpTransportFactory.getDestination(SseHttpTransportFactory.java:57) [cxf-rt-rs-sse-3.2.2.jar:3.2.2]\r\nat org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:84) [cxf-core-3.2.2.jar:3.2.2]\r\nat org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:63) [cxf-core-3.2.2.jar:3.2.2]\r\nat org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:173) [cxf-rt-frontend-jaxrs-3.2.2.jar:3.2.2]\r\nat org.apache.cxf.jaxrs.JAXRSServerFactoryBean.init(JAXRSServerFactoryBean.java:143) [cxf-rt-frontend-jaxrs-3.2.2.jar:3.2.2]\r\nat org.apache.cxf.cdi.JAXRSCdiResourceExtension.load(JAXRSCdiResourceExtension.java:193) [cxf-integration-cdi-3.2.2.jar:3.2.2]\r\nat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]\r\nat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]\r\nat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]\r\nat java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]\r\nat org.apache.webbeans.event.ObserverMethodImpl.invoke(ObserverMethodImpl.java:404) [openwebbeans-impl-2.0.3.jar:2.0.3]\r\nat org.apache.webbeans.event.ContainerEventObserverMethodImpl.invoke(ContainerEventObserverMethodImpl.java:85) [openwebbeans-impl-2.0.3.jar:2.0.3]\r\nat org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:365) [openwebbeans-impl-2.0.3.jar:2.0.3]\r\nat org.apache.webbeans.event.NotificationManager.invokeObserverMethod(NotificationManager.java:832) [openwebbeans-impl-2.0.3.jar:2.0.3]\r\nat org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:732) [openwebbeans-impl-2.0.3.jar:2.0.3]\r\nat org.apache.webbeans.container.BeanManagerImpl.fireEvent(BeanManagerImpl.java:494) [openwebbeans-impl-2.0.3.jar:2.0.3]\r\nat org.apache.webbeans.container.BeanManagerImpl.fireLifecycleEvent(BeanManagerImpl.java:489) [openwebbeans-impl-2.0.3.jar:2.0.3]\r\nat org.apache.webbeans.config.BeansDeployer.fireAfterDeploymentValidationEvent(BeansDeployer.java:870) [openwebbeans-impl-2.0.3.jar:2.0.3]\r\nat org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:346) [openwebbeans-impl-2.0.3.jar:2.0.3]\r\nat org.apache.webbeans.lifecycle.AbstractLifeCycle.bootstrapApplication(AbstractLifeCycle.java:137) [openwebbeans-impl-2.0.3.jar:2.0.3]\r\nat org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:103) [openwebbeans-impl-2.0.3.jar:2.0.3]\r\nat org.apache.openwebbeans.se.OWBInitializer.newContainer(OWBInitializer.java:107) [openwebbeans-se-2.0.3.jar:2.0.3]\r\nat org.apache.openwebbeans.se.OWBInitializer.initialize(OWBInitializer.java:91) [openwebbeans-se-2.0.3.jar:2.0.3]\r\nat org.apache.openwebbeans.se.SeInitializerFacade.initialize(SeInitializerFacade.java:137) [openwebbeans-se-2.0.3.jar:2.0.3]\r\nat ws.ament.hammock.bootstrap.owb.OWBBootstrapper.start(OWBBootstrapper.java:39) [bootstrap-owb2-2.1.jar:?]\r\nat ws.ament.hammock.Bootstrap.main(Bootstrap.java:41) [hammock-core-2.1.jar:?]\r\n```\r\n\r\nAnd api access fails with;\r\njava.lang.IllegalStateException: It's not allowed to call getBeans(String) before AfterBeanDiscovery\r\n\r\nEdit:\r\nJust notices that above was in all cases with;\r\ncxf.enable.sse.transport=false\r\n\r\nWhen using dist-microprofile replaced undertow with jetty;\r\nand sse enabled i get same boot error like;\r\n Unable to find required ServletContext attribute: org.eclipse.jetty.util.DecoratedObjectFactory\r\n\r\nBut the rest api still works."},"comment":{"url":"https://api.github.com/repos/hammock-project/hammock/issues/comments/370275496","html_url":"https://github.com/hammock-project/hammock/issues/130#issuecomment-370275496","issue_url":"https://api.github.com/repos/hammock-project/hammock/issues/130","id":370275496,"user":{"login":"johnament","id":108167,"avatar_url":"https://avatars1.githubusercontent.com/u/108167?v=4","gravatar_id":"","url":"https://api.github.com/users/johnament","html_url":"https://github.com/johnament","followers_url":"https://api.github.com/users/johnament/followers","following_url":"https://api.github.com/users/johnament/following{/other_user}","gists_url":"https://api.github.com/users/johnament/gists{/gist_id}","starred_url":"https://api.github.com/users/johnament/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnament/subscriptions","organizations_url":"https://api.github.com/users/johnament/orgs","repos_url":"https://api.github.com/users/johnament/repos","events_url":"https://api.github.com/users/johnament/events{/privacy}","received_events_url":"https://api.github.com/users/johnament/received_events","type":"User","site_admin":false},"created_at":"2018-03-04T23:41:58Z","updated_at":"2018-03-04T23:41:58Z","author_association":"OWNER","body":"I think I see the issue.  Seems like a regression within OWB.  Do you need to use OWB?  Would strongly recommend Weld."}}
{"actor":{"display_login":"johnament"}}