dynamodb local: ERROR StatusLogger Log4j2 could not find a logging implementation

前端 未结 4 483
面向向阳花
面向向阳花 2021-01-04 04:51

This is the first time that this issue has occurred to me, I have used DynamoDB local on Linux and Mac and most of the time it worked fine, and now I\'m on a different Mac m

4条回答
  •  执念已碎
    2021-01-04 05:11

    How I got this to work is to do the following:

    Extract the contents of the jar file to a seperate folder

    jar xf DynamoDBLocal_Orig.jar
    

    Add the following to the pom.xml

    
        org.apache.logging.log4j
        log4j-to-slf4j
        ${log4j.version}
    

    Edit the META-INF/MANIFEST.MF file and add

    DynamoDBLocal_lib/log4j-core-2.13.3.jar
    

    Compress to a new jar

    jar cmvf META-INF/MANIFEST.MF DynamoDBLocal.jar *
    

    Rename DynamoDBLocal.jar from the base folder to DynamoDBLocal_old.jar

    Move the newly created DynamoDBLocal.jar to the base folder.

    Download the log4j-core-2.13.3.jar from https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core/2.13.3

    Place the log4j-core-2.13.3.jar inside the DynamoDBLocal_lib folder

    Run

    java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
    

提交回复
热议问题