【问题标题】:JSP , javabean and mysqlJSP、javabean和mysql
【发布时间】:2012-12-06 16:58:44
【问题描述】:

您好,我正在处理一个项目,但每当我尝试运行时,我都会收到此错误消息,但我仍然无法找出错误。感谢您的帮助。

HTTP Status 500 -

type Exception report

message

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

exception

javax.servlet.ServletException: The HTTP Monitor server side component intercepted and rethrew an error while processing a JSP or servlet. Please see the stack trace under the root cause message below to identify the problem.

root cause

java.lang.NoClassDefFoundError: JavaBeans/Book

root cause

java.lang.ClassNotFoundException: JavaBeans.Book

note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.2.2 logs.

【问题讨论】:

    标签: jsp jdbc javabeans


    【解决方案1】:

    您很可能已将类命名为

    Java EE 6 与 Glassfish 3
    书。请注意如何命名路径。编译器找不到Book 类。

    【讨论】:

    • 我试图在我的代码中更改名称,但它仍然给我一个错误。这次使用新名称根本原因 java.lang.NoClassDefFoundError: JavaBeans/NewName 根本原因 java.lang.ClassNotFoundException: JavaBeans.NewName
    • 不要只更改 bean 的名称,而是要更改 pom.xml 文件中的路径。您正在使用 Maven,对吗?
    猜你喜欢
    • 1970-01-01
    • 2020-09-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-06
    • 1970-01-01
    相关资源
    最近更新 更多