wildfly 40 standalone.xml user-name not set on datasource

27 views
Skip to first unread message

Xavier Rajan

unread,
Jun 4, 2026, 6:34:43 AM (7 days ago) Jun 4
to WildFly
hi everyone 

i have migrate my apps from wildfly 26 to 40.


the following error occured while starting the wildfly 40 server.

WFLYCTL0013: Operation ("internal-model-validation") failed - address: ([]) - Stage: (MODEL) - failure description: "WFLYCTL0380: Attribute 'user-name' needs to be set or passed before attribute 'password' can be correctly set"

how to solve this issue.

regards
Xavier Rajan S

Wolfgang

unread,
Jun 4, 2026, 4:47:08 PM (7 days ago) Jun 4
to WildFly
Hi Xavier,

there was a change in datasource configuration since WildFly 26. In the old version, it looked like this:

<security>
  <user-name>sa</user-name>
  <password>sa</password>
</security>

With current version, it is done like this:

<security user-name="sa" password="sa"/>

Did you update your config?

Hope this helps

Wolfgang
Reply all
Reply to author
Forward
0 new messages