NoClassDefFoundError Exception by as-hawk-agent even after including all dependent libraries.
book
Article ID: KB0085094
calendar_today
Updated On:
Products
Versions
TIBCO ActiveSpaces
-
Not Applicable
-
Description
Description: After all necessary libraries has been included in classpath, the as-hawk-agent still throws a java.lang.NoClassDefFoundError: com/tibco/as/space/Metaspace exception.
Symptoms: java.lang.NoClassDefFoundError: com/tibco/as/space/Metaspace at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.getMethod0(Unknown Source) at java.lang.Class.getMethod(Unknown Source) at com.tibco.as.space.agent.HawkAgentConsole.run(HawkAgentConsole.java:589) at com.tibco.as.space.agent.HawkAgentConsole.main(HawkAgentConsole.java:38)
Cause: The value for java.ext.dirs must be double quoted. The command below will report the error: ======== java -Djava.ext.dirs=$TIBCO_RV_HOME/lib/64:$TIBCO_RV_HOME/lib:$TIBCO_HAWK_HOME/lib -jar -verbose as-hawk-agent.jar -metaspace HUB_OPS_KPI -discovery 'tcp://machine-ip?remote=true' -listen 'tcp://machine-ip:51001'
The correct syntax should be: ======== java -Djava.ext.dirs="$TIBCO_RV_HOME/lib/64:$TIBCO_RV_HOME/lib:$TIBCO_HAWK_HOME/lib" -jar -verbose as-hawk-agent.jar -metaspace HUB_OPS_KPI -discovery 'tcp://machine-ip:51001?remote=true' -listen 'tcp://machine-ip:51001'
Issue/Introduction
NoClassDefFoundError Exception by as-hawk-agent even after including all dependent libraries.
Resolution
1). Check if the as-common.jar has been included. 2). Check if the value for java.ext.dirs has proper quotes ("").