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: