1 Reply Latest reply on Feb 28, 2003 5:40 AM by Peter Doornbosch

    FORM user authentication in JBOSS App Server

    Vadivelu Srinivasan Newbie

      Hi All,

      I am facing problem while using FORM user authentication in JBoss App Server. We have done that successfully in Weblogic but are not able to implement the same in JBoss. Any help would be greatly appreciated. If you any of your friends are familiar with this-
      can you please check with them if they have any solution for this.

      I'll just explain you what I have done.

      in web.xml file.



      is added then LoginForm.html will simply look like:


      When I give the username and password and submit it,
      the container tries to authenticate the user but it
      always displays LoginError.html page.I don't see any
      error message on the console.

      We are using Jboss-3.0.4 version.

      I hope the given information is clear.

      I'll tell you the whole scenario, we have an
      application running successfully in weblogic, we are
      trying to port the application to JBoss-3.0.4. But we
      are working in jBoss for the first time thus we are
      finding it very difficult in the configuration part.

      The authentication part is dealt in our application
      and we have used the FORM authentication so that the
      user is authenticated in the weblogic server as
      well(checking against the DB). This is mainly so that
      the user principal can be set in the
      HttpServletRequest whcih is used to authenticate the
      request in the application.

      Now what we need is to mimic this portion alone in
      JBoss as well so that the user principal will be set.
      We need to know how this can be done and what are the
      configuration files we need to update/change. Do we
      need to create a realm for this? Do we need to
      implement any of the classes?
      Also how do we check if this is working. What is form
      action that we should give for this.

      It would be very helpful if you could give us a
      detailed description. We are using the default Jetty

      I hope this gives a clear picture.

      Thanks in advance

        • 1. Re: FORM user authentication in JBOSS App Server
          Peter Doornbosch Apprentice

          Add a fragment like
          to the jboss-web.xml file (in the .war). 'MyWebRealm' should match the realm defined in the web.xml. Also, there should be an application policy with the same name in the login-config.xml, specifying which login module to user for that realm.

          Did you read the QuickStart pdf? It might help and it's for free!