WFLYCTL0476: Value for attribute 'credential-reference' is invalid: either 'clear-text' must be specified on i ts own or 'store' needs to be specified with at least one of 'clear-text' or 'alias'

Solution Verified - Updated -

Issue

[standalone@localhost:9990 /] batch
[standalone@localhost:9990 / #] /subsystem=datasources/data-source=ExampleDS:write-attribute(name=credential-reference.store,value=myCredStore)
[standalone@localhost:9990 / #] /subsystem=datasources/data-source=ExampleDS:write-attribute(name=credential-reference.alias,value=DBpasswd)
[standalone@localhost:9990 / #] /subsystem=datasources/data-source=ExampleDS:undefine-attribute(name=password)
[standalone@localhost:9990 / #] run-batch
The batch failed with the following error (you are remaining in the batch editing mode to have a chance to c
orrect the error):
WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:
Step: step-1
Operation: /subsystem=datasources/data-source=ExampleDS:write-attribute(name=credential-reference.store,value=myCredStore)
Failure: WFLYCTL0476: Value for attribute 'credential-reference' is invalid: either 'clear-text' must be specified on its own 
or 'store' needs to be specified with at least one of 'clear-text' or 'alias'

Environment

  • Red Hat JBoss Enterprise Application Platform (JBoss EAP)
    • 7.4.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content