Configuring TrueSight Orchestration Repository to use an external database fails with "Error creating bean with name 'com.bmc.repository.server.security.AuthorizationInitializer#0'"

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.


    PRODUCT:

    BMC Atrium Orchestrator Platform


    APPLIES TO:

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



    PROBLEM:

    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 'com.bmc.repository.server.security.AuthorizationInitializer#0' 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 [com.bmc.ao.authentication.services.Agent]: Factory method 'initAgent' threw exception; nested exception is java.lang.NullPointerException: driverClassname must not be null.


    CAUSE:

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


    SOLUTION:

    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="jdbc:oracle:thin:@bao.bmc.com:1521:repository" /> <param name="user" value="baouser"/> <param name="password" value="baopass"/> <param name="schema" value="oracle"/> <param name="schemaObjectPrefix" value="${wsp.name}"/> <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:

    000160091


    Article Type:

    Solutions to a Product Problem



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