问题
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