当我尝试构建我的动态Web项目时,会出现以下日志,我不知道如何解决此问题。有什么帮助?
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
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)
答案 0 :(得分:0)
在您的网络应用程序中,缺少课程sevices.authentication.SessionFilter
。
这意味着:
sevices.authentication.SessionFilter
目录中找不到包含WEB-INF/lib
的类,或者sevices.authentication.SessionFilter
未编译到WEB-INF/classes
文件夹中。确保您的代码编译没有错误并正确部署(WAR文件)。
答案 1 :(得分:-1)
第一个停靠点:我说你的web.xml已经声明了一个过滤器,你在定义中得到了错误的类名