2 hellopqs HelloPQS 于 2016.04.10 14:24 提问

倒入包之后就有问题了

严重: Exception starting filter SecurityFilter
java.lang.ClassNotFoundException: com.hyg.common.filter.SecurityFilter
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:527)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:509)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:137)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:107)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4656)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5312)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
四月 10, 2016 2:19:41 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
四月 10, 2016 2:19:41 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/hotelsys] startup failed due to previous errors
四月 10, 2016 2:19:41 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\新建文件夹\Recv Files\apache-tomcat-7.0.35\apache-tomcat-7.0.35\webapps\manager
四月 10, 2016 2:19:41 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\新建文件夹\Recv Files\apache-tomcat-7.0.35\apache-tomcat-7.0.35\webapps\ROOT
四月 10, 2016 2:19:41 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
四月 10, 2016 2:19:41 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
四月 10, 2016 2:19:41 下午 org.apache.catalina.startup.Catalina start

2个回答

HelloPQS
HelloPQS   2016.04.10 14:27

求助啊 ,login界面都进不去了

wenxuechaozhe
wenxuechaozhe   2016.04.10 14:33

看看你web.xml文件中是否存在这个文件com.hyg.common.filter.SecurityFilter
是不是这个拦截器无法找到,是否是有相应的包没有导入进去。

wenxuechaozhe
wenxuechaozhe 回复HelloPQS: 按ctrl看看这个类是否存在,若不存在,则说明你少jar包或者少这个类
一年多之前 回复
HelloPQS
HelloPQS 有的 <filter> <filter-name>SecurityFilter</filter-name> <filter-class>com.hyg.common.filter.SecurityFilter</filter-class> </filter> <filter-mapping> <filter-name>SecurityFilter</filter-name> <!-- 拦截所有请求 --> <url-pattern>/servlet/*</url-pattern> </filter-mapping>
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!