过滤器启动失败
严重: 启动过滤器异常 java.lang.NoClassDefFoundError: IllegalName: filter/CharaterEncodingFilter at java.lang.ClassLoader.preDefineClass(ClassLoader.java:654) at java.lang.ClassLoader.defineClass(ClassLoader.java:761) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2394) at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:855) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1327) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1180) at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:545) at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:526) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:150) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:106) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4538) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5181) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 八月 31, 2020 12:04:54 下午 org.apache.catalina.core.StandardContext startInternal 严重: 一个或多个筛选器启动失败。完整的详细信息将在相应的容器日志文件中找到 八月 31, 2020 12:04:54 下午 org.apache.catalina.core.StandardContext startInternal 严重: 由于之前的错误,Context[/filter]启动失败
web.xml配置:
<filter> <filter-name>CharaterEncodingFilter</filter-name> <filter-class>filter/CharaterEncodingFilter</filter-class> </filter> <filter-mapping> <filter-name>CharaterEncodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
源自:过滤器
2-4 过滤器参数化
21
收起
正在回答 回答被采纳积分+1
1回答
2. 从网页搭建入门JavaWeb
- 参与学习 人
- 提交作业 676 份
- 解答问题 9666 个
本阶段将从前端网页搭建入手,到Java Web基础,前后端结合助你完成Java Web小白的蜕变!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星