Exception in thread "main" java.lang.NoClassDefFoundError: com/tibco/objectrepo/ObjectRepoException

Exception in thread "main" java.lang.NoClassDefFoundError: com/tibco/objectrepo/ObjectRepoException

book

Article ID: KB0079679

calendar_today

Updated On:

Products Versions
TIBCO Hawk -

Description

Error while invoking the mar or ConfigMonitoring utilities from Hawk distribution
-----------
Exception in thread "main" java.lang.NoClassDefFoundError: com/tibco/objectrepo/ObjectRepoException

        at com.tibco.hawk.mar.tool.Launcher.doUpdate(Launcher.java:473)

        at com.tibco.hawk.mar.tool.Launcher.doIt(Launcher.java:429)

        at com.tibco.hawk.mar.tool.Launcher.execute(Launcher.java:108)

        at com.tibco.hawk.mar.tool.Launcher.main(Launcher.java:53)

Caused by: java.lang.ClassNotFoundException: com.tibco.objectrepo.ObjectRepoException

        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

        ... 4 more
-----------
 

Issue/Introduction

Exception in thread "main" java.lang.NoClassDefFoundError: com/tibco/objectrepo/ObjectRepoException

Resolution

Cause:

MAR and ConfigMonitoring utilities from Hawk distribution need TRA setup and they need to edit corresponding TRA to ensure correct TRA_HOME is set.

Resolution:

1. Check the TRA_HOME and TPCL_HOME path is set or not in the mar.tra file.

2. Add the missing Jars from TRA distribution in the extended classpath of the tra file (mar.tra)