Caused By: java.lang.NoClassDefFoundError: org/apache/log4j/Logger

后端 未结 8 1246
醉酒成梦
醉酒成梦 2020-12-02 22:31

I\'ve got an interesting problem in which the org.apache.log4j.Logger class is not found during runtime. I\'m trying to get authorized and that is where it\'s failing:

8条回答
  •  攒了一身酷
    2020-12-02 22:36

    You can use the following maven dependency in your pom file. Otherwise, you can download the following two jars from net and add it to your build path.

    
        org.slf4j
        slf4j-api
        1.6.4
    
    
    
        org.slf4j
        slf4j-log4j12
        1.6.4
    
    

    This is copied from my working project. First make sure it is working in your project. Then you can change the versions to use any other(versions) compatible jars.

    For AggCat, you can refer the POM file of the sample java application.

    https://github.com/IntuitDeveloperRelations/IPP_Sample_Code/blob/master/CustomerAccountData/Java/AggCatSampleApplication/pom.xml

    Thanks

提交回复
热议问题