Java error while running MDB Admin Console 12.8
search cancel

Java error while running MDB Admin Console 12.8


Article ID: 17904


Updated On:


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


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

       MDB Admin Console (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 Source)
        at ca.itcm.mdbac.console.Main.main(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.apache.log4j.BasicConfigurator
        at$ Source)
        at$ Source)
        at Method)
        at 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



CA Client Automation - All Versions


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 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 (0)
testing connection
terminated successfully [0]