New deployment Tomcat,an error occurred at line: [1] Index_jsp.java

Source: Internet
Author: User

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< &LT;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

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.