标题:[求助]Unable to compile class for JSP
只看楼主
xiaopangod
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2005-10-19
 问题点数:0 回复次数:3 
[求助]Unable to compile class for 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

Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\struts-examples\org\apache\jsp\welcome_jsp.java:7: cannot access java.lang.Object


Generated servlet error:
bad class file: C:\Program Files\Java\jre1.5.0_06\lib\rt.jar(java/lang/Object.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
public final class welcome_jsp extends org.apache.jasper.runtime.HttpJspBase
             ^
1 error



	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
	org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
	org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1000)
	org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:560)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:209)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

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


Apache Tomcat/5.0.28


搜索更多相关主题的帖子: Unable compile JSP class 
2005-12-08 12:59
神vLinux飘飘
Rank: 13Rank: 13Rank: 13Rank: 13
来 自:浙江杭州
等 级:贵宾
威 望:91
帖 子:6140
专家分:217
注 册:2004-7-17
得分:0 
bad class file: C:\Program Files\Java\jre1.5.0_06\lib\rt.jar(java/lang/Object.class)

没有正确设置JAVA平台

淘宝杜琨
2005-12-09 14:50
stephen722
Rank: 1
等 级:新手上路
威 望:1
帖 子:96
专家分:0
注 册:2005-12-9
得分:0 

最烦的就是jsp的异常 和 错误报告了


从街口开始寻找城市里的好去处!
街口网-http://www.
2005-12-09 20:33
xiaopangod
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2005-10-19
得分:0 
谢谢了!
2005-12-26 12:37



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-37282-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.022470 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved