0 Replies Latest reply on Aug 23, 2002 6:50 AM by ayalewk

    Jboss 3.0 & Custom login module

    ayalewk Newbie

      i have searched the forums and never found an answer on my problem. I have custom login module,
      which works with jboss 2.x fine now i want to upgrade to jboss 3.0 but i got exception.
      java.lang.SecurityException: Authentication exception, principal=null
      i think it occurs not in the client side. it happens while i call my EJB remote method from my
      web side (from jsp or Servlet). i don't know what is wrong please help.

      my configuration
      <policy>

      <application-policy name = "client-login">
      <authentication>
      <login-module code
      "mortgagors"
      flag = "required">
      </login-module>
      </authentication>
      </application-policy>

      <application-policy name = "other">
      <authentication>
      <login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule"
      flag = "required" />
      </authentication>
      </application-policy>

      <application-policy name="myModule">
      <authentication>
      <login-module code="org.jboss.security.auth.spi.ProxyLoginModule"
      flag="required">
      <module-option name="moduleName">com.mycompany.mymodule</module-option>
      <module-option name="opt1">opt1</module-option>
      <module-option name="opt2">opt2</module-option>
      </login-module>
      </authentication>
      </application-policy>

      </policy>

      thank you