Web project deployment to cloud Ubuntu appears HTTP 500-unable to compile class for JSP error resolution

Source: Internet
Author: User
Tags gz file

Reprint please specify the original address: http://www.cnblogs.com/ygj0930/p/6383192.html

In the previous blog post, we deployed our native Web project to the cloud host's Tomcat. After the browser access, if the HTTP 500-unable to compile class for JSP error, how should be resolved?

In general, the cause of this error is the JDK version you used to develop and the version of Tomcat that was tested locally compared to the JDK version built on the cloud host and the low version of Tomcat .

Workaround: Rebuild the JDK for the cloud host as well as Tomcat, version select the JDK version used by MyEclipse during development.

1: View the JDK version used for the development.

In MyEclipse, click File,properties, and select BuildPath in the left column.

For example, JRE System Library[sun jdk 1.6.0_13] is the JDK version that was used when compiling my project.

2: According to the JDK version obtained above, download the corresponding tar.gz file, http://www.cnblogs.com/ygj0930/p/6377878.html build the JDK with reference to the blog post.

3: Choose Tomcat based on JDK version: generally choose Tomcat corresponding to the JDK version. For example here JDK6, so I built tomcat6. Of course, you can also choose tomcat7,8,9. Remember that theversion of Tomcat must be greater than or equal to the JDK version.

4: Redeploy the Web project.

Web project deployment to cloud Ubuntu appears HTTP 500-unable to compile class for JSP error resolution

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.