简体   繁体   中英

Error message when installing new tomcat server (5.5)

I have installed a new tomcat server (5.5) and I get this exception:

org.apache.jasper.JasperException: Unable to load tag handler class "org.apache.taglibs.standard.tag.rt.core.WhenTag" for tag "c:when"

I guess I am missing the JSTL but I can't find how do add it to the tomcat server.

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

org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 29 in the jsp file: /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.

@yossi, yes you are missing JSTL taglib .
download JSTL 1.1/jstl.jar and standard.jar to WEB-INF/lib Folder.
If you are using Maven in your project you can add below dependency to your 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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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