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的时候就会出现上述错误。

相关文章:

  • 2021-12-15
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2021-06-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2021-08-01
  • 2022-12-23
相关资源
相似解决方案