Requirement – Reset your weblogic admin console password
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.
->Rename the data folder.
$ mv $DOMAIN_HOME/servers/AdminServer/data $DOMAIN_HOME/servers/AdminServer/data-bakup
- Set the environment variables.
- 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.
- Start the WebLogic domain.
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