cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Wrtiing Error logs into Winodows Event Viewer using CVP in UCCE 8.5

182
Views
0
Helpful
0
Comments
This document was generated from CDN thread

Created by: Binny Mathew on 21-11-2013 08:14:49 AM
Hi,

There is an requirement to capture the error information from the CVP application and log into Windows Event Viewer.
Sample standalone java application was developed which includes the JAR files (in ‘lib’ folder ‘jna’, ‘log4j-1.2.12’, ‘log4jna’ & ‘platform’).  Since it’s a standlone application I copied them into ‘lib’ folder of application.  ‘log4j.properties’ file has a special appender called ‘org.apache.log4jna.nt.Win32EventLogAppender’.  For Testing added DEBUG & ERROR.Add entry into registry as shown: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\Application/demo Note: ‘demo’ should be the value of ‘source’ of appender in log4j.properties file (i.e., in our case log4j.appender.E.source = demo)
This was done and information get logged into Windows Event viewer of ths system. This testing was executed in the command prompt of the VXML Server and same had been working fine.We have used CVP VXML Server 8.5 for testing this application
Developed the sample CVP application with the same logic developed in sample java application but following errors were getting encountered,when we had made test call on the demo applicationFollowing is the error that is getting displayed in the tomcat logs  log4j:ERROR A "org.apache.log4jna.nt.Win32EventLogAppender" object is not assignable to a "org.apache.log4j.Appender" variable.log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR [WebappClassLoader  delegate: false  repositories:----------> Parent Classloader:org.apache.catalina.loader.StandardClassLoader@bc5596] whereas object of type log4j:ERROR "org.apache.log4jna.nt.Win32EventLogAppender" was loaded by [org.apache.catalina.loader.StandardClassLoader@1542a75].log4j:ERROR Could not instantiate appender named "E".
Kindly check and provide your response on below error that is being encountered.Do we have any other alternate approach

ThanksBinny 
CreatePlease to create content