ConfigureMonitoring throws "java.lang.NoClassDefFoundError: com/tibco/uac/monitor/server/UacHawkConsole" or "java.lang.ClassNotFoundException: com.tibco.uac.monitor.server.UacHawkConsole" exception.

ConfigureMonitoring throws "java.lang.NoClassDefFoundError: com/tibco/uac/monitor/server/UacHawkConsole" or "java.lang.ClassNotFoundException: com.tibco.uac.monitor.server.UacHawkConsole" exception.

book

Article ID: KB0079189

calendar_today

Updated On:

Products Versions
TIBCO Hawk 5.x

Description

While performing create/deploy/undeploy mar file operation using ConfigureMonitoring Utility, it throws following exception :
<------------------------------------------------
com/tibco/uac/monitor/server/UacHawkConsole
java.lang.NoClassDefFoundError: com/tibco/uac/monitor/server/UacHawkConsole
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at com.tibco.hawkconsole.core.HawkMonitor$2.run(HawkMonitor.java:80)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.tibco.uac.monitor.server.UacHawkConsole
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
------------------------------------------------>

Issue/Introduction

ConfigureMonitoring throws "java.lang.NoClassDefFoundError: com/tibco/uac/monitor/server/UacHawkConsole" or "java.lang.ClassNotFoundException: com.tibco.uac.monitor.server.UacHawkConsole" exception.

Environment

Linux,Windows,All

Resolution

The "java.lang.ClassNotFoundException: com.tibco.uac.monitor.server.UacHawkConsole" exception occurs if monitor.jar($TIBCO_HOME\administrator\5.10\lib) file is not loaded by ConfigureMonitoring Utility.

Note that bydefault following property is set in ConfigureMonitoring.tra file:
<--------------
tibco.env.ADMIN_HOME=%TIBCO_ADMIN_HOME_ESC%
--------------->

To resolve this exception,set "tibco.env.ADMIN_HOME" path correctly in ConfigureMonitoring.tra, for example:
<---------------------------
tibco.env.ADMIN_HOME=<TIBCO_HOME>/administrator/5.10
--------------------------->
Please replace <TIBCO_HOME> according to your environment.

 

Additional Information

ConfigureMonitoring,com.tibco.uac.monitor.server.UacHawkConsole,com/tibco/uac/monitor/server/UacHawkConsole