Environment:
centos6.5 32-bit
Oracle JDK 1.8
Tomcat 7
Problem:
After Yum install Tomcat, the following error is returned:
[[Email protected]]~# curl-v http://localhost:8080* About-to-connect () to localhost port8080(#0)* Trying127.0.0.1. .. connected* Connected to localhost (127.0.0.1) port8080(#0)> get/http/1.1> user-agent:curl/7.19.7(I386-REDHAT-LINUX-GNU) libcurl/7.19.7nss/3.21Basic ECC zlib/1.2.3libidn/1.18libssh2/1.4.2> Host:localhost:8080> Accept: */*> < http/1.1 Internal Server error< server:apache-coyote/1.1< content-type:text/html;charset=utf-8< content-language:en< content-length:2655< Date:thu, Sep 03:03:16 gmt< connection:close< <HTML&G T;
The netizen introduced this is ecj.jar too old. The version of the Netizen 3.4.2, change 4.2 after OK. Look at your ECJ.
[[Email protected]]/usr/share/java# ll|grepECJ-rw-r--r--1Root root1442090November One .ecj-3.4.2. jarlrwxrwxrwx1Root root -September the xx: -Ecj.jar-ecj-3.4.2. jarlrwxrwxrwx1Root root -September the xx: -eclipse-ecj-3.4.2. Jar-Ecj-3.4.2. jarlrwxrwxrwx1Root root +September the xx: -Eclipse-ecj.jar-eclipse-ecj-3.4.2. jarlrwxrwxrwx1Root root -September the xx: -Jdtcore.jar-ecj-3.4.2. jar
Very old indeed.
So open ECJ look down, sure enough, a lot of compilation related classes Ah!
Http://wiki.jikexueyuan.com/project/tomcat/classloading.html
After replacing the old version ECJ with Ecj-4.4.2.jar, restart Tomcat, turn off the firewall, visit the Web page
Done
New deployment Tomcat,an error occurred at line: [1] Index_jsp.java