我的电脑同时使用两个jdk版本,默认1.7,eclipse使用的是1.8,,由于项目启动时有加载类需要jdk1.8的包,1.7不支持.所以导致项目在eclipse直接能够跑,而在外面的tomcat跑是就出现startup failed due to previous errors的错误. 但是这样的提示信息问题还是表达比较含糊,下面我们开始重新理思绪,通过查看日志来分析原因. 为了调试,我们要获得更详细的日志.可以在WEB-INF/classes目录下新建一个文件叫logging.propert
tomcat启动日志: 08-Jun-2018 09:23:00.445 WARNING [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [349,703] milliseconds. 根本原因是 Se
今天观察tomcat启动日志,有一些以前没注意到的信息: 严重 [main] org.apache.catalina.core.AprLifecycleListener.init An incompatible version [1.2.10] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] 虽然不影响使用,但还是别扭.原因是tomcat可移植运行