您的位置:首页技术文章
文章详情页

java.lang.ClassNotFoundException: com.zj.servlet.DensityServlet

【字号: 日期:2024-01-01 08:58:57浏览:16作者:猪猪

问题描述

之前程序运行的好好的,现在突然报错java.lang.ClassNotFoundException: com.zj.servlet.DensityServlet

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1275)at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1109)at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:520)at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:501)at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:118)at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1050)at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:779)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:133)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:495)at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:767)at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1347)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)

问题解答

回答1:

这是一个很基础的异常信息,信息提示也很明确,程序在classpath路径下找不到com.zj.servlet.DensityServlet这个类,因此加入包含这个类的jar包即可。

回答2:

没有找到 com.zj.servlet.DensityServlet 排查一下是不是缓存的原因

标签: java
相关文章: