gpt4 book ai didi

java - org.apache.jasper.JasperException :/index. jsp

转载 作者:行者123 更新时间:2023-11-28 23:22:19 25 4
gpt4 key购买 nike

我在 jsp 上使用 usebean 标记,但即使我已尽我所能解决问题,我仍收到以下错误。谁能帮忙 错误如下

类型异常报告

message /index.jsp (line: 1, column: 1) The value for the useBean     
class attribute org.deepak.my is invalid.

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

异常

org.apache.jasper.JasperException: /index.jsp (line: 1, column: 1) 
The value for the useBean class attribute org.deepak.my is invalid.
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:291)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1379)
org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1187)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2444)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2450)
org.apache.jasper.compiler.Node$Root.accept(Node.java:471)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392)
org.apache.jasper.compiler.Generator.generate(Generator.java:3668)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:252)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:372)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:333)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:600)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:368)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

注意 Apache Tomcat/9.0.0.M17 日志中提供了根本原因的完整堆栈跟踪。

最佳答案

如果存在以下情况,请尝试在下面的语句中使用type 而不是class:-
<jsp:useBean id="my" class="org.deepak.my" />

在发布问题之前尝试在 SO 上找到答案,请参阅此 Answer由@BalusC 提供,它将帮助您解决问题。

关于java - org.apache.jasper.JasperException :/index. jsp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41867699/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com