Configuring WVTrace debug level tracing with OM Web Viewer
search cancel

Configuring WVTrace debug level tracing with OM Web Viewer

book

Article ID: 13302

calendar_today

Updated On:

Products

Output Management Web Viewer

Issue/Introduction

In order to troubleshoot a problem with OM Web Viewer 12.1, especially for a problem not providing an error message, support may ask you for an OM Web Viewer debug level (debug level WVTrace) trace.

How do I enable and then disable WVTrace debug level tracing in Output Management Web Viewer 12.1?

Environment

  • Output Management Web Viewer 12.1
  • Apache Tomcat®

Resolution

If you are running Web Viewer with a cumulative build 219 or higher, follow these instructions:

Cumulative build 219 was a security update for the log4j vulnerability.  This required changes to the tracing files. Tracing is no longer available for DRAS or CCI.

To turn on tracing

  1. Go to the <Installation location>/config directory, rename all the .cfg files to .old. Download the OmWVTrace.xml with DEBUG turned ON by default only for builds 219 to 251. 
  2. Build 252 introduced the sample OmWVTrace.xml at the <Installation location>/config directory. For builds between 219 to 251, download the attached file in this article and place it inside <Installation location>/config directory. For build 252 and above, the config directory will contain the default OmWVTrace.xml.
  3. Open the OmWVTrace.xml and change all the “ERROR” to “DEBUG”.
  4. Restart Web Viewer.

NOTE: Do not change the file name, as the product code writes the trace logs with the specific file name. 

To turn off tracing

  1. Edit the OmWVtrace.xml file and replace all the DEBUG with ERROR.
  2. Restart Web Viewer.

Note: Tracing impacts the performance of any application; please ensure you turn off the tracing after capturing the required/requested trace logs.

If you are running Web Viewer with a cumulative build 218 or lower, follow these instructions:

  1. Edit your OmWVTrace.cfg file. Assuming system-level external configuration, this is located in the ${CAOMWV12_HOME}/config folder.
  2. Look for =DEBUG or =EXIT log4j.logger lines and uncomment these lines by removing the "#" as the first character of the line.
  3. This will enable low-level tracing in Web Viewer's communications.
  4. Stop and start Tomcat or WebSphere to enable this tracing (or you can wait - changes should be picked up in 5 minutes or so).
  5. Once this tracing is enabled, wait for the next occurrence of the problem.
  6. When the problem occurs, note the approximate time of the problem and the user ID.  Or attempt a fresh login while noting the time and the userid.
  7. Then, locate and send to us the wvtrace.log file (in the ${CAOMWV12_HOME}/logs folder).
  8. Also, send the DRAS and Tomcat or WebSphere log files for the same test.
  9. Reverse the changes made above when testing is complete to return to a standard logging level. 

Additional Information

Following is an example of how change your OmWVTrace.cfg file. 

C:\Program Files\CA\CA_OM_Web_Viewer\apache-tomcat-7.0.54\webapps\CAOMWebViewer12\config\

OMWVTrace.cfg

#

# Set the categoryFactory to OmTrace category factory.

#

log4j.loggerFactory=com.ca.erm.webviewer.util.OmTraceFactory

#

# Setup the default appender object.  Set the root/default trace priority.

#

 

#log4j.category.com.ca.erm.webviewer=ERROR, A3, stdout

log4j.category.com.ca.erm.webviewer=ERROR, A3  <<== change this from ERROR to DEBUG

log4j.additivity.com.ca.erm.webviewer=false

 

log4j.appender.stdout=org.apache.log4j.ConsoleAppender

log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

 

#log4j.rootCategory=FATAL,A3

#

log4j.appender.A3=org.apache.log4j.DailyRollingFileAppender

log4j.appender.A3.DatePattern='.'yyyy-MM-dd

log4j.appender.A3.File=${JDRAS_HOME}/logs/wvtrace.log

log4j.appender.A3.layout=org.apache.log4j.PatternLayout

log4j.appender.A3.layout.ConversionPattern=%-5p %d{DATE} [%t] %c: %m%n

#

# Appender for rolling file appender.

#

log4j.appender.R3=org.apache.log4j.DailyRollingFileAppender

log4j.appender.R3.DatePattern='.'yyyy-MM-dd

log4j.appender.R3.File=${JDRAS_HOME}/logs/wvtraceroll.log

log4j.appender.R3.layout=org.apache.log4j.PatternLayout

log4j.appender.R3.layout.ConversionPattern=%-5p %d{DATE} [%t] %c: %m%n

#

# Appender for NT file system appender

#

log4j.appender.NT3=org.apache.log4j.nt.NTEventLogAppender

log4j.appender.NT3.layout=org.apache.log4j.PatternLayout

log4j.appender.NT3.layout.ConversionPattern=%-5p %d{DATE} [%t] %c: %m%n

 

 

#

# Set the priority of "com.ca.omgmt" for default tracing.

# Priorities are from lowest to highest: EXIT, ENTRY, DEBUG, INFO, WARN, ERROR, FATAL

# Priorities greater than or equal to that specified are printed.

# EXIT and ENTRY priorities are defined in com.ca.erm.webviewer.util.OmTraceLevel.

#

# Since we set OmTraceFactory as the category factory.

#

log4j.logger.com.ca.erm.webviewer=ERROR#com.ca.erm.webviewer.util.OmTraceLevel <<== change this from ERROR to DEBUG

Log4j Tracing with Apache Tomcat

To temporally debug Log4j, add the following the following parameter to the Tomcat startup:

-Dlog4j.debug

Attachments

OmWVTrace.xml get_app