Maven writes Web page run with framework HTTP Status 500-unable to compile class for JSP

Source: Internet
Author: User
Tags gz file

When using MAVEN to integrate the framework, what should I do if the HTTP 500-unable to compile class for JSP error occurs when accessing through the browser?

Before on the internet to see a lot of people's solutions. is not suitable for me, I finally found in a MAVEN video to see. The pom.xml in Maven changed tomcat to read-only, because the imported jar and tomact have conflicting

This will allow you to access the items you've written.

I'm sorting out some of the remaining HTTP 500-unable to compile class for JSP errors

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.

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

2: Download the corresponding tar.gz file according to the JDK version obtained above.

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.

Maven writes Web page run with framework HTTP Status 500-unable to compile class for JSP

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.