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 =