Hawk agent will not start with "class org.apache.log4j.LogManager not found" exception.

Hawk agent will not start with "class org.apache.log4j.LogManager not found" exception.

book

Article ID: KB0092753

calendar_today

Updated On:

Products Versions
TIBCO ActiveSpaces -
Not Applicable -

Description

Description:
Hawk agent will not start. Error reported:

[FATAL] Failed to start the Hawk MicroAgents: class org.apache.log4j.LogManager not found.


Symptoms:
Hawk agent throws exception, "class org.apache.log4j.LogManager not found".
Cause:
Mismatch in the class path. 

Issue/Introduction

Hawk agent will not start with "class org.apache.log4j.LogManager not found" exception.

Resolution

as-hawk-agent.jar file needs to point to log4j jar in the "<AS_HOME>/2.1/asmm/lib" folder .

 

c:/tibco/as/2.1/asmm/lib -jar as-hawk-agent.jar

Modified path:

export LD_LIBRARY_PATH=$AS_HOME/lib:/apps/tq02/tibco/as/2.1/asmm/lib

java -d64 -D java.ext.dirs=$RV_HOME/lib/64:$RV_HOME/lib:$HAWK_HOME/lib -jar $AS_HOME/lib/as-hawk-agent.jar

Additional Information