EM Startup ClassNotFoundException (Log4J)
search cancel

EM Startup ClassNotFoundException (Log4J)

book

Article ID: 233459

calendar_today

Updated On:

Products

DX Application Performance Management

Issue/Introduction

At startup of the Enterprise Manager (MoM) there is the following exception:

!ENTRY org.eclipse.osgi 4 0 2022-01-28 09:11:17.840
!MESSAGE Bundle org.springframework.osgi.extender@start not found.
log4j:WARN No appenders could be found for logger (org.eclipse.gemini.blueprint.extender.internal.boot.ChainActivator).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
log4j:ERROR Could not instantiate class [com.wily.apm.tess.supportability.TessPerformanceLogFileAppender].
java.lang.ClassNotFoundException: com.wily.apm.tess.supportability.TessPerformanceLogFileAppender cannot be found by com.wily.log4j_1.2.17
 at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:484)
 at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)

 

Environment

Release : 10.7.0 HF84

Component :

Cause

Hotfix 84 is applied which removes CEM functionality and disables CEM features, the error appears due to latent logging configuration for the TESS perflog

This will only be shown in em.log and will not have a performance or functional impact.

Resolution

In the config folder, open IntroscopeEnterpriseManager.properties and comment out the following properties as shown:

 

### Logging for Tess performance log ###

#log4j.additivity.com.wily.apm.tess.supportability.TessPerformanceCollector=false

#log4j.logger.com.wily.apm.tess.supportability.TessPerformanceCollector=INFO, tessperformance

#log4j.appender.tessperformance=com.wily.apm.tess.supportability.TessPerformanceLogFileAppender

#log4j.appender.tessperformance.layout=com.wily.org.apache.log4j.PatternLayout

#log4j.appender.tessperformance.layout.ConversionPattern=%d{M/dd/yy hh:mm:ss a z},%m%n

#log4j.appender.tessperformance.File=logs/tessperflog.txt

#log4j.appender.tessperformance.MaxSize=4000000