1 Reply Latest reply on Aug 18, 2004 4:26 PM by Bill Snyder

    CallerIdentityModule Problem: 'invalid argument' ecxeption

    Bill Snyder Newbie

      Hello,

      I have a headache after pouring over the 'howto' and other posts in the forums trying to figure out how to correctly configure our Swing client to pass along login information to JBoss. I am almost there and need someone's help. I keep getting a 'invalid arguments in call' sql exception when I try to connect.

      Here is the current environment - does this look like a correct configuration? TIA.

      Swing client uses org.jboss.security.jndi.LoginInitialContextFactory

      Swing client auth.conf

      pacificDS {org.jboss.security.ClientLoginModule required;};
      other {org.jboss.security.ClientLoginModule required;};
      


      JBoss auth.conf
      pacificDS {org.jboss.security.ClientLoginModule required;};
      


      Oracle Datasource copied from docs/examples, but added
      <security-domain>pacificDS</security-domain>
      


      JBoss login-config.xml entry for JAAS realm
      <application-policy name = "pacificDS">
       <authentication>
       <login-module code = "org.jboss.resource.security.CallerIdentityLoginModule"
       flag = "required">
       <!--module-option name = "principal"></module-option-->
       <module-option name = "userName">oracle</module-option>
       <module-option name = "password">oracle</module-option>
       <module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=jdbc/PacificCarillonDS</module-option>
       </login-module>
       </authentication>
       </application-policy>