日期:2014-05-20  浏览次数:20928 次

高手指教:jsp中出现The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs异常
在运行jsp时出现以下问题:该怎么解决??请高手指教! 
HTTP Status 500 - 

-------------------------------------------- 

type Exception report 

message 

description The server encountered an internal error () that prevented it from fulfilling this request. 

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 6 in the generated java file 
Syntax error on token ";", delete this token 

Stacktrace: 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) 
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423) 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:317) 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282) 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586) 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs. 


-------------------------------------------- 

Apache Tomcat/6.0.18

------解决方案--------------------
这样还不够详细?在猫的work文件夹里有一个你的项目名称文件夹,你打开就可以看到你现在这个JSP编译的JAVA文件,找到第6行,看是哪里错了。
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.myexception.cn/j2ee/2308.html