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