Saturday 13 June 2015

SOA/AIA - AID Script ( AIA Deployment script) inputting user credentials while deploying


If we try to deploy the custom code on AIA and AID script will look for user credentials to be input at time of invoke.

 This is because of existing SOA/AIA environment credentials are updated some of the places manually and it is not updated in proper way.

To correct this, we have followed below approach.

1. Take the backup of AIAInstallProperties.xml file located under  $AIA_HOME/aia_instances/aia_inst1/config directory.

2. source $AIA_HOME/aia_instances/aia_inst1/bin/aiaenv.sh

3. Go to $AIA_HOME/util and Run the following command
Note: Make sure to have VNC/X-Manager/X-ming or a X11 Server Display has to be set as the below UpdateStore Utility opens a GUI window

ant -f updateStore.xml updateStore -DAdminUsername=weblogic -DAdminPassword=xxxxx

Once utility opens up, it will as below details.
Enter Existing Username, Password, New Username, New Password and XPATH
This XPATH reference should be exactly the same as suggested in the AIAInstallProperties.xml  (i.e. /properties/fp/server/password)

4. Once this process completed, it will update the credentials in AIAInstallProperties.xml file.

5. Also create Aid.Properties (under $AIA_HOME/aia_instances/aia_inst1/.configuration directory) with below details.
oracle.aia.security.username=weblogic
oracle.aia.security.password=xxxxxxxx

6.    Upload the  AIAInstallProperties.xml file to MDS repository.

7. Then try to run sample deployment as shown below and AID will not prompt for any user credentials.
ant -f $AIA_HOME/Infrastructure/Install/AID/AIAInstallDriver.xml -DPropertiesFile=$AIA_HOME/aia_instances/aia_inst1/config/AIAInstallProperties.xml -DDeploymentPlan=dp_test.xml

Note: The same solution can be used for changing the password for AIA environment.

Any suggestions/comments are welcome.

1 comment: