0 Replies Latest reply on May 15, 2013 4:06 AM by SUVAJIT PAL

    Can not encrypt database password in jboss eap 4.3 server

    SUVAJIT PAL Newbie

      After making changes in Oracle-ds.xml and login-config.xml, in server error is coming like

       

      2013-05-14 15:36:41,338 ERROR [org.jboss.resource.security.AbstractPasswordCredentialLoginModule] The ConnectionManager mbean: jboss.jca:name=ghcXXXX,service=LocalTxCM specified in a ConfiguredIdentityLoginModule could not be found. ConnectionFactory will be unusable!

      2013-05-14 15:36:41,339 ERROR [STDERR] com.vsnl.exception.IllegalInputParameter

      2013-05-14 15:36:41,339 ERROR [STDERR]           at com.vsnl.corp_pos.CommonDatabaseFramework.DataAccessObject.releaseConnection(DataAccessObject.java:217)

      2013-05-14 15:36:41,339 ERROR [STDERR]           at com.vsnl.corp_pos.CommonDatabaseFramework.DataAccessObject.cleanUp(DataAccessObject.java:209)

      2013-05-14 15:36:41,339 ERROR [STDERR]           at com.vsnl.corp_pos.CommonDatabaseFramework.DataBaseFramework.executeSQLQuery(DataBaseFramework.java:665)

      2013-05-14 15:36:41,339 ERROR [STDERR]           at com.vsnl.corp_pos.struts.actions.AjaxAction.getDetails(AjaxAction.java:197)

      2013-05-14 15:36:41,339 ERROR [STDERR]           at sun.reflect.GeneratedMethodAccessor485.invoke(Unknown Source)

      2013-05-14 15:36:41,339 ERROR [STDERR]           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      2013-05-14 15:36:41,339 ERROR [STDERR]           at java.lang.reflect.Method.invoke(Method.java:597)

      2013-05-14 15:36:41,339 ERROR [STDERR]           at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)

      2013-05-14 15:36:41,339 ERROR [STDERR]           at com.vsnl.corp_pos.struts.actions.CorpPOSAction.execute(CorpPOSAction.java:65)

      2013-05-14 15:36:41,339 ERROR [STDERR]           at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)

      2013-05-14 15:36:41,339 ERROR [STDERR]           at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)

      2013-05-14 15:36:41,339 ERROR [STDERR]           at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

      2013-05-14 15:36:41,339 ERROR [STDERR]           at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

      2013-05-14 15:36:41,340 ERROR [STDERR]           at java.lang.Thread.run(Thread.java:619)

       

      Changes done in Oracle-ds.xml is

      <security-domain>EncryptXXXXPassword</security-domain>

       

      Changes done in login-config.xml is

      <application-policy name = "EncryptXXXXPassword">

             <authentication>

                   <login-module code = "org.jboss.resource.security.SecureIdentityLoginModule" flag = "required">

                           <module-option name = "username">irb_app</module-option>

                           <module-option name = "password">-db10ca0cd1a40dfdbnamcm84e75f5</module-option>

                           <module-option name = "managedConnectionFactoryName">jboss.jca:name=ghcXXXX,servce=LocalTxCM</module-option>

                   </login-module>

                  </authentication>

                 </application-policy>

       

      Same changes are working fine in LOCAL system but not working in server.

      Please help me for this issue....