新修改了一部分代码后tomcat启动报错 One or more listeners failed to start.
2018-12-13 09:42:09,719
**ERROR: One or more listeners failed to start. Full details will be found in the appropriate container log file**
2018-12-13 09:42:09,720
**ERROR: Context [/ccbmsCLK] startup failed due to previous errors**
2018-12-13 09:42:09,749
解决:
通过排查所修改的代码,发现用@Resource注解方式调用了某个类,
而这个ServerConnManager类中并没有注解;如下;
将”@Resource”注释掉并import、即按照普通方式进行类调用和变量定义即可;
之后启动成功:
2018-12-13 09:48:23,117
INFO: Starting ProtocolHandler ["http-nio-8080"]
2018-12-13 09:48:23,138
INFO: Starting ProtocolHandler ["http-nio-8443"]
2018-12-13 09:48:23,143
INFO: Server startup in 5914 ms