1 Reply Latest reply on Jun 2, 2015 6:07 AM by Tomaz Cerar

    DataSource password encryption in EAP 6.1.1

    DEBANJAN CHATTERJEE Newbie

      Hi Team

       

      I am trying to implement the password encryption for data source in JBOSS EAP 6.1.1.

       

      I have encrypted the password and then have done the configuration in Standalone-full.xml like below.

       

      Added security domain

       

      <security-domain name="encrypted-ds" cache-type="default">
          <authentication>
              <login-module code="org.picketbox.datasource.security.SecureIdentityLoginModule" flag="required">
                  <module-option name="username" value="USERNAME"/>
                  <module-option name="password" value="ENCRYPTEDPASSWORD"/>
                  <module-option name="managedConnectionFactoryName" value="jboss.jca:service=<SID Name>,name=<DatasourceName as per standalone-full.xml>"/>
              </login-module>
          </authentication>
      </security-domain>

       

      Datasource configuration in standalone-full.xml

      <security-domain>encrypted-ds</security-domain>

       

      Running the sserver as ./standalone.sh -c standalone-full.xml -b 0.0.0.0

       

      Getting the following error.

      01:28:19,914 ERROR [org.jboss.as.server] (Controller Boot Thread) JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration

              at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              at org.jboss.as.server.ServerService.boot(ServerService.java:308) [jboss-as-server-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:188) [jboss-as-controller-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

      Caused by: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module org.jboss.as.jalxrs

              at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:154) [jboss-as-controller-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_4(StandaloneXml.java:424) [jboss-as-server-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:136) [jboss-as-server-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:103) [jboss-as-server-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final-redhat-2.jar:1.1.0.Final-redhat-2]

              at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final-redhat-2.jar:1.1.0.Final-redhat-2]

              at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133) [jboss-as-controller-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              ... 3 more

      Caused by: java.util.concurrent.ExecutionException: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module

              at java.util.concurrent.FutureTask.report(FutureTask.java:122) [rt.jar:1.7.0_45]

              at java.util.concurrent.FutureTask.get(FutureTask.java:188) [rt.jar:1.7.0_45]

              at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:146) [jboss-as-controller-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              ... 9 more

      Caused by: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module

              at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:195) [jboss-as-controller-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              at org.jboss.as.controller.parsing.ExtensionXml.access$000(ExtensionXml.java:68) [jboss-as-controller-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:126) [jboss-as-controller-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:123) [jboss-as-controller-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_45]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

              at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

              at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final-redhat-1.jar:2.1.0.Final-redhat-1]

      Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.as.jalxrs:main

              at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:224) [jboss-modules.jar:1.2.2.Final-redhat-1]

              at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:177) [jboss-as-controller-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              ... 8 more

       

       

      01:28:19,914 ERROR [org.jboss.as.server] (Controller Boot Thread) JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration

              at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141)

              at org.jboss.as.server.ServerService.boot(ServerService.java:308) [jboss-as-server-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:188)

              at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

      Caused by: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module org.jboss.as.jalxrs

              at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:154)

              at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_4(StandaloneXml.java:424) [jboss-as-server-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:136) [jboss-as-server-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:103) [jboss-as-server-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

              at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)

              at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)

              at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133)

              ... 3 more

      Caused by: java.util.concurrent.ExecutionException: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module

              at java.util.concurrent.FutureTask.report(FutureTask.java:122) [rt.jar:1.7.0_45]

              at java.util.concurrent.FutureTask.get(FutureTask.java:188) [rt.jar:1.7.0_45]

              at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:146)

              ... 9 more

      Caused by: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module

              at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:195)

              at org.jboss.as.controller.parsing.ExtensionXml.access$000(ExtensionXml.java:68)

              at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:126)

              at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:123)

              at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_45]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

              at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

              at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.as.jalxrs:main

              at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:224) [jboss-modules.jar:1.2.2.Final-redhat-1]

              at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:177)

              ... 8 more

       

       

      01:28:19,939 FATAL [org.jboss.as.server] (Controller Boot Thread) JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

      01:28:19,939 FATAL [org.jboss.as.server] (Controller Boot Thread) JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.