Tomcat 7 javax. el. ELException, javax. el. jar

Source: Internet
Author: User

Tomcat 7 javax. el. ELException, javax. el. jar

Today, when deploying the SSH project, we found a very strange problem. The project had no problem at tomcat6.0, but javax. el. ELException occurred when deploying the project to Tomcat 7 on the server.
At first, I thought it was because the jar package was not correctly configured, The jstl and standard versions were incorrect, or Tomcat web. xml was not correctly configured. However, after trying various solutions, I still failed. Later I found that the error only exists in the nested cforeach loop. After comparing the differences between atat6.0 and tomcat7.0 and querying some articles, we found that:
Tomcat 7 has strict syntax requirements on EL expressions. For example, "$ {owner. new}" May cause parsing errors because it contains the new keyword.
And I used the new keyword in the nested foreach loop ....
How can this problem be solved? There are three types:
First, strictly abide by the java specifications. Modify the attribute name of an object without containing the java keyword;
Type 2: Modify the EL expression. For example, "$ {owner. new}" can be changed to "$ {owner ['new']}".
Third: Modify tomcat properties and ignore keyword checks on EL expressions. Modify the $ CATALINA_BASE/conf/catalina. properties file and add the org. apache. el. parser. SKIP_IDENTIFIER_CHECK = true option.

Original article from:
Http://www.myexception.cn/h/810255.html

Reference:
Http://tomcat.apache.org/tomcat-7.0-doc/config/systemprops.html#Expression_Language


For tomcat 70 Problems

You put it in the cache directory and put it in the webapp directory try

How to start tomcat 70

This is very simple because port 8080 is occupied. to use it, you must turn off the tomcat started in Myeclipse. To use the built-in tomcat in MyEclipse, you must disable the tomcat you installed. There are two ways to close: 1. Choose Control Panel> Management Tools> services> Apache tomcat and close it.
2. start tomcat and click the stop button on the general tab.

You can refer:

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.