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

来源:-

Adam_Ming

2016-03-23 22:29

启动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回答

  • Adam_Ming
    2016-03-24 18:49:06

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

Struts2入门

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

95061 学习 · 456 问题

查看课程

相似问题