但行好事
莫论前程❤

启应用的时候日志卡在加载applicationContext.xml和remoting-servlet,xml那里不动了

报错信息如下:

2020-03-31 16:03:42 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.net.ConnectException: Connection timed out: connect
java.net.ConnectException: Connection timed out: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at org.apache.catalina.startup.Embedded.start(Embedded.java:846)
    at nc.bs.foundation.server.StartServer.main(StartServer.java:29)
2020-03-31 17:18:59 ERROR [nc.bs.foundation.remoting.RemoteCallServlet] Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/remoting-servlet.xml]; nested exception is java.net.ConnectException: Connection timed out: connect
java.net.ConnectException: Connection timed out: connect

问题描述

当启动服务时,日志停留在加载applicationContext.xml配置文件处

当启动服务时,日志停留在加载remoting-servlet.xml配置文件处

weblogic部署应用的时候,

启动服务日志停留在加载applicationContext.xml配置文件或remoting-servlet.xml配置文件处

原因:

xml标头错了

 <!-- 正确的 -->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
 <!-- 报错的 -->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
赞(1) 打赏
未经允许不得转载:刘鹏博客 » 启应用的时候日志卡在加载applicationContext.xml和remoting-servlet,xml那里不动了
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!

 

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏