Could not refresh JMS Connection for destination 'ac_server_to_server_broadcast'
search cancel

Could not refresh JMS Connection for destination 'ac_server_to_server_broadcast'

book

Article ID: 133612

calendar_today

Updated On: 10-07-2023

Products

CA Virtual Privilege Manager CA Privileged Identity Management Endpoint (PIM) CA Privileged Access Manager (PAM)

Issue/Introduction

On Red Hat Enterprise Linux, ActiveMQ is not starting with the following in wrapper.log.

Could not refresh JMS Connection for destination 'ac_server_to_server_broadcast' - retrying using FixedBackOff{interval=5000, currentAttempts=2, maxAttempts=unlimited}. Cause: Could not create Transport. Reason: java.io.IOException: Broker named '<HOST or FQDN>' does not exist.


Environment

PIM 14 and above.

Cause

ActiveMQ is running under openjdk instead of the oracle jdk installed with the 3rd party components.


You can check if this is the case by executing:

ps aux | grep com.ca.activemqBroker.ActivemqBroker

If openjdk is the cause, this will return something like:

root 5175 14.7 2.5 7951868 313736 ? Sl 11:03 0:11 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-2.b14.el7.x86_64/jre/bin/java -Dactivemq.home=.. ... etc etc ... com.ca.activemqBroker.ActivemqBroker

Resolution

Need to make sure that it uses the same java VM as other PIM components - the java vm installed with the 3rd party components. 

The suggested way to achieve this is documented in the manual:

https://docops.ca.com/ca-privileged-identity-manager/14-0/en/implementing/install-the-enterprise-management-server/prepare-the-server

Pay particular attention to step 7.d.ii:

'Append the JDK/bin path to the system PATH. 

For example, to set the path "/usr/java/jdk1.8.0_101/" using the bash shell, enter the following command:

# export PATH=/usr/java/jdk1.8.0_101/bin:$PATH

However, this will make oracle java the default for the entire system. If you just want to set oracle jdk for ActiveMQ (as is done for other PIM components) you can set wrapper.java.command=/usr/java/jdk1.8.0_101/bin/java in wrapper.conf.