简体   繁体   English

安装新的tomcat服务器时出现错误消息(5.5)

[英]Error message when installing new tomcat server (5.5)

I have installed a new tomcat server (5.5) and I get this exception: 我安装了一个新的tomcat服务器(5.5),并且出现以下异常:

org.apache.jasper.JasperException: Unable to load tag handler class "org.apache.taglibs.standard.tag.rt.core.WhenTag" for tag "c:when" org.apache.jasper.JasperException:无法为标签“ c:when”加载标签处理程序类“ org.apache.taglibs.standard.tag.rt.core.WhenTag”

I guess I am missing the JSTL but I can't find how do add it to the tomcat server. 我想我缺少JSTL,但是找不到如何将其添加到tomcat服务器。

i found jstl-api-1.2.jar and jstl-impl-1.2.jar here i have put them in the WEB-INF/lib and now i get this exception 我在这里找到了jstl-api-1.2.jar和jstl-impl-1.2.jar 我将它们放在WEB-INF / lib中,现在我得到了这个异常

org.apache.jasper.JasperException: Unable to compile class for JSP: org.apache.jasper.JasperException:无法为JSP编译类:
An error occurred at line: 29 in the jsp file: /jsp/general/pos/DoMultiWordFrozen.jspf jsp文件中的第29行发生错误:/jsp/general/pos/DoMultiWordFrozen.jspf
Type mismatch: cannot convert from Boolean to boolean 类型不匹配:无法从布尔值转换为布尔值

the same code was working on my old (tomcat 5.5.12) server. 相同的代码在我的旧(tomcat 5.5.12)服务器上工作。

@yossi, yes you are missing JSTL taglib . @yossi,是的,您缺少JSTL taglib
download JSTL 1.1/jstl.jar and standard.jar to WEB-INF/lib Folder. JSTL 1.1 / jstl.jarstandard.jar下载到WEB-INF/lib文件夹。
If you are using Maven in your project you can add below dependency to your pom.xml 如果您在项目中使用Maven ,则可以将以下依赖项添加到pom.xml中

  <!-- standard.jar --> 
    <dependency>
        <groupId>taglibs</groupId>
        <artifactId>standard</artifactId>
        <version>1.1.0</version>
    </dependency>

    <!-- JSTL --> 
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>jstl</artifactId>
        <version>1.1.0</version>
    </dependency>

You can find out more Maven releases here 您可以在这里找到更多的Maven版本

您可以将jstl.jar添加到Web应用程序中,只需将jstl.jar复制到WEB-INF / lib即可

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM