Java 严重:错误 filterStart ++++ 严重:异常启动过滤器 SessionFilter
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19026828/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
SEVERE: Error filterStart ++++ SEVERE: Exception starting filter SessionFilter
提问by user2793926
When im trying to build my dynamic web project the following logs are coming up and im not sure how to resolve this issue..any help??
当我尝试构建我的动态 Web 项目时,会出现以下日志,我不确定如何解决此问题..有帮助吗?
catalina.2013-09-26.logs
catalina.2013-09-26.logs
SEVERE: Error filterStart
Sep 26, 2013 4:32:47 PM org.apache.catalina.core.StandardContext s.2013tart
SEVERE: Context [/iaf] startup failed due to previous errors
localhost.2013-09-26.logs
本地主机.2013-09-26.logs
Sep 26, 2013 4:32:47 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter SessionFilter
java.lang.ClassNotFoundException: sevices.authentication.SessionFilter
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:249)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Thread.java:679)
采纳答案by DaveH
First port of call : I'd say your web.xml has declared a filter, and you've got the wrong class name in the definition
第一个调用端口:我会说你的 web.xml 已经声明了一个过滤器,而你在定义中得到了错误的类名
回答by Buhake Sindi
In your web application, there is a missing class sevices.authentication.SessionFilter
.
在您的 Web 应用程序中,缺少一个 class sevices.authentication.SessionFilter
。
This means that either:
这意味着:
- The class containing
sevices.authentication.SessionFilter
is not found in yourWEB-INF/lib
directory, OR - Your class
sevices.authentication.SessionFilter
, in your web application, didn't compile intoWEB-INF/classes
folder.
sevices.authentication.SessionFilter
在您的WEB-INF/lib
目录中找不到包含的类,或者- 您
sevices.authentication.SessionFilter
的 web 应用程序中的class没有编译到WEB-INF/classes
文件夹中。
Make sure your code compiles with no errors and deploys correctly (WAR file).
确保您的代码编译无误并正确部署(WAR 文件)。