这个错误应该怎样解决呢?都搞了一天了,还没解决。
十二月 19, 2013 5:13:49 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_03\bin;C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin
十二月 19, 2013 5:13:50 下午 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
十二月 19, 2013 5:13:50 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 690 ms
十二月 19, 2013 5:13:50 下午 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
十二月 19, 2013 5:13:50 下午 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.37
十二月 19, 2013 5:13:50 下午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
十二月 19, 2013 5:13:50 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
十二月 19, 2013 5:13:50 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory GoogleBrowse
十二月 19, 2013 5:13:50 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory HelloWorld
十二月 19, 2013 5:13:50 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory JQuery
十二月 19, 2013 5:13:51 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory JQuery.myeclipse.bak
十二月 19, 2013 5:13:51 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory myEdition
十二月 19, 2013 5:13:52 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
十二月 19, 2013 5:13:53 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/web-inf/classes/applicationContext.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/web-inf/classes/applicationContext.xml]
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:465)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:395)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/web-inf/classes/applicationContext.xml]
at org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:117)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
... 36 more
十二月 19, 2013 5:13:53 下午 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
十二月 19, 2013 5:13:53 下午 org.apache.catalina.core.StandardContext start
严重: Context [/myEdition] startup failed due to previous errors
十二月 19, 2013 5:13:53 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
十二月 19, 2013 5:13:53 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
十二月 19, 2013 5:13:53 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory Test
十二月 19, 2013 5:13:53 下午 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
十二月 19, 2013 5:13:53 下午 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
十二月 19, 2013 5:13:53 下午 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/31 config=null
十二月 19, 2013 5:13:53 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 3494 ms
[解决办法]
web-info/classes/applicationContext.xml
[解决办法]
把你的web-inf目录改成大写的WEB-INF
[解决办法]
applicationContext.xml放到src目录下进行编译
[解决办法]
Spring配置文件里面有问题啊
看一下配的Action,Services,dao是不是那里重了,类路径搞错了
[解决办法]
http://www.cnblogs.com/albert1017/archive/2012/08/14/2638226.html
或者,重新换一个tomcat吧
[解决办法]
换个猫试试先
[解决办法]
楼主这问题应该是spring没配置好 applicationContext.xml 的路径。
在web.xml中加上这个:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext*.xml</param-value>
</context-param>
或者把 applicationContext.xml 放到WEB-INF下,因为spring默认加载,是在WEB-INF下找 applicationContext.xml