Search code examples
weblogicweblogic12c

WebLogic stopManagedWeblogic.sh script prompts for username and password for shutting down managed server


The managed server created in the WebLogic 12c environment is prompting for the username and password when stopping the managed server with stopManagedWeblogic.sh script even when boot.properties file is present with correct credentials.

The boot.properties file configured in some other accessible location whose path is specified using -Dweblogic.system.BootIdentityFile java option

I've observed below strange behavior

  • It's not prompting for username and password when starting the managed server with startManagedWeblogic.sh script(I suppose it's looking into boot.properties file).
  • It's not prompting for username and password when starting and stopping admin server

It's prompting for username and password only in case of managed server shutdown using stopManagedWeblogic.sh script.

Is passwordless managed server shutdown not supported in WebLogic ?, as I don't want username and password specified as a parameter to stop script.


Solution

  • It is identified as a bug in WebLogic 12c

    The stopManagedWeblogic.sh implementation logic ignores -Dweblogic.system.BootIdentityFile option and checks the boot.properties file inside <domain_home>/servers/<managed_server_name>/security/boot.properties location, if boot.properties file is not present in this location, it prompts for admin server credentails.