I have a JSF-Application with a custom PhaseListener that works fine on Tomcat 6.0.24. Server startup looks like:
INFO: Starting Servlet Engine: Apache Tomcat/6.0.24
26.01.2012 09:54:21 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra (1.2_13-b01-FCS) for context '/myapp'
Deploying the same application on a fresh Tomcat 6.0.35 installation, it shows:
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
...
26.01.2012 10:10:26 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra (1.2_13-b01-FCS) for context '/myapp'
26.01.2012 10:10:26 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
Source Document: jndi:/localhost/zav-gui/WEB-INF/faces-config.xml
Cause: Class 'mypackage.CustomPhaseListener' is not an instance of 'interface javax.faces.event.PhaseListener'
Some Google hits point to wrong JSF version number, but these are obviously the same. But what else could cause this? Thanks for any help.
UPDATE
The error happens on a clean 6.0.24 installation also. Here is the content of TOMCAT_INST\lib
:
My Application has this JSF related files in WEB-INF\lib: