Start & Stop Weblogic Without Username & Password
| Posted by watashii | Filed under Database, WebIn a Weblogic Server domain running in production mode, username and password is always prompted during startup and shutdown (admin server and managed servers). To bypass this manual step, we can store the username and password credentials in the boot.properties file (although this is somewhat the same as development mode)…
1) Locate (or otherwise create) the security directory within the domain servers path, eg on the admin server:
$ cd /opt/bea/user_projects/domains/mydomain/servers/AdminServer/
$ mkdir security
2) Create a boot.properties file containing the username and password plaintext entries:
username=bob
password=smith
3) You can now start the server without input prompt.
Note this can be repeated on any of your managed servers. The plaintext entries in the boot.properties will automatically update to an encrypted value upon server startup. The same encrypted value can be generated using the weblogic.security.Encrypt utility.
Related Posts:
- Encrypt Passwords With Weblogic Server
- Using JSF 1.2 on Oracle Workshop for Weblogic (Portal 10.3)
- Weblogic Portal – Create Streaming Desktop Page Definition Error
- Weblogic Portal Authorization – Get and Check User’s Roles
- Reading Portlet Preferences in Weblogic Portal
Tags: encrypt, password, security, weblogic
3 Responses to “Start & Stop Weblogic Without Username & Password”
-
sameh Says:
January 18th, 2011 at 4:49 pmI make a boot.properties file under the security folder as
(C:\Oracle\Middleware\user_projects\domains\wael_domain\security) and I type inside it
username=weblogic
password=weblogic1
but when I start the server it ask me about username and password. is there any thing missing? thnx -
watashii Says:
January 19th, 2011 at 11:39 amI believe you need to create the security folder under the adminserver folder, but not under your domain folder.
-
Wagner Says:
April 26th, 2011 at 2:57 amHi, It works fine for start, but for stop, it ask again for the user and password, although the default is the user and password you provide from the properties. There is any another conf to do in order to bypass the script to stop asking user and password ? Thanks.
