Installaing Automic Connector failed: Error: Could not find or load main class org.springframework.boot.loader.PropertiesLauncher
search cancel

Installaing Automic Connector failed: Error: Could not find or load main class org.springframework.boot.loader.PropertiesLauncher

book

Article ID: 252432

calendar_today

Updated On:

Products

Automation Analytics & Intelligence

Issue/Introduction

The Automic connector fails to install when executing the script  configure-automic-connector.sh with the following 

 

btama-linux:/opt/automic-connector# ./configure-automic-connector.sh install
If you are planning to make a TLS based connection to AAI then before proceeding
please obtain the connector certificate package from the AAI server
and copy it to ./secure/
Press ENTER to continue...

Error: Could not find or load main class org.springframework.boot.loader.PropertiesLauncher
btama-linux:/opt/automic-connector#

Environment

Release : 6.4.x

Cause

The configure-automic-connector.sh executes the command below. 

java -cp ./automic-connector.jar -Dloader.main=com.broadcom.aai.connector.framework.service.config.ConfigScriptDriver org.springframework.boot.loader.PropertiesLauncher

 

 

The ./automic-connector.jar is a symlink which points to an incorrect version of the automic-connector-X.X.X-plain.jar 

lrwxrwxrwx 1 automic-connector broadcom       56 Oct 17 19:07 automic-connector.jar -> /opt/automic-connector/automic-connector-X.X.X-plain.jar

Resolution

Please recreate the symlink to make sure it is pointing to the correct automic-connector-X.X.X.jar . If the version of the Automic connector is 2.1.3, then the correct jar file is automic-connector-2.1.3.jar.

 

     ln -s /opt/automic-connector/automic-connector-2.1.3.jar automic-connector.jar

 

For example:

cd /opt/automic-connector

rm automic-connector.jar

ln -s /opt/automic-connector/automic-connector-3.0.0.jar automic-connector.jar

chown -h automic-connector:broadcom automic-connector.jar

sudo -u automic-connector ./configure-automic-connector.sh