标签:web
一.错误信息:
2015-7-1 9:15:25 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
2015-7-1 9:15:25 org.apache.catalina.core.StandardContext listenerStart
严重: Error configuring application listener of class com.conbaoweb.ContextInit
java.lang.ClassNotFoundException: com.conbaoweb.ContextInit
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:142)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4854)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
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:1120)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1678)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
2015-7-1 9:15:25 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
2015-7-1 9:15:25 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart
2015-7-1 9:15:25 org.apache.catalina.core.StandardContext startInternal
严重: Context [/conbaoweb] startup failed due to previous errors
2015-7-1 9:15:25 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\tomact\apache-tomcat-7.0.47\webapps\conbaoweb.myeclipse.bak
_________________________________________________________________________________________________________________________________
二.解决方案:
①整个6月都没有进入myeclipse,完全没有管这个项目,7月的第一天直接启动项目,出现了这个错误。在网上找了半天解决方案后,未果,于是直接拷贝了同组的小伙伴的代码。。。
②后来在project->clear后,再次出现了这个问题。
于是认识到了这个问题必须斩草除根,治标也要治本。
网上给的解决方案一般是两种:
a)的确是你的web.xml文件的确写错了
b)重新引入spring-web jar包。项目右键->bulid path->libraries中重新引入这个包。
版权声明:本文为博主原创文章,未经博主允许不得转载。
Error configuring application listener of class com.conbaoweb.ContextInit
标签:web
原文地址:http://blog.csdn.net/chentravelling/article/details/46706635