Exception starting filter encodingFilter


报错信息如下(我已经在web.xml配置了filter):


    
    
    
    
  1. java.lang.ClassNotFoundException: org.springframework.web.filter.CharacterEncodingFilter
  2. at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1324)
  3. at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1177)
  4. at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java: 550)
  5. at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java: 531)
  6. at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java: 150)
  7. at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java: 258)
  8. at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java: 105)
  9. at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java: 4603)
  10. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java: 5210)
  11. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java: 150)
  12. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java: 1396)
  13. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java: 1386)
  14. at java.util.concurrent.FutureTask.run(FutureTask.java: 266)
  15. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1142)
  16. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java: 617)
  17. at java.lang.Thread.run(Thread.java: 745)


解决方法一:



完成这三步启动 tomcat 问题就解决了。

参考原文地址:http://blog.sina.com.cn/s/blog_8ced01900101ba3f.html


你可能感兴趣的:(学习)