Unable to access CABI after Windows OS upgrade to CABI server
search cancel

Unable to access CABI after Windows OS upgrade to CABI server

book

Article ID: 218417

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

Jun 28 10:16:33:578 ERROR [attach_socket, org.apache.catalina.core.ContainerBase.[wasp-engine].[localhost].[/cabijs]] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'themeSource' defined in ServletContext resource [/WEB-INF/applicationContext-themes.xml]: Cannot resolve reference to bean 'themeCache' while setting bean property 'themeCache'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'themeCache' defined in ServletContext resource [/WEB-INF/applicationContext-themes.xml]: Cannot resolve reference to bean 'unsecureRepositoryService' while setting bean property 'repositoryService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateRepositoryService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'auditContext' while setting bean property 'auditContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'auditContext' defined in ServletContext resource [/WEB-INF/applicationContext-audit.xml]: Cannot resolve reference to bean 'mtLoggingContextProvider' while setting bean property 'loggingContextProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mtLoggingContextProvider' defined in ServletContext resource [/WEB-INF/applicationContext-multiTenancy.xml]: Cannot resolve reference to bean 'loggingEventsService' while setting bean property 'loggingService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loggingEventsService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'routingMapPro' defined in ServletContext resource [/WEB-INF/applicationContext-audit.xml]: Cannot resolve reference to bean 'accessService' while setting constructor argument with key [TypedStringValue: value [com.jaspersoft.jasperserver.api.logging.access.domain.AccessEvent], target type [class java.lang.Class]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accessService' defined in ServletContext resource [/WEB-INF/applicationContext-events-logging.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext-webapp.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Unexpected exception resolving reference [Root exception is java.lang.RuntimeException: KeystoreManager was never initialized or there are errors while instantiating the instance.]

(Found in the wasp.log on the server where cabi probe (bundled) is installed)

Error in Operator Console:

Environment

Release : 20.3

Component : CA BUSINESS INTELLIGENCE

Cause

The upgrade removed the keystore file from the following directory:

C:\Windows\System32\config\systemprofile

(missing files)

.jrsks
.jsksp

Resolution

This will require a rebuild of the keystore files:

-login to the cabi server
-stop the Nimsoft Robot Watcher service
-backup the C:\Program Files (x86)\Nimsoft\c\buildomatic\build_conf\default\master.properties file
-copy the C:\Program Files (x86)\Nimsoft\c\buildomatic\build_conf\default\master.properties file to C:\Program Files (x86)\Nimsoft\c\buildomatic\default_master.properties
-edit C:\Program Files (x86)\Nimsoft\c\buildomatic\default_master.properties and update the following sections in the document:

# database location and connection settings

dbHost=<IP or Hostname>
dbUsername=sa
dbPassword=<place the clear text password here to login to the database server>

...

dbPort=1433

js.dbName=CA_UIM

webAppNamePro=cabijs
encrypt=true

-save the file
-open a command window (as an administrative user) to C:\Program Files (x86)\Nimsoft\c\buildomatic
-run the following:

set JAVA_HOME="C:\PROGRA~2\nimsoft\c\java\bin"
PATH=%JAVA_HOME%;%PATH%
js-ant gen-config

NOTE: The command will fail if the path is set with long name. The path to the bin directory must be set to the 32bit path.

After you have run this command it will put:

.jrsks
.jsksp

in C:\Windows\System32\config\systemprofile

-open C:\Program Files (x86)\Nimsoft\c\buildomatic\build_conf\default\master.properties which should have been updated with the encryption string after 'dbPassword='.
-make a backup of C:\Program Files (x86)\Nimsoft\probes\service\wasp\webapps\cabijs\META-INF\context.xml
-update C:\Program Files (x86)\Nimsoft\probes\service\wasp\webapps\cabijs\META-INF\context.xml changing the encryption section for each 'password=' with the new value that is listed in C:\Program Files (x86)\Nimsoft\c\buildomatic\build_conf\default\master.properties
-save C:\Program Files (x86)\Nimsoft\probes\service\wasp\webapps\cabijs\META-INF\context.xml 
-start the Nimsoft Robot Watcher service

Attachments