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个回答

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

caopengzh
caopengzh clean project 一下试试
2 年多之前 回复
hanfengfuxiao12
彼将自然 报错信息就在两个严重那,日志没有显示更多
2 年多之前 回复

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

clean下tomcat

试一下clean tomcat哦

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

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

加上试试

hanfengfuxiao12
彼将自然 有这个
2 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐