一、开发环境:Eclipse 3.4 + JBoss Tools 3.0.1.GA + Tomcat 6.0.20 + JDK6
二、问题现象:使用JBoss Tolls的创建“JSF Project”,在工程属性中选择如下,JSF Enviroment:JSF 1.2 With Facelets,Template:FaceletsKickStartWithRILibs,服务器为Tomcat6,生成工程后,运行时出现如下错误提示:
2009-7-11 15:02:14 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.addELResolver(Ljavax/el/ELResolver;)V" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, com/sun/faces/config/ConfigureListener, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ELResolver used in the signature
at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:397)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:189)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)