tomcat启动出现 org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to p

时间:2024-04-13 19:24:16

tomcat启动出现 org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors错误


版权声明:本文为博主原创文章,未经博主允许不得转载。

今天在学习简单的spring框架的时候,在web项目中引入了基本的jar包以及配置,使用tomcat启用的使用报
org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors错误,如下图:
tomcat启动出现 org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to p

原因:经检查发现web.xml配置的spring的classpath配置路径不对

原来配置中:

configLocation
classpath:springstudy.myspring4.webdemo.beans.xml

中的classpath应该改成
classpath:springstudy/myspring4/webdemo/beans.xml
否则的话使用tomcat启用加载web.xml的时候就会出现上述错误。