2 hanfengfuxiao12 hanfengfuxiao12 于 2017.12.28 21:59 提问

springboot项目在tomcat启动报错,求解 5C

2017/12/28-21:18:13 [localhost-startStop-1] INFO org.springframework.context.support.DefaultLifecycleProcessor- Starting beans in phase 2147483647
2017/12/28-21:18:13 [localhost-startStop-1] INFO com.ch.tri.SpringBootStartApplication- Started SpringBootStartApplication in 6.201 seconds (JVM running for 9.985)
28-Dec-2017 21:18:13.166 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
28-Dec-2017 21:18:13.173 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/WebIThings-0.0.1-SNAPSHOT] startup failed due to previous errors
2017/12/28-21:18:13 [localhost-startStop-1] INFO org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext- Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@221ff7bd: startup date [Thu Dec 28 21:18:07 CST 2017]; root of context hierarchy
2017/12/28-21:18:13 [localhost-startStop-1] INFO org.springframework.context.support.DefaultLifecycleProcessor- Stopping beans in phase 2147483647
2017/12/28-21:18:13 [localhost-startStop-1] INFO org.springframework.context.support.DefaultLifecycleProcessor- Stopping beans in phase 1073741823
2017/12/28-21:18:13 [localhost-startStop-1] INFO org.springframework.integration.mqtt.inbound.MqttPahoMessageDrivenChannelAdapter- stopped inbound
2017/12/28-21:18:13 [localhost-startStop-1] INFO org.springframework.context.support.DefaultLifecycleProcessor- Stopping beans in phase 0

5个回答

dcxy0
dcxy0   Ds   Rxr 2017.12.28 22:59

就这么多报错信息? 啥都看不出来啊,报错信息贴多一点吧

caopengzh
caopengzh clean project 一下试试
大约 2 个月之前 回复
hanfengfuxiao12
hanfengfuxiao12 报错信息就在两个严重那,日志没有显示更多
大约 2 个月之前 回复
hanpoyangtitan
hanpoyangtitan   2017.12.29 09:02

tomcat 在启动你的应用/WebIThings-0.0.1-SNAPSHOT 时,有个listener没起来,具体原因在log(localhost.log 和 catalina.log/catalina.out)里找找看

qq_40583238
qq_40583238   2017.12.29 10:03

clean下tomcat

sq2006hjp
sq2006hjp   2017.12.29 10:17

试一下clean tomcat哦

roet80736
roet80736   2018.01.01 21:00

是不是应用打成war包的时候,没有加这个依赖

   <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-tomcat</artifactId>
        <scope>provided</scope>
    </dependency>

加上试试

hanfengfuxiao12
hanfengfuxiao12 有这个
大约 2 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!