8 Replies Latest reply on Jan 29, 2010 10:01 AM by f_marchioni

    Jboss 4.2.0 : How can i change the web-console password ?

      Hello,

       

      I need help in this case. I have installed Jboss 4.2.0 and when I try to connect into the web-console, it ask me a login and a password. But I want to change my password. After a research on the web, i have found a link about the web-console password.

      If I understand, the web-console password is in a file : web-console-users.properties. But the password into this file is encrypted.

      What is the procedure to encrypt a new Web-Console password? Or what is the procedure to change a Web-Console password (in Jboss 4.2.0)?

       

      Thanks for your advices.

        • 1. Re: Jboss 4.2.0 : How can i change the web-console password ?
          peterj

          I

           

          f you have a web-console-user.properties file, then someone there created it - 4.2.0 ships only with two *-users.properties files: jmx-console-users.properties and jbossws-user.properties (well, I am actually looking at 4.2.3, but I don't think that it is any different). In neither of those are the passwords encrtpyed. You will need to go into the server/xxx/deploy/management/console-mgr.sar/web-console.war/web-inf/jboss-web.xml file for the web console to see which security domain is in use, and look up that security domain in the server/xxx/conf/login-conf.xml file to determine what mechanism is is using to ecnrypt the passwords (perhaps sha1 or md5). Or it might just be using the same mechanism as here:

          http://community.jboss.org/wiki/encryptingdatasourcepasswords

          • 2. Re: Jboss 4.2.0 : How can i change the web-console password ?

            Hi Peter, thanks for your advice, but the procedure doesn't work. I have adapted the command line

            java -cp lib/jboss-common.jar:lib/jboss-jmx.jar:server/default/lib/jbosssx.jar:server/default/lib/jboss-jca.jar org.jboss.resource.security.SecureIdentityLoginModule password

            for my jboss 4.2.0 but i have this message :


            The java class is not found:  org/jboss/resource/security/SecureIdentityLoginModule

            How can I fix this problem? For information, my java version is 1.4.2. I have installed java6_64.sdk but when i launch the command java -version, i have Java version "1.4.2".

             

            Or for the second solution, i make a screenshot of jboss-web.xml but i don't understand what can I do. For the second file,login-config.xml, the machinism used to encrypt password is the MD5.

            • 3. Re: Jboss 4.2.0 : How can i change the web-console password ?
              f_marchioni

              Hi Cristophe

              I believe you are trying to load a 1.5 Class in a 1.4 JRE. Try using JDK 1.5

              regards,

              Francesco

              MyJBossSite

              • 4. Re: Jboss 4.2.0 : How can i change the web-console password ?
                peterj

                "I have installed java6_64.sdk but when i launch the command java -version, i have Java version "1.4.2"."

                 

                Sounds like /usr/bin/java still links to the 1.4.2 version. You should go to /usr/bin, enter "ls -al ja*" and then remove all java related links and re-establish them (with "ln -s") to reference the 1.6 version. (If you ar running Fedora or RHEL, this might amount to just changing the /usr/java/default (?) link)

                • 5. Re: Jboss 4.2.0 : How can i change the web-console password ?
                  When I enter ls -al ja* in /usr/sbin (my OS is AIX 6.1), the system don't found a ja* files. On the other side, I have a two folders in /usr : java6_64 and java5_64.
                  • 6. Re: Jboss 4.2.0 : How can i change the web-console password ?
                    f_marchioni

                    That's the 64-bit installation of Java on AIX. Are you trying to use this one ?

                    Verify at first the installed JDK's on your system with:

                     

                    lslpp -l | grep Java

                     

                    if that's the correct JVM, you should link java to one of the following PATH:

                     

                    /usr/java6_64/jre/bin

                    /usr/java6_64/bin

                     

                    Hope it helps

                    Francesco

                    MyJBossSite

                    • 7. Re: Jboss 4.2.0 : How can i change the web-console password ?

                      OK, my version is good now, there is the 1.6.0 on java -version.

                      I tried the command line

                      java -cp lib/jboss-common.jar:lib/jboss-jmx.jar:server/default/lib/jbosssx.jar:server/default/lib/jboss-jca.jar org.jboss.resource.security.SecureIdentityLoginModule password

                      and now, the problem is new :

                       

                      Exception in thread "main" java.lang.NoClassDefFoundError: org.jboss.resource.security.SecureIdentityLoginModule
                      Caused by: java.lang.ClassNotFoundException: org.jboss.resource.security.SecureIdentityLoginModule
                              at java.net.URLClassLoader.findClass(URLClassLoader.java:419)
                              at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
                              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:320)
                              at java.lang.ClassLoader.loadClass(ClassLoader.java:609)

                      • 8. Re: Jboss 4.2.0 : How can i change the web-console password ?
                        f_marchioni

                        Add to your classpath

                        JBOSS_HOME\server\default\lib\jboss-jca.jar

                         

                        Hint: use a JavaClass finder to search missing classes in directories

                         

                        JBossTutorials