java.lang.ClassNotFoundException:

qq_tma1uy2z Struts2概述 最后由 qq_kiwldh01 于2016年09月30日回复

  • 3 回答
  • 2k 浏览

错误是这样的,是不是因为我的是eclipse而不是myeclipse的原因

java.lang.ClassNotFoundException: com.jikexueyuan.filter.ControlFilter

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

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

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:120)

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:4574)

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

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

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)

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)

BK$BX~%0%HT)B6{BA(5~N_I.png

KUDH)~2BZFS94NCLQR1YY[N.png

  • leothedeveloper 2016年04月30日 回答 #2楼
  • 我也出现了类似的错误,我的原因是<filter-class>com.jikexueyuan.Filter.ControlFilter</filter-class>写成了<filter-class>com.jikexueyuan.filter.ControlFilter</filter-class>

  • 0 评论