问题描述
本人菜鸟这几天在上SSH,在MyEclipse部署项目有一个出错了,我就把这个删了,可是后来没有打开任何项目,就启动Tomcat也还是会出这个错,是不是tomcat还是会加载那个失败的项目,请问到底怎么让tomcat启动不自动加载那些项目啊,越详细越好,感激不尽。具体出错如下:Exceptionsendingcontextinitializedeventtolistenerinstanceofclassorg.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanDefinitionStoreException:IOExceptionparsingXMLdocumentfromServletContextresource[/WEB-INF/classes/applicationContext.xml];nestedexceptionisjava.io.FileNotFoundException:CouldnotopenServletContextresource[/WEB-INF/classes/applicationContext.xml]Causedby:java.io.FileNotFoundException:CouldnotopenServletContextresource[/WEB-INF/classes/applicationContext.xml]atorg.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:99)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:307)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290)atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)atorg.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)atorg.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:394)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324)atorg.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4429)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)atorg.apache.catalina.core.StandardHost.start(StandardHost.java:722)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)atorg.apache.catalina.core.StandardService.start(StandardService.java:516)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:583)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)atjava.lang.reflect.Method.invoke(UnknownSource)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
解决方案
解决方案二:
换个工作空间试试,将原来项目导入
解决方案三:
引用1楼zhao521zhou的回复:
换个工作空间试试,将原来项目导入
嗯,我把那里面的东西都删了现在好了
解决方案四:
你要到Tomcatwebapps下把项目删除,就OK了~~~
解决方案五:
出错的原因是你的里面的一个项目的spring的配置问题吧。如果你删除了项目肯定可以啦,呵呵
解决方案六:
到TOMCAT里去删掉
解决方案七:
这服务器的问题有些时候确实是挺让人头痛的
解决方案八:
org.springframework.beans.factory.BeanDefinitionStoreException:IOExceptionparsingXMLdocumentfromServletContextresource[/WEB-INF/classes/applicationContext.xml];nestedexceptionisjava.io.FileNotFoundException:CouldnotopenServletContextresource[/WEB-INF/classes/applicationContext.xml]Causedby:java.io.FileNotFoundException:CouldnotopenServletContextresource[/WEB-INF/classes/applicationContext.xml]applicationContext.xml这个文件不存在!