Java error while running MDB Admin Console 12.8
search cancel

Java error while running MDB Admin Console 12.8

book

Article ID: 17904

calendar_today

Updated On:

Products

CA Automation Suite for Data Centers - Configuration Automation CA Client Automation - Asset Management CA Client Automation - IT Client Manager CA Client Automation CA Client Automation - Remote Control CA Client Automation - Asset Intelligence CA Client Automation - Desktop Migration Manager CA Client Automation - Patch Manager

Issue/Introduction

The following error occurs when trying to run MDB Admin Console 12.8 using the command 'mdbac':

       MDB Admin Console  12.8.0.8 (0)
        Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/BasicConfigurator
        at ca.itcm.mdbac.api.MdbacLogger.setLoggerDefaultProperties(Unknown Source)
        at ca.itcm.mdbac.api.MdbacLogger.getLoggerObject(Unknown Source)
        at ca.itcm.mdbac.console.Main.run(Unknown Source)
        at ca.itcm.mdbac.console.Main.main(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.apache.log4j.BasicConfigurator
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 4 more

 



Environment

CA Client Automation - All Versions
 

Resolution

The error occurs due to the wrong version of Hibernate files.

MDB Admin Console requires hibernate-3.2. The hibernate-3.2 folder should be under the C:\Program Files (x86)\CA\DSM\MDB AdminConsole\lib folder. JAVA_HOME=C:\Program Files (x86)\Java\jre7
JAVA_CMD=C:\Program Files (x86)\Java\jre7\bin\java.exe
  • Install the MDB Admin Console.
    Default location: C:\Program Files (x86)\CA\DSM\MDB AdminConsole
  • Copy the hibernate-3.2 to this folder:
    C:\Program Files (x86)\CA\DSM\MDB AdminConsole\lib
  • Check the mdbac.properties for the connection parameters.
  • Test the MDBAC connection by running the command:
    C:\Program Files (x86)\CA\DSM\MDB AdminConsole>mdbac -testcon -target msql-localhost -user ca_itrm -pwd NOT_changedR11
If the connection is successful the following should be displayed.
MDB Admin Console 12.8.0.8 (0)
testing connection
terminated successfully [0]