为什么我的PhaseListener不被识别为javax.faces.event.PhaseListener的实现?

时间:2012-01-26 09:22:18

标签: java jsf tomcat phaselistener

我有一个带有自定义PhaseListener的JSF-Application,可以在Tomcat 6.0.24上正常工作。 服务器启动看起来像:

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'

在新的Tomcat 6.0.35安装上部署相同的应用程序,它显示:

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'

某些Google点击指向错误的JSF版本号,但这些显然是相同的。但还有什么可能导致这种情况?谢谢你的帮助。

更新 在干净的6.0.24安装上也会发生错误。以下是TOMCAT_INST\lib

的内容

enter image description here

我的应用程序在WEB-INF \ lib中有这个与JSF相关的文件:

enter image description here

0 个答案:

没有答案