java.lang.ClassNotFoundException: org.apache.myfaces.webapp.StartupServletContextListener

一笑奈何 提交于 2019-12-04 05:16:27

java.lang.ClassNotFoundException: org.apache.myfaces.webapp.StartupServletContextListener

The ClassNotFoundException means that the mentioned class is missing in the application's runtime classpath. The mentioned class is part of MyFaces JSF implementation. You need to download the MyFaces Core Distribution, unpack the file and put the JAR files found in the /lib folder in the /WEB-INF/lib folder of your webapp project. Note that MyFaces ships with three myfaces-*.jar files, you should put either both the myfaces-api and myfaces-impl JAR files, or alone the myfaces-bundle JAR file in the /WEB-INF/lib.

I had the same problem using Tomcat7 on Eclipse. I had all the required jar files. I discoverd that it was due to a wrong configuration of the server. Be sure, while creating a dynamic web project on Eclipse, to choose for Tomcat the JSF configuration, not the default one.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!