【報錯】項目啓動,僅僅報錯 One or more listeners failed to start. Full details will be found in the appropriate c

今天spring4.3.13 項目,整合ActiveMQ的時候,項目啓動在自動部署到tomcat下的時候,不能正常的部署,僅僅報錯以下:java

Connected to server
[2017-12-08 03:57:12,428] Artifact springDemo:war exploded: Artifact is being deployed, please wait...
08-Dec-2017 15:57:13.525 信息 [RMI TCP Connection(3)-127.0.0.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.
08-Dec-2017 15:57:13.553 嚴重 [RMI TCP Connection(3)-127.0.0.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
08-Dec-2017 15:57:13.554 嚴重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
[2017-12-08 03:57:13,565] Artifact springDemo:war exploded: Error during artifact deployment. See server log for details.

並且,此時tomcat下日誌目錄下並無報錯的日誌文件spring

可惡的是,我本身配置的日誌配置文件apache

 

 

解決方案:tomcat

只要是能看到詳細的報錯日誌,要解決問題就迎刃而解了,但是得有日誌文件出來呀app

因此,在classpath:下新建一個logging.properties文件【classpath就是你項目的/目錄下】this

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    

 

 

而後從新啓動項目spa

在你tomcat的logs,目錄下查看日誌文件debug

或直接在console下查看錯誤:日誌

 

 

去解決問題就行了!!!!!!code

相關文章
相關標籤/搜索