How can I protect password in datasource definition in WildFly? I found link which leads to JBoss 7 version. After path correction I got this error in WildFly:
Exception during createSubject()PBOX000016: Access denied: authentication failed: java.lang.SecurityException: PBOX000016: Access denied: authentication failed
Procedure of datasource password encryption has little difference in WildFly from JBoss 7. Follow the main instruction located here and two notice:
org.picketbox.datasource.security.SecureIdentityLoginModule
Full example: