tomcat服务器下webapps文件内添加多个项目,运行后出现某个项目被杀死的
zapoi 2017-12-15 02:03:50 我在tomcat服务器下的webapps里添加了3个应用,运行后,其中两个项目能够运行,有一个我最后添加上去的始终无法运行查看tomcat的打印日志后发现了这样的提示
````
2017-12-15 11:35:49 [localhost-startStop-1:1158] - [DEBUG] Published WebApplicationContext of servlet 'springMVC' as ServletContext attribute with name [org.springframework.web.servlet.FrameworkServlet.CONTEXT.springMVC]
2017-12-15 11:35:49 [localhost-startStop-1:1159] - [INFO] FrameworkServlet 'springMVC': initialization completed in 458 ms
2017-12-15 11:35:49 [localhost-startStop-1:1159] - [DEBUG] Servlet 'springMVC' configured successfully
15-Dec-2017 11:35:49.222 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /app/workplus/apache-tomcat-8.5.11/webapps/local_1 has finished in 2,637 ms
15-Dec-2017 11:35:49.222 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /app/workplus/apache-tomcat-8.5.11/webapps/uniview
15-Dec-2017 11:35:51.259 信息 [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
````
重点出在红色部分,小弟还是java新手,百度了很多方法也是不行,修改了web.xml的配置文件清除了缓存等等。在本地的eclipse里部署运行的话都是可以运行的一到服务器上就出这个问题。