啟動tomcat報錯One or more listeners failed to start,卻找不到任何錯誤日志的臨時解決方案


在整合spring和quartz時,啟動tomcat,服務台報以上錯誤,卻找不到任何錯誤日志……

參考了https://www.cnblogs.com/sxdcgaq8080/p/8005886.html這篇博文,臨時加了一個日志配置文件,將錯誤日志輸出到控制台,總算能看到是什么原因了。目前對日志這一塊用的不熟,先記錄下來這種臨時解決方案,日后再整理。

 

將這個配置文件加在項目的classpath目錄下,然后控制台會輸出具體的錯誤原因

handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler    

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

org.apache.juli.FileHandler.level = FINE    
org.apache.juli.FileHandler.directory = ../logs    
org.apache.juli.FileHandler.prefix = error-debug.    

java.util.logging.ConsoleHandler.level = FINE    
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM