java - tomcat加载上工程之后,启动就报这个错误,改了一个上午了,还是解决不了!
PHPz
PHPz 2017-04-18 09:45:54
0
8
645

信息: Deploying web application directory D:apache-tomcat-7.0.42webappszeus
八月 08, 2016 11:51:21 上午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter filter
java.lang.ClassNotFoundException: filter.Filter

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.<init>(ApplicationFilterConfig.java:107)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)
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:1113)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
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)

八月 08, 2016 11:51:21 上午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
八月 08, 2016 11:51:21 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/zeus] startup failed due to previous errors
八月 08, 2016 11:51:21 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-9080"]
八月 08, 2016 11:51:21 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
八月 08, 2016 11:51:21 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 709 ms

之前一直挺好的,关机再打开就出现这个错误了,哪位有解决方案。。

PHPz
PHPz

学习是最好的投资!

reply all(8)
PHPzhong

The error has already told you, java.lang.ClassNotFoundException: filter.Filter。你看看web.xml里有没有定义filter.Filter,classpath里有没有filter.Filterthis class.

阿神

filter.Filter is a class you defined yourself? Where to reference this class, but can’t find it

左手右手慢动作

GenerallyClassNotFoundExceptioneither the jar package is not added or the jar package conflicts

小葫芦

Check whether there is filter configuration in the configuration file, or there is no such Filter class under this filter package

PHPzhong

Clean the project and try starting it again.

小葫芦

There is a problem with the Project configuration file, clean the project, recheck the configuration of the filter class and rebuild. Good Luck.

迷茫

ClassNotFoundException For this kind of problem, you should first check whether there is such a class in the running environment (not in your eclipse, but on the deployed tomcat server). Maybe the jar package has not been synchronized. If it does not exist in tomcat, clean and publish it again until it exists, and then start it again

Ty80

I don’t know where to start

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template