启动tomcat 停止在信息: Initializing Spring root WebApplicationContext

本文介绍了在Eclipse Luna环境中启动Tomcat 8遇到的问题及解决办法。主要问题为Tomcat启动过程中停留在“Initializing Spring root WebApplicationContext”阶段,原因是未启动DB2数据库。通过延长server启动超时时间并确保DB2运行正常,最终成功启动Tomcat。

在eclipse( luna版)中,启tomcat8,停止在

信息: Initializing Spring root WebApplicationContext

犯的低级错误,没启动db2数据,一直等待,把db2启动后,再启动正常。

 

这个问题之前,tomcat 启动超时45,把server启动timeouts-start改为450,之后,就一直停留在

信息: Initializing Spring root WebApplicationContext

代码报错六月 10, 2025 9:51:26 上午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-8080"] 六月 10, 2025 9:51:26 上午 org.apache.catalina.core.StandardService startInternal 信息: Starting service Tomcat 六月 10, 2025 9:51:26 上午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.47 六月 10, 2025 9:51:28 上午 org.apache.catalina.core.ApplicationContext log 信息: No Spring WebApplicationInitializer types detected on classpath 六月 10, 2025 9:51:28 上午 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. 六月 10, 2025 9:51:31 上午 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.UnsatisfiedDependencyException: Error creating bean with name 'bookService': Unsatisfied dependency expressed through field 'bookMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bookMapper' defined in file [D:\ideaworkspace\BookManagementSystem2\target\classes\com\example\book\dao\BookMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\ideaworkspace\BookManagementSystem2\target\classes\mapper\BookMapper.xml]'; nested exception is java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.example.book.dao.
06-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值