3 Replies Latest reply on Jun 23, 2004 7:19 PM by urban011

    Change to location of users/roles.properties files in JBoss

    urban011

      I've been using the BASIC authentication with a servlet in an older version (running Jetty) of JBoss. These files were located in /conf (dev is on WinXP, but Production is on Linux). After migrating to 3.2.4 (Tomcat) These files no longer seem to be found and I can't log into my web app. I understand that there may be anew location for these files, but I can't seem to find what it is.

        • 1. Re: Change to location of users/roles.properties files in JB
          urban011

          Oddly, this problem goes away when I reboot my machine and the login works fine. However, when I restart the JBoss server for whatever reason, I can once again no longer login until I reboot the entire machine!

          • 2. Re: Change to location of users/roles.properties files in JB
            urban011

            OK...have a bit more insight now. So the login works properly if the tmp directory has been proactively deleted. If I restart the server w/o deleting the tmp dir, the login fails. But if I delete it while the server is down and then restart it works fine (presumably, this is why it worked after a reboot). I thought that a JBoss restart would automatically remove and rebuild this directory, is this not the case? That's certainly how it seemed to work under 3.0 w/ Jetty. The problem existis on both Windows and Linux.

            • 3. Re: Change to location of users/roles.properties files in JB
              urban011

              A bit more info: in fact, the files (jars, rars, ans sars) that are in the deploy dir inside the tmp dir are deleted during the refresh process. New files with new timestamps are created. Nevertheless, as odd as this seems, the login ONLY works if I actually go in prior to the restart and physically delete those files. I can repeat this process each time...very strange!