weblogic部署应用jsp编译异常

AN安分分 发布于 2015/11/23 17:23
阅读 1K+
收藏 0

项目原来是在tomcat6下面运行一切正常,最近想切换到weblogic下面启动一切正常,但是在运行过程中发现weblogic对jsp 2.1的规范支持有些问题。

项目jee版本:2.5

weblogic版本:10.3.6

报错信息如下:

Failed to compile JSP /WEB-INF/views/management/index/index.jsp menuAccordion.tag:1:46: The attribute "trimDirectiveWhitespaces" is supported by JSP 2.1 or higher version. <%@ tag language="java" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" body-content="empty" %> ^----------------------^ menuAccordion.tag:1:46: The attribute "trimDirectiveWhitespaces" is supported by JSP 2.1 or higher version. <%@ tag language="java" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" body-content="empty" %> ^----------------------^ menuAccordion.tag:12:5: The tag handler class was not found "jsp_servlet._tags.__navtablink_tag". ^-------------^ menuAccordion.tag:12:5: The tag handler class was not found "jsp_servlet._tags.__navtablink_tag". ^-------------^ menuAccordion.tag:13:5: The tag handler class was not found "jsp_servlet._tags.__menuaccordion_tag". ^----------------^ menuAccordion.tag:13:5: The tag handler class was not found "jsp_servlet._tags.__menuaccordion_tag".^----------------^ navTabLink.tag:1:46: The attribute "trimDirectiveWhitespaces" is supported by JSP 2.1 or higher version. <%@ tag language="java" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" body-content="empty" %> ^----------------------^ navTabLink.tag:1:46: The attribute "trimDirectiveWhitespaces" is supported by JSP 2.1 or higher version. <%@ tag language="java" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" body-content="empty" %> ^----------------------^ index.jsp:89:10: The tag handler class was not found "jsp_servlet._tags.__navtablink_tag". ^-------------^ index.jsp:89:10: The tag handler class was not found "jsp_servlet._tags.__navtablink_tag". ^-------------^ index.jsp:89:26: This attribute is not recognized. ^----^ index.jsp:89:47: This attribute is not recognized. ^-------^ index.jsp:90:10: The tag handler class was not found "jsp_servlet._tags.__menuaccordion_tag". ^----------------^ index.jsp:90:10: The tag handler class was not found "jsp_servlet._tags.__menuaccordion_tag". ^----------------^ index.jsp:90:29: This attribute is not recognized. ^---^ index.jsp:90:48: This attribute is not recognized. ^-------^

个人解决方式;

将tomcat下面的jsp-api和servlet两个jar复制项目lib路径下和weblogic都没有解决问题。各位有谁遇到类似问题,请指教

加载中
返回顶部
顶部