Configuring TrueSight Orchestration Repository to use an external database fails with "Error creating bean with name ''"

Version 2
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    BMC Atrium Orchestrator Platform


    BMC Atrium Orchestrator Platform 7.x.xx BMC Atrium Orchestrator Platform 8.x.xx TrueSight Orchestration Platform 8.x.xx


    I have installed a BMC Atrium Orchestrator / TrueSight Orchestration Repository, and I followed the documentation to configure repository.xml and setup the database. When I start the Repository, it fails with this error:

    01 Jan 2018 01:01:01,001 [Thread=localhost-startStop-1] ERROR ContextLoader : Context initialization failed 
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name '' defined in URL [file:/opt/bmc/BAO/Repo/tomcat/webapps/baorepo/WEB-INF/classes/META-INF/applicationContext.xml]: Cannot resolve reference to bean 'agent' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'agent' defined in URL [jar:file:/opt/bmc/BAO/Repo/tomcat/webapps/baorepo/WEB-INF/lib/authentication-8.0.00.jar!/META-INF/applicationContext.xml]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate []: Factory method 'initAgent' threw exception; nested exception is java.lang.NullPointerException: driverClassname must not be null.


    The Repository cannot get the correct driver name, so it cannot establish a connection with the external database.


    Edit repository.xml to specify the "driver" value. Here is an example for an Oracle database:

    <PersistenceManager class="org.apache.jackrabbit.core.persistence.db.OraclePersistenceManager"><param name="driver" value="oracle.jdbc.OracleDriver "/><param name="url" value="" /> <param name="user" value="baouser"/> <param name="password" value="baopass"/> <param name="schema" value="oracle"/> <param name="schemaObjectPrefix" value="${}"/> <param name="externalBLOBs" value="false"/> </PersistenceManager>
    If you have multiple repository.xml files in the folders "[REPO_HOME]\tomcat\webapps\baorepo\WEB-INF\classes\META-INF\" and "[REPO_HOME]\repository\config\", you must add the parameter in both files. After making this change, restart the Repository service. 


    Article Number:


    Article Type:

    Solutions to a Product Problem

      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles