Starting ATG Servers – Bypass WLS Username & Password Prompt

By | November 28, 2013

Once you configure the ATG Publishing & Production servers using the CIM and are ready for the user, when you start these servers – what do you notice:

  1. The WebLogic Server instance started without prompting the user for username & password
  2. Whereas, the ATG instances (Managed Weblogic server) started by prompting the user for username and password

How do you overcome this situation? Can you configure the managed WebLogic server instances to bypass the prompts and take the username and password from a configuration file?

Here is the type of installation that we are referring to on a developer machine:

  1. WebLogic domain is base_domain
  2. Folder for base_domain is C:\Oracle\Middleware\User_projects\domains\base_domain
  3. Admin Server folder is C:\Oracle\Middleware\User_projects\domains\base_domain\servers\AdminServer
  4. ATGPublishing managed server folder is C:\Oracle\Middleware\User_projects\domains\base_domain\servers\ATGPublishing
  5. ATGProduction managed server folder is C:\Oracle\Middleware\User_projects\domains\base_domain\servers\ATGProduction

Here is what you can do

  1. Go to the ATGPublishing folder that contains the ATGPublishing managed server (as in #4 above)
  2. Create a folder with the name “security” under ATGPublishing
  3. Navigate to the “security folder
  4. Create a TEXT file called “boot.properties”
  5. Add below lines in the boot.properties file (CHECK BELOW for boot.properties file content)
  6. Save the file
  7. Repeat the process for ATGProduction OR you can copy the “security” folder from ATGPublishing to ATGProduction
  8. START the ATGPublishing managed server
  9. START the ATGProduction managed server

Content of the boot.properties file (in plain text)

username=weblogic

password=<your weblogic password here>
Once you save the TEXT file with clear-text username and password, and run the Managed Server – it will automatically encrypt the username and password as below:

 

 

Let me know what you think about this article