相关疑难解决方法(0)

java.lang.LinkageError:javax.servlet.jsp.JspApplicationContext.getExpressionFactory

当我尝试在Tomcat 7上运行我的webapp时,我得到以下异常:

exception

javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;
" the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/index_jsp, 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/ExpressionFactory used in the signature
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

root cause

java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/index_jsp, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for …
Run Code Online (Sandbox Code Playgroud)

jsp tomcat servlets linkageerror

29
推荐指数
2
解决办法
7万
查看次数

Eclipse WTP,maven和m2eclipse - 不复制提供的jar

使用Eclipse WTP和m2eclipse时,可以将所有依赖项复制到WEB-INF/lib(通过在Deployment程序集中添加"maven dependencies").但是,也会复制具有"提供"范围的依赖关系,例如el-api和jsp-api.这扰乱了容器并且无法启动.

没有复制"提供"罐子的任何解决方案?

java eclipse m2eclipse maven

12
推荐指数
1
解决办法
6585
查看次数

Tomcat 7 LinkageError:加载器约束违规

INFO: Deploying web application archive test-1.0-SNAPSHOT.war
20-Sep-2011 12:08:42 org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\software\apache-tomcat-7.0.21\webapps\test-1.0-SNAPSHOT\WEB-INF\lib\servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
20-Sep-2011 12:08:42 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.1.0 (SNAPSHOT 20100817) for context '/test-1.0-SNAPSHOT'
20-Sep-2011 12:08:42 com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
20-Sep-2011 12:08:43 com.sun.faces.config.ConfigureListener contextInitialized
SEVERE: Critical error during deployment: 
java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance …
Run Code Online (Sandbox Code Playgroud)

jsf tomcat maven jsf-2

8
推荐指数
1
解决办法
2万
查看次数

标签 统计

maven ×2

tomcat ×2

eclipse ×1

java ×1

jsf ×1

jsf-2 ×1

jsp ×1

linkageerror ×1

m2eclipse ×1

servlets ×1