当这个错误部署Web应用程序到本地的Tomcat(在eclipse),启动failes:运行的Web应用程序失败,LinkageException
SEVERE: 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;)
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 p.JspApplicationContext.addELResolver(Ljavax/el/ELResolver;)
这到底是怎么回事?我已阅读,它可能有一些做在WEB-INF/lib中有servlet的广口瓶,但似乎并没有在这里事项:
没有“的javax。 *“里面有jar,那么为什么这个包中的类会失败?
即使在删除servlet-api之后也出现同样的错误 – 2013-03-13 10:03:48
在这种情况下,请转到jar的其余部分,并确保这些类不包含在其他任何地方。 – 2013-03-13 10:04:43
对于“这些类”,你的意思是任何'javax.servlet',对吧? – 2013-03-13 10:06:26