Org. Apache. Jasper. jasperexception: Unable to compile class for JSP Solution

Source: Internet
Author: User
Org. Apache. Jasper. jasperexception: Unable to compile class for JSP Solution

 

(Recently, I often see my friend who asked this error in the forum. I have not tried it four times over the past few days. I have collected it online for your reference)

 

1. Check whether classpath is set incorrectly: Correct:.; % java_home %/lib/RT. jar; % java_home %/lib/tools. Jar <! -- Java_home is your JDK directory --> 2, this can usually be solved by copying manually $ java_home/lib/tools. jar from the JDK
To the common/lib directory of the Tomcat server, followed by a tomcat restart.
Have you seen it?
Copy lib/tools. Jar under the JDK installation directory to the common/lib directory under the tomcat installation directory, restart tomcat, and try. 3. Set the Tomcat character set to GBK to prevent garbled characters: server in the F:/tomcat 5.0/conf directory. uriencoding = "GBK" For example: <connector uriencoding = "GBK"
Port = "8080" maxthreads = "150" minsparethreads = "25" maxsparethreads = "75"
Enablelookups = "false" redirectport = "8443" acceptcount = "100"
DEBUG = "0" connectiontimeout = "20000"
Disableuploadtimeout = "true"/> 4. Increase the JVM memory usage parameter of Tomcat: Catalina in the F:/tomcat 5.0/bin directory. add set java_opts =-xms256m-xmx512mfor example: The first word is added by us. set java_opts =-xms384m-xmx768m
Set _ execjava = % _ runjava %
Set mainclass = org. Apache. Catalina. startup. Bootstrap
Set action = start
Set security_policy_file =
Set debug_opts =
Set JPDA =

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.