Tomcat7.0.59 cannot parse an EL expression

Source: Internet
Author: User

Tomcat7.0.59 solution for El Expressions cannot be resolved 1. Corporate server in the transition from Windows to Windows, Tomcat from 6 to 7, in the process of conversion encountered New.title can not be resolved, but the previous TOMCAT6 can be used normally. After finding the data, we found that TOMCAT7 has new features .

Tomcat 7 has strict syntax requirements for El expressions, such as "${new.title}" which causes parsing errors due to the inclusion of the keyword new. \

This time for us to modify the configuration file, ignore the keyword settings:

Modifies the Tomcat attribute, ignoring the keyword check for El expressions. Modify the $catalina_base/conf/catalina.properties file and add the Org.apache.el.parser.skip_identifier_check=true option.


2. Also modify the project's Web.xml file, the red part is removed:

<?xml version= "1.0" encoding= "UTF-8"?>
<! DOCTYPE Web-app Public "-//sun Microsystems, INC.//DTD web
Application 2.3//en "HTTP://JAVA.SUN.COM/DTD/WEB-APP_2_3.DTD" >

<web-app version= "2.4" xmlns= "HTTP://JAVA.SUN.COM/XML/NS/J2EE"
Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
Xsi:schemalocation= "Http://java.sun.com/xml/ns/j2ee
Http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd ">


TOMCAT7 with Servlet 3.0 specification and JAVADOC,JSP 2.2 and EL 2.2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.