程式啟動時log4j報錯 No Log4j 2 configuration file found
ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2
確實log4j2.xml不在類路徑下,但有在啟動指令碼有設定log4j2.xml的路徑
java -jar ServerStart.jar -Dlog4j.configurationFile=conf/log4j2.xml
原來引數需要設定在 ServerStart.jar的前面
改為
java -jar -Dlog4j.configurationFile=conf/log4j2.xml ServerStart.jar
就好了
相關推薦
程式啟動時log4j報錯 No Log4j 2 configuration file found
ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically p
tomcat部署新的項目啟動時出現報錯信息: Invalid byte tag in constant pool: 15
tomcat 啟動報錯 invalid byte tag in constant pool ......org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15
資料庫啟動時發生報錯,致命錯誤: 無法建立訊號量
目錄 環境 症狀 問題原因 解決方案 環境 系統平臺:Linux x86-64 Red Hat Enterprise Linux 5,Linux x86-64 Red Hat Enterprise Linux 6,Linux x86-64 Red Hat Enterprise
Could not resolve type alias 微服務啟動時的報錯
org.apache.ibatis.type.TypeException: Could not resolve type alias異常 配置mybatis後,啟動,發現丟擲如下異常: 原因:將r
MSYQL啟動時,報錯“系統找不到指定的路徑的”
絕大多數程式猿都不安裝防毒軟體,我裝了還真是個悲劇。mysql安裝成功以後,好長時間都可以正常啟動,突然有一天就啟動不了了,報“系統找不到指定的路徑的”。然後我就先刪除MySQL服務,重新安裝後再啟動。mysqld -removemysqld -installnet star
用記事本編寫第一個Java程式執行時 出現報錯:錯誤: 類helloworld是公共的, 應在名為 helloworld.java 的檔案中宣告 public class helloworld {
在書本上盲人摸象的摸索學習Java,Java環境配置完成,安裝好eclipse後,便興沖沖的去在記事本上編寫第一個Java程式,結果給破了一盆冷水,略懵 public class helloworld {public static void main(St
解決啟動PyCharm,報錯No Python interpreter selected
首先看錯誤資訊: 解決方法: 一、安裝python直譯器(注:我的資源裡上傳了,在官網下載的python3.4.3直譯器—64位) 我的安裝路徑:D:\Python
mac下使用idea匯入springboot專案maven報錯Non-managed pom.xml file found
1. 配置JDK:File - Project Structure - SDKs,點選“+”即可;2. 配置遠端除錯,對於azkaban的遠端除錯,在azkaban-solo-start.sh裡面的Java啟動裡面,新增以下引數"-Xdebug -Xrunjdwp:transport=dt_socket,ad
log4j一直報錯,log4j:WARN No appenders could be found for logger,解決方法
在該應用的classpath即bin資料夾下新建log4j.properties檔案,貼上如下內容: log4j.debug=TRUE log4j.rootLogger=INFO, R log4j.appender.R=org.apache.log4j.R
tomcat關閉時log4j報錯錯出現記憶體洩漏即java.lang.NoClassDefFoundError: org/apache/logging/log4j/message/Parameteriz
專案中使用的log4j做為日誌管理工具,最近發現在關閉tomcat時一直報錯,錯誤截圖如下: 解決方法:log4j在使用前需要初始化init(),在使用完成後同樣需要destory(),在servlet的destory()方法中新增“LogManager.
筆記:Maven啟動報錯 - No goals have been specified for this build.You must specify a valid lifecycle phase
Maven啟動報錯: [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-pr
報錯:log4j:ERROR Category option " 1 " not a decimal integer.
程式碼: package com.zml; import org.apache.log4j.Logger; public class Day01 { private static Logger logger = Logger.getLogger(Day01.class);
React Native打包時,報錯 java.lang.NullPointerException (no error message)
FAILURE: Build failed with an exception. what went wrong? java.lang.NullPointerException (no error message) This Problem created when the
CentOS 7下啟動postfix服務報錯:fatal: parameter inet_interfaces: no local interface found for ::1
pre code found control inter display interface ces tro sed -i ‘s/inet_interfaces = localhost/inet_interfaces = all‘ /etc/postfix/main.c
tf.app.run() 執行結束時,報錯:SystemExit exception: no description
環境:Python3.6.6 + tensorflow-gpu 原始碼如下: import tensorflow as tf def main(): print("hello tf.app.run") if __name__ == '__main__': tf.a
python cmd 啟動python專案報錯:no module named “xxx”
場景:使用pycharm編輯器啟動pyhon專案時可以啟動,但使用cmd啟動時,會報:no module named “xxx”的錯誤,此時,有兩種情況: 1.no module named “xxx”裡的“xxx”是python的庫名; 此時說明引用庫沒成功,可能是因為電腦裡有多個版本的pyth
解決Eclipse 64位啟動時,報jvm.dll錯
這兩天解除安裝了一些軟體,發現eclipse,包括DeveloperStudioShortcut開啟都報錯如下: 在網上找了解決方案: 解決辦法是修改eclipse.ini,在裡面指定VM路徑: -startup plugins/org.eclipse.eq
啟動jupyter notebook時,報錯“Fatal error in launcher: Unable to create process using '"'”
問題描述: 電腦上同時安裝了python2 和python3並且把裡面的python.exe分別改成了python2.exe和python3.exe,在python3下安裝完Jupyter,輸入jupyter notebook時提示Fatal error in l
dubbo啟動報錯 No such extension com.alibaba.dubbo.container.Container by name --spring.output.ansi.enab
dubbo中的 springboot專案啟動報錯內容如下: java.lang.IllegalStateException: No such extension com.alibaba.dubbo.container.Container by name --sp
win7環境下 docker toolbox + swoft框架,掛載本機目錄啟動docker容器,報錯no such container:swoft 無法掛載啟動docker容器
今天開始整理下自己用 docker toolbox + swoft 的一些坑 第一個坑:掛載本機目錄,啟動docker容器 背景: 1、我電腦是win7(64位)系統, 已安裝了docker toolbox; 2、也照著swoft官網(https://doc.s