[ https://issues.apache.org/jira/browse/NETBEANS-5597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Petrovic updated NETBEANS-5597: ------------------------------------- Attachment: attachment_jsf_in_netbeans.txt > JSF with CDI does not work in fresh install > ------------------------------------------- > > Key: NETBEANS-5597 > URL: https://issues.apache.org/jira/browse/NETBEANS-5597 > Project: NetBeans > Issue Type: Bug > Affects Versions: 12.0 > Environment: Product Version: Apache NetBeans IDE 12.0 > Java: 1.8.0_281; Java HotSpot(TM) 64-Bit Server VM 25.281-b09 > Runtime: Java(TM) SE Runtime Environment 1.8.0_281-b09 > System: Windows 10 version 10.0 running on amd64; Cp1250; en_US (nb) > Reporter: Pavel Petrovic > Priority: Blocker > Attachments: attachment_jsf_in_netbeans.txt > > > This text is also attached as a text file, which is easier to read. > 1. download Netbeans 12.0 from official page > 2. create new project: Ant - Java Web application > 2.1. Activate Web and Java EE, javac-nb, restart IDE > 2.2. create new project: Ant - Java Web application > 2.3. from the wizzard download GlassFish 5.0.1 and select it > 2.4. fill all the remaining defaults, application gets created > 3. run the created project (contains one index.xhtml and basic structure) > 3.1. Starting GlassFish Server > GlassFish Server is running. > In-place deployment at > C:\Users\petrovic\Documents\NetBeansProjects\WebApplication2\build\web > GlassFish Server, deploy, null, false > C:\Users\petrovic\Documents\NetBeansProjects\WebApplication2\nbproject\build-impl.xml:1030: > The module has not been deployed. > See the server log for details. > BUILD FAILED (total time: 30 seconds) > 3.2 GlassFish console says: > Initializing Mojarra 2.3.2 ( 20170627-2139 > e63598abf2ed2bb1a24674f308a734e0dce18a72) for context '/WebApplication2'|#] > Listening to REST requests at context: /management/domain.|#] > Critical error during deployment: > javax.faces.FacesException: Unable to find CDI BeanManager > at com.sun.faces.el.ELUtils.tryAddCDIELResolver(ELUtils.java:312) > at com.sun.faces.el.ELUtils.buildFacesResolver(ELUtils.java:242) > at > com.sun.faces.application.ApplicationAssociate.initializeELResolverChains(ApplicationAssociate.java:499) > at > com.sun.faces.application.ApplicationImpl.performOneTimeELInitialization(ApplicationImpl.java:1404) > at > com.sun.faces.application.ApplicationImpl.getELResolver(ApplicationImpl.java:526) > at > com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:256) > at > org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:5005) > at > com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:592) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:5574) > at com.sun.enterprise.web.WebModule.start(WebModule.java:540) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:877) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:860) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:644) > at > com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2044) > at > com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1690) > at com.sun.enterprise.web.WebApplication.start(WebApplication.java:107) > at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122) > at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291) > at > org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219) > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:540) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:536) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:535) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:566) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:558) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:557) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1465) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:110) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1847) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1723) > at > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534) > at > com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224) > at > org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:190) > at > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:463) > at > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:168) > at > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) > at > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) > at > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:242) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) > at > org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:539) > at > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573) > at java.lang.Thread.run(Thread.java:748)|#] > Startup of context /WebApplication2 failed due to previous errors|#] > Exception during cleanup after start failed > org.apache.catalina.LifecycleException: Manager has not yet been started > at > org.apache.catalina.session.StandardManager.stop(StandardManager.java:838) > at > org.apache.catalina.core.StandardContext.stop(StandardContext.java:5779) > at com.sun.enterprise.web.WebModule.stop(WebModule.java:569) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:5592) > at com.sun.enterprise.web.WebModule.start(WebModule.java:540) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:877) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:860) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:644) > at > com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2044) > at > com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1690) > at com.sun.enterprise.web.WebApplication.start(WebApplication.java:107) > at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122) > at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291) > at > org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219) > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:540) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:536) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:535) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:566) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:558) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:557) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1465) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:110) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1847) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1723) > at > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534) > at > com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224) > at > org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:190) > at > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:463) > at > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:168) > at > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) > at > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) > at > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:242) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) > at > org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:539) > at > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573) > at java.lang.Thread.run(Thread.java:748)|#] > ContainerBase.addChild: start: > org.apache.catalina.LifecycleException: java.lang.RuntimeException: > javax.faces.FacesException: Unable to find CDI BeanManager > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:5596) > at com.sun.enterprise.web.WebModule.start(WebModule.java:540) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:877) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:860) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:644) > at > com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2044) > at > com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1690) > at com.sun.enterprise.web.WebApplication.start(WebApplication.java:107) > at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122) > at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291) > at > org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219) > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:540) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:536) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:535) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:566) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:558) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:557) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1465) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:110) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1847) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1723) > at > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534) > at > com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224) > at > org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:190) > at > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:463) > at > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:168) > at > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) > at > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) > at > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:242) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) > at > org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:539) > at > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573) > at java.lang.Thread.run(Thread.java:748) > Caused by: java.lang.RuntimeException: javax.faces.FacesException: Unable to > find CDI BeanManager > at > com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:315) > at > org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:5005) > at > com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:592) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:5574) > ... 49 more > Caused by: javax.faces.FacesException: Unable to find CDI BeanManager > at com.sun.faces.el.ELUtils.tryAddCDIELResolver(ELUtils.java:312) > at com.sun.faces.el.ELUtils.buildFacesResolver(ELUtils.java:242) > at > com.sun.faces.application.ApplicationAssociate.initializeELResolverChains(ApplicationAssociate.java:499) > at > com.sun.faces.application.ApplicationImpl.performOneTimeELInitialization(ApplicationImpl.java:1404) > at > com.sun.faces.application.ApplicationImpl.getELResolver(ApplicationImpl.java:526) > at > com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:256) > ... 52 more|#] > Initializing Mojarra 2.3.2 ( 20170627-2139 > e63598abf2ed2bb1a24674f308a734e0dce18a72) for context ''|#] > java.lang.IllegalStateException: ContainerBase.addChild: start: > org.apache.catalina.LifecycleException: java.lang.RuntimeException: > javax.faces.FacesException: Unable to find CDI BeanManager > java.lang.IllegalStateException: ContainerBase.addChild: start: > org.apache.catalina.LifecycleException: java.lang.RuntimeException: > javax.faces.FacesException: Unable to find CDI BeanManager > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:881) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:860) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:644) > at > com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2044) > at > com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1690) > at com.sun.enterprise.web.WebApplication.start(WebApplication.java:107) > at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122) > at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291) > at > org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219) > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:540) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:536) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:535) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:566) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:558) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:557) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1465) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:110) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1847) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1723) > at > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534) > at > com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224) > at > org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:190) > at > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:463) > at > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:168) > at > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) > at > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) > at > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:242) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) > at > org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:539) > at > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573) > at java.lang.Thread.run(Thread.java:748)|#] > Exception while invoking class com.sun.enterprise.web.WebApplication start > method > java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: > start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: > javax.faces.FacesException: Unable to find CDI BeanManager > at com.sun.enterprise.web.WebApplication.start(WebApplication.java:136) > at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122) > at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291) > at > org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219) > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:540) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:536) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:535) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:566) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:558) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:557) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1465) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:110) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1847) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1723) > at > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534) > at > com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224) > at > org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:190) > at > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:463) > at > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:168) > at > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) > at > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) > at > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:242) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) > at > org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:539) > at > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573) > at java.lang.Thread.run(Thread.java:748)|#] > Exception during lifecycle processing > java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: > start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: > javax.faces.FacesException: Unable to find CDI BeanManager > at com.sun.enterprise.web.WebApplication.start(WebApplication.java:136) > at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122) > at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291) > at > org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219) > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:540) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:536) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:535) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:566) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:558) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:557) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1465) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:110) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1847) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1723) > at > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534) > at > com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224) > at > org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:190) > at > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:463) > at > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:168) > at > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) > at > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) > at > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:242) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) > at > org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:539) > at > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573) > at java.lang.Thread.run(Thread.java:748)|#] > Exception while loading the app|#] > Undeployment failed for context /WebApplication2|#] > Exception while loading the app : java.lang.IllegalStateException: > ContainerBase.addChild: start: org.apache.catalina.LifecycleException: > java.lang.RuntimeException: javax.faces.FacesException: Unable to find CDI > BeanManager|#] > Loading application [__admingui] at [/]|#] > Loading application __admingui done in 5,588 ms|#] > Context path from ServletContext: differs from path from bundle: /|#] > So fine, then this page > https://stackoverflow.com/questions/54021886/unable-to-find-cdi-beanmanager/54023746 > says to add beans.xml, fine, right-click on the project, add-JSF-beans.xml > it appears in WEB-INF and contains: > <?xml version="1.0" encoding="UTF-8"?> > <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee > http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd" > bean-discovery-mode="annotated"> > </beans> > This should have been done automatically already, since the created > index.xhtml depends on it (BUG). > 4. Never mind, it helps not anyway: Clean&Build > 5. Run project: > In-place deployment at > C:\Users\petrovic\Documents\NetBeansProjects\WebApplication2\build\web > run-deploy: > Browsing: http://localhost:8080/WebApplication2 > run-display-browser: > run: > BUILD SUCCESSFUL (total time: 1 second) > 5.1. in GlassFish Server tab: > WELD-000900: 3.0.0 (Final)|#] > WELD-000411: Observer method [BackedAnnotatedMethod] public > org.hibernate.validator.cdi.ValidationExtension.processAnnotatedType(@Observes > ProcessAnnotatedType<T>) receives events for all annotated types. Consider > restricting events using @WithAnnotations or a generic type with bounds.|#] > WELD-000411: Observer method [BackedAnnotatedMethod] public > org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes > ProcessAnnotatedType<T>) receives events for all annotated types. Consider > restricting events using @WithAnnotations or a generic type with bounds.|#] > WELD-000411: Observer method [BackedAnnotatedMethod] > org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes > ProcessAnnotatedType<T>, BeanManager) receives events for all annotated > types. Consider restricting events using @WithAnnotations or a generic type > with bounds.|#] > WELD-000411: Observer method [BackedAnnotatedMethod] private > org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes > ProcessAnnotatedType) receives events for all annotated types. Consider > restricting events using @WithAnnotations or a generic type with bounds.|#] > WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used > for class com.ibm.jbatch.container.cdi.BatchProducerBean is deprecated from > CDI 1.1!|#] > WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used > for class > org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider$JaxRsParamProducer > is deprecated from CDI 1.1!|#] > WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used > for class > org.glassfish.jersey.ext.cdi1x.servlet.internal.CdiExternalRequestScope is > deprecated from CDI 1.1!|#] > WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used > for class com.sun.faces.flow.FlowDiscoveryCDIHelper is deprecated from CDI > 1.1!|#] > WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used > for class org.glassfish.cdi.transaction.TransactionalInterceptorMandatory is > deprecated from CDI 1.1!|#] > WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used > for class org.glassfish.cdi.transaction.TransactionalInterceptorNever is > deprecated from CDI 1.1!|#] > WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used > for class org.glassfish.cdi.transaction.TransactionalInterceptorNotSupported > is deprecated from CDI 1.1!|#] > WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used > for class org.glassfish.cdi.transaction.TransactionalInterceptorRequired is > deprecated from CDI 1.1!|#] > WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used > for class org.glassfish.cdi.transaction.TransactionalInterceptorRequiresNew > is deprecated from CDI 1.1!|#] > WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used > for class org.glassfish.cdi.transaction.TransactionalInterceptorSupports is > deprecated from CDI 1.1!|#] > WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used > for class > org.glassfish.jersey.ext.cdi1x.transaction.internal.WebAppExceptionHolder is > deprecated from CDI 1.1!|#] > WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used > for class > org.glassfish.jersey.ext.cdi1x.transaction.internal.WebAppExceptionInterceptor > is deprecated from CDI 1.1!|#] > WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used > for class > org.glassfish.jersey.ext.cdi1x.transaction.internal.TransactionalExceptionMapper > is deprecated from CDI 1.1!|#] > Initializing Soteria 1.0 for context '/WebApplication2'|#] > Initializing Mojarra 2.3.2 ( 20170627-2139 > e63598abf2ed2bb1a24674f308a734e0dce18a72) for context '/WebApplication2'|#] > Loading application [WebApplication2] at [/WebApplication2]|#] > WebApplication2 was successfully deployed in 2,645 milliseconds.|#] > 6. OK, add new JSF request-scope bean a simple one > package whatever; > import javax.inject.Named; > import javax.enterprise.context.RequestScoped; > @Named(value = "myBean") > @RequestScoped > public class MyBean { > private String messg; > > /** > * Creates a new instance of MyBean > */ > public MyBean() { > } > > public String getMessg() > { > System.out.println("getter called"); > return " from getter "; > } > > public void setMessg(String m) > { > System.out.println("setter called"); > messg = m; > } > > } > 7. modify the index.xhtml as follows: > <?xml version='1.0' encoding='UTF-8' ?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:h="http://xmlns.jcp.org/jsf/html"> > <h:head> > <title>Facelet Title</title> > </h:head> > <h:body> > Hello from Facelets #{myBean.messg} > </h:body> > </html> > 8. Clean & Build, Run > The browser displays the following content: (view source) > <?xml version='1.0' encoding='UTF-8' ?> > <!DOCTYPE html> > <html xmlns="http://www.w3.org/1999/xhtml"><head id="j_idt2"> > <title>Facelet Title</title></head><body> > Hello from Facelets > </body> > </html> > That is - there should be no XML tag, however we can see that JSF did > something, but does not work as it does not processs the #{myBean.messg} at > all. > Same thing with any other JSF interaction - inputText, outputText, buttons > etc. Nothing works with CDI beans. > This is a complete stopper, I've been on this for weeks, same for 12.3 or any > other attempts, Maven, Gradle, whatever. Everything fails. Even in Eclipse > with Wildfly JSF fails to work. Internet completely silent. Absolute > desperation about this technology. > According to a discussion here: > https://github.com/eclipse-ee4j/glassfish/issues/22094 > JSF2.3 is broken and has to contain a class that is annotated with > @FacesConfig(version = FacesConfig.Version.JSF_2_3). > Adding that to this project does not help either. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists