JavaAgent in Lotus Notes 6.5 using axis api gives Exception “No implementation defined for org.apache.commons.logging.LogFactory”

前端 未结 1 792
灰色年华
灰色年华 2020-12-20 04:35

I needed to write a JavaAgent in a Lotus Notes 6.5 DB to access a web service. I used Axis Apache API for this purpose. I created A Java agent and added the jar files of axi

相关标签:
1条回答
  • 2020-12-20 04:50

    I googled with your error message and this is the first hit:

    http://croarkin.blogspot.fi/2010/08/commons-logging-headaches-with-axis.html

    It suggests using a commons-logging.properties file with:

    org.apache.commons.logging.Log = org.apache.commons.logging.impl.Log4JLogger  
    org.apache.commons.logging.LogFactory = org.apache.commons.logging.impl.LogFactoryImpl
    

    or putting this to your code:

    @BeforeClass  
    public static void beforeClass() {  
     System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.Log4JLogger");  
     System.setProperty("org.apache.commons.logging.LogFactory", "org.apache.commons.logging.impl.LogFactoryImpl");  
    }
    

    Probably you've already tried this because it's the first hit with google but just in case...

    0 讨论(0)
提交回复
热议问题