为了账号安全,请及时绑定邮箱和手机立即绑定

启动报错ClassNotFoundException LoginFileter ,但是并不影响运行~

启动tomcat就报下面的错误,但是并不影响测试~为什么啊?


严重: Exception starting filter LoginFileter

java.lang.ClassNotFoundException: com.imooc.filter.LoginFilter

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1858)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)

at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:504)

at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:486)

at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:113)

at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)

at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)

at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4908)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5602)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1259)

at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1998)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)


正在回答

1 回答

我知道了!是之前的项目,tomcat里面缓存导致的,把work和webapps目录都清了一下,就ok了!

2 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Struts2入门
  • 参与学习       95062    人
  • 解答问题       456    个

本教程带你踏上Struts2学习之旅,对Struts2进行更深入讲解

进入课程

启动报错ClassNotFoundException LoginFileter ,但是并不影响运行~

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信