Incorrect values entered into VNA JBoss/Wildfly config for HTTPS, unable to correct it with "Failure: WFLYCTL0212: Duplicate Resource" error

book

Article ID: 224028

calendar_today

Updated On:

Products

CA Virtual Network Assurance DX NetOps

Issue/Introduction

An error occurs after following procedure outlined in TechDocs to enable HTTPS in Wildfly/JBoss:

TechDocs : DX NetOps 21.2 VNA : Configure HTTPS in JBoss/WildFly

However, there was an error in the 'add' function where the key-store password was left as that in the doc, not what it actually is:

/subsystem=elytron/key-manager=httpsKM:add(key-store=httpsKS,credential-reference={clear-text=keystorePassword})

When trying to correct this by running the batch again, the system errors out, saying attempting to enter a duplicate resource:

Failure: WFLYCTL0212: Duplicate Resource

Cause

The standalone.xml has been configured with the incorrect deployment and this was blocking an attempt to re-add it with correct values. So need to remove the deployments, then re-enter the correct one.

Environment

DX NetOps 21.2.x VNA set-up to use HTTPS

Resolution

Stop Wildfly:

systemctl stop wildfly

Then, remove the standalone.xml file located under

$VNA_HOME/wildfly/standalone/configuration

This file contains the configuration, so always keep a backup of the original, prior to making any changes.

Replace the standalone.xml with the original, unaltered, default settings file. Then re-enter the batch as per the screenshot:

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=zpR3I2hV/AR5ZC3iUcawRg==

This will the correct batch to run successfully and for Wildfly to be able to access the SSL keystore with the correct password.

Attachments