How to configure Weblogic Username & Password in boot.properties

Whenever after you install Weblogic you need to give username and password each time you will start the Weblogic (./startWeblogic &) like below:

=======
<Dec 13, 2013 12:55:47 AM IST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638 >
<Dec 13, 2013 12:55:48 AM IST> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
Enter username to boot WebLogic server:weblogic
Enter password to boot WebLogic server:
<Dec 13, 2013 12:55:55 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Dec 13, 2013 12:55:55 AM IST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
=======

To overcome this problem we have another way to configure the boot.preperties file in the security folder.

Sometimes we dont have security folder available in Adminserver folder, so simply create and create boot.properties file with in security folder with username and password.

E.g.:

$ mkdir $MW_HOME/user_projects/domains/base_domain/servers/AdminServer/security
$ cd $MW_HOME/user_projects/domains/base_domain/servers/AdminServer/security
$ cat > boot.properties
username=<username>
password=<password>
Ctrl+d

Now it will not ask username and password again while restarting. Its better to use in this way: nohup ./startWeblogic &

Now weblogic will run in the background.

Thanks !

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s