java.lang.IllegalArgumentException: The type specified [com.sun.faces.application.WebappLifecycleListener] is not one of the expected listener types

被刻印的时光 ゝ 提交于 2019-12-23 02:53:04

问题


I got following problem: I got an application working with Java 8 and tomcat 7. Now I try to move on to tomcat 8. An a development env I downloaded the tomcat 8 binaries and startet working in eclipse. I added a new Server (Apache tomcat 8). Not I want to make my application running on the new tomcat 8. But I got following exceptions, which I can't fix:

java.lang.ClassNotFoundException: org.apache.catalina.core.JasperListener
WARNING: Catalina.start using conf/server.xml: Error at (28, 66) : org.apache.catalina.core.JasperListener

This error seems logic to me, since the error message is really straight forward. After deleting this listener, following appears:

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to 
start component [StandardEngine [Catalina]
.StandardHost[localhost].StandardContext[/mycontext]]

followed by:

Caused by: java.lang.IllegalArgumentException: The type specified [com.sun.faces.application.WebappLifecycleListener] is not one of the expected listener types

I got listener defined in Server.xml and I define listeners in my web.xml in my application. But if I comment all entries out, same error appears.

Could someone please give me any clues to solve my problem?

来源:https://stackoverflow.com/questions/50964443/java-lang-illegalargumentexception-the-type-specified-com-sun-faces-applicatio

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