Requirement – Reset your weblogic admin console password
Solutions –
You can reset your pwd from the command line using the following process
-> Set up the following environment variables. They are not necessary for the process itself, but will help you navigate. In this case my domain is called “ClassicDomain”. Remember to change the value to match your domain.
->Shut down the WebLogic admin server.
->$MW_HOME/user_projects/domains/base_domain/bin/ stopWebLogic.sh
->Rename the data folder.
$ mv $DOMAIN_HOME/servers/AdminServer/data $DOMAIN_HOME/servers/AdminServer/data-bakup
- Set the environment variables.
$ $DOMAIN_HOME/bin/setDomainEnv.sh
- Reset the password using the following command. Remember to substitute the appropriate username and password.
$ cd $DOMAIN_HOME/security $ java weblogic.security.utils.AdminAccount <username> <password> .
- Update the “$DOMAIN_HOME/servers/AdminServer/security/boot.properties” file with the new username and password. The file format is shown below.
username=<username> password=<password>
- Start the WebLogic domain.
$ $DOMAIN_HOME/bin/startWebLogic.sh
you can also get java no class def found error.then weblogic.jar is not set in the classpath.Try to set weblogic.jar in classpath
Happy Weblogic Learning with Vinay Kumar