tomcat使用javabean出问题

C、C++和Java语言
回复
haiminwa
帖子: 27
注册时间: 2007-05-15 12:22
送出感谢: 0
接收感谢: 0

tomcat使用javabean出问题

#1

帖子 haiminwa » 2008-03-10 16:43

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: /WebRoot/3.jsp(10,2) The value for the useBean class attribute bean.test is invalid.
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1200)
org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1160)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2399)
org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
org.apache.jasper.compiler.Generator.generate(Generator.java:3372)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:281)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

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



test.class已经拷到WEB-INF/classes去了。tomcat也重启了。请大侠指点一下!
头像
bird
帖子: 765
注册时间: 2006-09-04 10:45
送出感谢: 0
接收感谢: 0
联系:

#2

帖子 bird » 2008-03-10 16:53

message

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

exception

org.apache.jasper.JasperException: /WebRoot/3.jsp(10,2) The value for the useBean class attribute bean.test is invalid.


大概是这个意思把:
服务器内部发生错误,这个错误使得服务器无法得到请求;

查下3.jsp,里面的useBean的test属性是否有效(是否存在)把;

有错误就好调,仔细查查好了……
头像
xuexia0007
帖子: 6
注册时间: 2008-12-21 20:42
送出感谢: 0
接收感谢: 0

Re: tomcat使用javabean出问题

#3

帖子 xuexia0007 » 2008-12-23 19:32

上面的情况我也有,不知道该怎么办!!!
高手指点
水很清,鱼很少,人很多,地很少
回复

回到 “C/C++/Java”