0 Replies Latest reply on Nov 10, 2011 3:23 AM by vairam S

    Jboss Security Login Configuration

    vairam S Newbie

      Can anyone tell solution for the below problem.

       

      [10:08] 2011-11-09 12:23:36,233 ERROR [org.jboss.resource.security.AbstractPasswordCredentialLoginModule] The ConnectionManager mbean: jboss.jca:name=REPORTwDS,service=LocalTxCM specified in a ConfiguredIdentityLoginModule could not be found. ConnectionFactory will be unusable!

      2011-11-09 12:23:36,233 INFO  [STDOUT] Exception in setCarGrid method==>java.lang.SecurityException: Invalid authentication attempt, principal=null

      2011-11-09 12:23:36,233 ERROR [STDERR] java.lang.SecurityException: Invalid authentication attempt, principal=null

      2011-11-09 12:23:36,233 ERROR [STDERR]  at org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubject(BaseConnectionManager2.java:589)

      2011-11-09 12:23:36,233 ERROR [STDERR]  at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:395)

      2011-11-09 12:23:36,233 ERROR [STDERR]  at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)

      2011-11-09 12:23:36,233 ERROR [STDERR]  at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)

      2011-11-09 12:23:36,233 ERROR [STDERR]  at lrp.contract.carinbox.Bean.CarInboxBean.setCarGrid(CarInboxBean.java:79)

       

      **We are using the below configuration**

      amssql-ds.xml

      <!--<jndi-name>REPORTWDS</jndi-name>

      <connection-url>jdbc:sqlserver://xxx.xxx.xxx.xxx:1433;DatabaseName=MSP;SelectMethod=direct</connection-url>

      <driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class> 

      <security-domain>EncryptReportwdsDBPassword</security-domain> 

      <min-pool-size>10</min-pool-size>

      <max-pool-size>500</max-pool-size>

      <blocking-timeout-millis>10000</blocking-timeout-millis>  

      <idle-timeout-minutes>2</idle-timeout-minutes>  

      <prepared-statement-cache-size>1000</prepared-statement-cache-size>

      <transaction-isolation>TRANSACTION_READ_UNCOMMITTED</transaction-isolation>

      <metadata>

      <type-mapping>MS SQLSERVER2000</type-mapping>

      </metadata> -->

       

      login-config.xml

      <!--

      <application-policy name="EncryptREPORTWDSDBPassword">

      <authentication>

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

      <module-option name = "principal">user</module-option>

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

      <module-option  name="password">2b8dca1c4f5233c5df8592078de921bc</module-option>

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

      </login-module>

      </authentication>

      </application-policy>-->