You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by "munishgupta.asr" <mu...@gmail.com> on 2019/03/01 13:51:48 UTC

Win32EventLog Plugin not detected on OSGI KARAF 4.2.2

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 (Win32EventLogAppender.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