CA Live API Creator: Unable to install using external admin DB

book

Article ID: 103732

calendar_today

Updated On:

Products

CA Live API Creator

Issue/Introduction

Unable to install LAC using external admin database on Apache, ie: Oracle.

When starting the server the below errors will be observed: 

java.lang.RuntimeException: Unable to initialize AdminManager
        at com.kahuna.admin.entity.AdminManager.createDataSource(AdminManager.java:773)
        at com.kahuna.admin.entity.AdminManager.<init>(AdminManager.java:286)
        at com.kahuna.admin.entity.AdminManager.getInstance(AdminManager.java:744)
        at com.kahuna.server.servlet.KahunaServletContextListener.contextInitialized(KahunaServletContextListener.java:170)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1795)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
### Unable to get connection to admin database: Unable to initialize AdminManager
Jul 16, 2018 1:58:12 PM com.kahuna.server.servlet.KahunaServletContextListener contextInitialized

Environment

Release:
Component: APILAC

Resolution

A few steps can be taken to confirm the setup
  1. Confirm the Database server hostname and port in the server.xml file. You can confirm the hostname used is accessible by issuing the following command
telnet <Oracle server name> <port number>

       2.  Make sure the license file is valid
       3. Confirm you have followed the steps detailed in the LAC documentation for configuring an external database
       4. If this still fails revert back to the default configuration and make the changes to the server.xml based on the out of box version.                   This is to avoid any issues with any other configurations in the file. If this works you will need to determine and eliminate the                       offending entries.