在Tomcat上测试通过,部署到Unix上的WebLogic 9.2 上,就出现如题的错误,应该是c标签应用出错。
<Jan 5, 2010 1:58:53 PM GMT+08:00> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@4e924e92 - appName: 'sp3', name: 'sp3.war', context-path: ''] Root cause of ServletException.
java.lang.NoSuchMethodError: javax/servlet/jsp/PageContext.getELContext()Ljavax/el/ELContext;
at org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.java:140)
at jsp_servlet.__index._jsp__tag1(__index.java:206)
at jsp_servlet.__index._jspService(__index.java:137)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
Truncated. see log file for complete stacktrace
>
解决方案如下:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
不论在哪里部署,都要jstl-1.2.jar 包
在Tomcat 上部署 去掉el-api.jar 包,否则会报错
在WebLogic 9.2 上部署 加上el-api.jar 和 standard-1.0.2.jar
<Jan 5, 2010 1:58:53 PM GMT+08:00> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@4e924e92 - appName: 'sp3', name: 'sp3.war', context-path: ''] Root cause of ServletException.
java.lang.NoSuchMethodError: javax/servlet/jsp/PageContext.getELContext()Ljavax/el/ELContext;
at org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.java:140)
at jsp_servlet.__index._jsp__tag1(__index.java:206)
at jsp_servlet.__index._jspService(__index.java:137)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
Truncated. see log file for complete stacktrace
>
解决方案如下:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
不论在哪里部署,都要jstl-1.2.jar 包
在Tomcat 上部署 去掉el-api.jar 包,否则会报错
在WebLogic 9.2 上部署 加上el-api.jar 和 standard-1.0.2.jar