首页 新闻 会员 周边 捐助

采用三层架构完成一个银行转账Demo却总出现500错误,求大佬指教

0
[待解决问题]

十一月 21, 2019 10:56:39 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [com.Myservlet] in context with path [/WEB] threw exception [Servlet execution threw an exception] with root cause
java.lang.NoClassDefFoundError: org/apache/commons/dbutils/QueryRunner
at service.TransferService.Transfer(TransferService.java:13)
at com.Myservlet.doPost(Myservlet.java:34)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:789)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1437)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

四sir的主页 四sir | 菜鸟二级 | 园豆:206
提问于:2019-11-21 23:02
< >
分享
所有回答(2)
0

java.lang.NoClassDefFoundError: org/apache/commons/dbutils/QueryRunner你的类没找到

yytxdy | 园豆:1680 (小虾三级) | 2019-11-22 09:47

我把这个类导入之后还是不行啊

支持(0) 反对(0) 四sir | 园豆:206 (菜鸟二级) | 2019-11-23 16:40
0

这是类定义未找到异常,就是在运行时JVM找不到你这个类:org/apache/commons/dbutils/QueryRunner,原因具体就要看你使用的是什么架构了

ki16 | 园豆:293 (菜鸟二级) | 2019-11-22 14:43
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册