karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "munishgupta.asr" <munishgupta....@gmail.com>
Subject Win32EventLog Plugin not detected on OSGI KARAF 4.2.2
Date Fri, 01 Mar 2019 13:59:23 GMT
When configured Win32EventLogAppender in OSGI environment getting below
error. 

ERROR Error processing element Win32EventLog ([Appenders: null]):
CLASS_NOT_FOUND 
 
 
 log4j2.xml configuration:
<Win32EventLog name="Win32EventLog" source="Log4jna" application="CustomLog"
eventMessageFile="${dllfile}" categoryMessageFile="${dllfile}">
          <PatternLayout pattern="%-5p %d [%t] %m%n" />
       </Win32EventLog> 
                   
Added dllfile attribute in property (Win32EventLog.dll physical file path)

added below dependency. 

                                <dependency>
            <groupId>org.dblock.log4jna</groupId>
            <artifactId>log4jna-api</artifactId>
            <version>2.0</version>
        </dependency>


Whereas standalone application working fine. Please suggest what I need to
do in case of OSGI?

Regards
Munish




--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Mime
View raw message