0 Replies Latest reply on Nov 20, 2002 12:10 PM by littlewing68

    Configure DataSource / principal = null

    littlewing68

      Hello,
      I getting started with JBOSS. I try to install and configure a Datasource which create a connection to My SQL.

      When i try to get back the datasource, i have the following message:

      ava.lang.SecurityException: Invalid authentication attempt, principal=null
      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubject(BaseConnectionManager2.java:709)

      What s "principal" ?
      I have created 2 files users.properties and roles.properties to the classpath
      Then ,I have added to login.xml the following code:

      <application-policy name = "MySqlDbRealm">

      <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
      <module-option name = "userName">admin</module-option>
      <module-option name = "password">admin</module-option>
      <module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=MySqlDS</module-option>
      </login-module>

      </application-policy>
      Finally, I haved copy to serder/default/deploy the file mysql-service.xml and filled it.

      I don't see where the error is!!!!

      Thanks for your answers

      Alexandre Touret