I am using NetBeans version 15 and GlassFish version 6.2. To start with, I created a new JavaWeb Project. I deleted the ".xhtml" file and created the ".jsp" file instead. This is a trial project. I compiled it by right-clicking on the project > Build. I selected the ".war" file over GlassFish Server and Deployed it. But I am getting the below error. What could be the solution for this error? Thanks for your help.
An error has occurred Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet. Please see server.log for more details. An error has occurred
Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet. Please see server.log for more details.