cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FlexNet Code Insight 2017 R2 fails to start after replacing the codeinsight.key file

FlexNet Code Insight 2017 R2 fails to start after replacing the codeinsight.key file

Summary

This article documents the procedure for swapping the codeinsight.key file in FlexNet Code Insight 2017 R2

Synopsis

An error is thrown after changing the codeinsight.key file for FlexNet Code Insight 2017 R2 and restarting tomcat. The error is similar to the following:

06-Nov-2017 13:39:45.766 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/flexera/FlexNetCodeInsight/tomcat/webapps/codeinsight
2017-11-06 13:39:55 INFO [localhost-startStop-1] [ConfigurationBeanFactory] Loading properties file from class path resource [core.db.common.properties]
2017-11-06 13:39:55 INFO [localhost-startStop-1] [ConfigurationBeanFactory] Loading properties file from class path resource [core.common.properties]
2017-11-06 13:39:55 INFO [localhost-startStop-1] [ConfigurationBeanFactory] Loading properties file from class path resource [core.ldap.common.properties]
2017-11-06 13:39:55 INFO [localhost-startStop-1] [ConfigurationBeanFactory] Loading properties file from URL [file:/home/flexera/FlexNetCodeInsight/config/core/core.db.properties]
2017-11-06 13:39:55 ERROR [localhost-startStop-1] [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'propertyConfigurer' defined in class path resource [app-core-context.xml]: Invocation of init method failed; nested exception is org.jasypt.exceptions.EncryptionOperationNotPossibleException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors

Discussion

This is caused by the way the product attempts to read the database password from the core.db.properties file

Workaround

Please use the following instructions to change your codeinsight.key to ensure tomcat can start correctly:

1. Shut down tomcat using the shutdown.sh script (shutdown.bat on Windows)
2. Replace the codeinsight key in the FlexNet Code Insight installation directory
3. Open the core.db.properties file in a text editor. This file is available from <FlexNet Code Insight>\config\core\core.db.properties
4. Replace the encrypted value in the 'db.password=' entry with the plaintext password for your database
5. Save and close the core.db.properties file
6. Start tomcat using the startup.sh script (startup.bat on Windows)
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Jun 01, 2018 02:17 AM
Updated by: