Weblogic startup error : JNDI subsystem is not ready for use

Error stack:

Getting below error stack during weblogic startup.

Cause:
INFO: oracle.iam.platform.auth.impl.DBStore : getConnection() : Problem in getting JDBC connection to OIM Schema : JNDI subsystem is not ready for use
<14 Mar, 2023 2:35:30,726 PM IST> <Critical> <Security> <BEA-090403> <Authentication for user weblogic denied.>
<14 Mar, 2023 2:35:30,743 PM IST> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: A MultiException has 6 exceptions.  They are:
1. weblogic.security.SecurityInitializationException: Authentication for user weblogic denied.
2. java.lang.IllegalStateException: Unable to perform operation: post construct on weblogic.security.SecurityService
3. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of weblogic.jndi.internal.RemoteNamingService errors were found
4. java.lang.IllegalStateException: Unable to perform operation: resolve on weblogic.jndi.internal.RemoteNamingService
5. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of weblogic.connector.common.ConnectorServiceActivator errors were found
6. java.lang.IllegalStateException: Unable to perform operation: resolve on weblogic.connector.common.ConnectorServiceActivator

A MultiException has 6 exceptions.  They are:
1. weblogic.security.SecurityInitializationException: Authentication for user weblogic denied.
2. java.lang.IllegalStateException: Unable to perform operation: post construct on weblogic.security.SecurityService
3. java.lang.IllegalArgumentExcepion


Solution:
Reset the weblogic password as per below steps...

If you forget the Admin Server password for your WebLogic 11g/12c domain, you can reset it 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 "base_domain". Remember to change the value to match your domain.

    export MW_HOME=/u01/app/oracle/middleware
    export DOMAIN_HOME=$MW_HOME/user_projects/domains/base_domain
  • Shut down the WebLogic domain.

    $ $DOMAIN_HOME/bin/stopWebLogic.sh
  • Rename the data folder.

    $ mv $DOMAIN_HOME/servers/AdminServer/data $DOMAIN_HOME/servers/AdminServer/data-old
  • 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



Comments

Popular posts from this blog

PUTTY - The server's host key is not cached in the registry cache

OIM-12c Installation - FMW - SOA - IDM

SAML & OAuth 2.0