On the use of glassfish in IDEA

recently encountered a problem when learning JSF. When using IDEA for development, because tomcat does not support the jsf framework, I intend to use glassfish,. However, I encountered a problem when configuring glassfish for IDEA, resulting in the project being unable to start all the time. The error code is as follows: Artifact Hibernate:war exploded: java.io.IOException: com.sun.enterprise.admin.remote.RemoteFailureException: Error occurred during deployment: 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. Please see server.log for more details.

looked for it on the Internet, but there was no relevant answer. I used jdk8 + glassfish5. Is there a big god who knows where the problem is? ask for an answer.

Mar.25,2022
Menu