May
26
Configuring WebLogic Automated Startup Credentials
Leave a comment »
As one of those who have recently acquired administrator duties as part of our organizations push to adopt OBIEE 11g I recently struggled with the issue of how to correctly start the Web Logic server so that it would not die with my session expiration
The main issue I faced was the fact that every time I tried to start WebLogic I would be asked for the administrator username and password, this really got in the way of automating the WebLogic startup. After a little bit of digging into the WebLogic Server Documentation I discovered a section about the boot.properties file and how use it to configure the startup credentials so that input from a command prompt wouldn’t be necessary. Here are the simple steps to implement this configuration:
- Locate the $MW_HOME/user_projects/domains/[domain (ie. bifoundation)]/servers/[managed server (ie. biserver_1)]/security
- Edit the boot.properties file by entering or replacing the following lines:username=
password= - Execute the commands below to stop the WebLogic server:cd $MW_HOME/user_projects/domains/bifoundation/bin
./stopWebLogic.sh - Now execute the command below to bring the server back up:./startWebLogic.shNote: Notice how this script will no longer ask you to enter the WebLogic administrator’s user name and password.
- Review the credentials in the boot.properties file, the first time the server is started it will read the clear text credentials and replace them with encrypted values.cat $MW_HOME/user_projects/domains/bifoundation/servers/biserver_1/security
After this configuration is in place you are now able to configure WebLogic to start automatically with your server without nay mayor issues:
Other posts that might be of your interest are:
Summary:
After reading this post you should be able to configure the boot.properties file to provide the server with startup credentials, a necessary step when configuring the WebLogic Server automated startup. This post should also help in answering or resolving these related topics:
- How to configure WebLogic to start automatically with my server?
- The WebLogic server does not start automatically, it is prompting for a user name and password
- WebLogic not reading boot.properties file at $MW_HOME/user_projects/domains/[domain (ie. bifoundation)] (this location has been deprecated, use the one listed above)
Questions and Comments: Please use the comment form on this post to send us your questions and comments, we look forward to hearing from you!