Friday, September 19, 2014

Change the weblogic server admin password from command line of console is not starting?

1.    Go to this path: SYS_DIR\DefaultDomain\bin,  where SYS_DIR is the path we defined above.
2.    Execute the setDomainEnvironment.cmd
3.    Go to this path: SYS_DIR\DefaultDomain\security
4.    Rename the DefaultAuthenticatorInit.ldift file to something like oldDefaultAuthenticatorInit.ldift
5.    Execute the following command in order to create the new password.
  •       Notice that the command has a dot at the end, this is necessary so the new password is created in the current directory.
  •       Change NEW_PASSSWORD for the new password of the weblogic user:
  •        We should have the weblogic.jar in the classpath

                 java weblogic.security.utils.AdminAccount weblogic NEW_PASSWORD .

6.    Go to this path: SYS_DIR\DefaultDomain\servers\DefaultServer\data\ldap
7.    Rename the ldap directory to something like ldap_old
8.    Go to this path: SYS_DIR\DefaultDomain\servers\DefaultServer\security
9.    Rename the boot.properties file to something like oldboot.properties
10.    Create a new boot.properties file in the same directory. This is necessary if you want autologin when launching the Weblogic server from within JDeveloper. The content of the file should be something like the following (change NEW_PASSWORD for the password you defined in previous steps):

username=weblogic
password=NEW_PASSWORD

11.    Start the integrated weblogic server from  jdeveloper
12.    Open a new browser and enter the following URL (the port may be different for you):
http://localhost:7101/console
13.    The Weblogic server console application should display and you can login with your new credentials.

No comments:

Post a Comment