[jira] [Comment Edited] (NETBEANS-5597) JSF with CDI does not work in fresh install

2021-04-19 Thread Geertjan Wielenga (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-5597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17324803#comment-17324803
 ] 

Geertjan Wielenga edited comment on NETBEANS-5597 at 4/19/21, 7:57 AM:
---

Can you try with the latest release, which is 12.3? Ah, I see you also tried 
12.3.

Best thing you could do would be to join the mailing lists, see 
netbeans.apache.org, and try to describe this problem as shortly and succinctly 
as possible -- if the problem is that JSF 2.3 is broken and if it is not 
related to NetBeans, then it's not something that can be fixed in NetBeans.


was (Author: geertjanwielenga):
Can you try with the latest release, which is 12.3? Ah, I see you also tried 
12.3.

> 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(Su

[jira] [Comment Edited] (NETBEANS-5597) JSF with CDI does not work in fresh install

2021-04-19 Thread Geertjan Wielenga (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-5597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17324803#comment-17324803
 ] 

Geertjan Wielenga edited comment on NETBEANS-5597 at 4/19/21, 7:55 AM:
---

Can you try with the latest release, which is 12.3? Ah, I see you also tried 
12.3.


was (Author: geertjanwielenga):
Can you try with the latest release, which is 12.3?

> 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.Ac