5 Replies Latest reply on Nov 14, 2002 7:50 AM by vofo

    authentication/welcome-file problem

    vofo

      Hi,

      i have a problem with my form based login against ldap.
      If i deploy the web app to my local JBoss 3.0.0, login works very well.
      Now I have deployed the same web app to a JBoss 3.0.0 on another machine. In this case JBoss 'forgets' authentication. The forward in the welcome-file is done and i got a NullPointerException, when i try to access the user/principal. I'm not authenticated, because the login form was not displayed.

      If I explicitly call the welcome-file, it works and the login JSP is displayed.

      Maybe there are some configurations missing?
      Any idea, where I can search?

        • 1. Re: authentication/welcome-file problem
          pdhar

          Does this other Jboss have similiar default/conf/login-config.xml authentication setup as your previous one ?

          • 2. Re: authentication/welcome-file problem
            vofo

            Yes, the configurations are the same.
            I tried to evaluate the problem. I have deployed my apllication to al local JBoss 3.0.0 and to a local JBoss 3.0.4.
            If I put the welcome-file Index.jsp into the restricted area, authentication works with JBoss 3.0.0 and no login.jsp is displayed with version 3.0.4.
            If I put Index.jsp in free area and point to the restricted area with forward in both cases the login.jsp is not displayed.
            If I use sendRedirect instead of forward, it works
            Is it true, that only sendredirect creates a real new requestURL?

            So, my idea is, that there is a difference between the two versions in interpreting the welcome-file.
            Maybe in version 3.0.4 the welcome-files are reached by forwards and in version 3.0.0 by sendRedirect?
            Is this possible? Is this the correct behavior?
            Am I completely wrong?

            vofo

            • 3. Re: authentication/welcome-file problem
              vofo

              second attempt to post this message, the last is somehow lost:

              Yes, the configurations are the same.
              I tried to evaluate the problem. I have deployed my apllication to al local JBoss 3.0.0 and to a local JBoss 3.0.4.
              If I put the welcome-file Index.jsp into the restricted area, authentication works with JBoss 3.0.0 and no login.jsp is displayed with version 3.0.4.
              If I put Index.jsp in free area and point to the restricted area with forward in both cases the login.jsp is not displayed.
              If I use sendRedirect instead of forward, it works
              Is it true, that only sendredirect creates a real new requestURL?

              So, my idea is, that there is a difference between the two versions in interpreting the welcome-file.
              Maybe in version 3.0.4 the welcome-files are reached by forwards and in version 3.0.0 by sendRedirect?
              Is this possible? Is this the correct behavior?
              Am I completely wrong?

              vofo

              • 4. Re: authentication/welcome-file problem
                vofo

                Yes, the configurations are the same.
                I tried to evaluate the problem. I have deployed my apllication to al local JBoss 3.0.0 and to a local JBoss 3.0.4.
                If I put the welcome-file Index.jsp into the restricted area, authentication works with JBoss 3.0.0 and no login.jsp is displayed with version 3.0.4.
                If I put Index.jsp in free area and point to the restricted area with forward in both cases the login.jsp is not displayed.
                If I use sendRedirect instead of forward, it works
                Is it true, that only sendredirect creates a real new requestURL?

                So, my idea is, that there is a difference between the two versions in interpreting the welcome-file.
                Maybe in version 3.0.4 the welcome-files are reached by forwards and in version 3.0.0 by sendRedirect?
                Is this possible? Is this the correct behavior?
                Am I completely wrong?

                vofo

                • 5. Re: authentication/welcome-file problem
                  vofo

                  Yes, the configurations are the same.
                  I tried to evaluate the problem. I have deployed my apllication to al local JBoss 3.0.0 and to a local JBoss 3.0.4.
                  If I put the welcome-file Index.jsp into the restricted area, authentication works with JBoss 3.0.0 and no login.jsp is displayed with version 3.0.4.
                  If I put Index.jsp in free area and point to the restricted area with forward in both cases the login.jsp is not displayed.
                  If I use sendRedirect instead of forward, it works
                  Is it true, that only sendredirect creates a real new requestURL?

                  So, my idea is, that there is a difference between the two versions in interpreting the welcome-file.
                  Maybe in version 3.0.4 the welcome-files are reached by forwards and in version 3.0.0 by sendRedirect?
                  Is this possible? Is this the correct behavior?
                  Am I completely wrong?

                  vofo