Showing posts with label AIA Deployment. Show all posts
Showing posts with label AIA Deployment. Show all posts

Wednesday, 24 June 2015

SOA/AIA Deployment Script (AID) issue in AIA Cluster environment with error/exception as ‘java.io.IOException’



Tried to deploy the code in AIA Cluster environment and getting the below error.

[UpdateDeployedComposites] Connecting to: service:jmx:t3://ADMIN_HOST:7001/jndi/weblogic.management.mbeanservers.domainruntime
[UpdateDeployedComposites] Connecting to: service:jmx:t3://SOA_HOST1:8001/jndi/weblogic.management.mbeanservers.runtime

BUILD FAILED
/mnt_fmw/app/oracle/middleware/aia/Infrastructure/Install/AID/AIAExecuteDriver.xml:119: The following error occurred while executing this line:
/mnt_fmw/app/oracle/middleware/aia/Infrastructure/Install/AID/AIAExecuteDriver.xml:62: java.io.IOException


In a SOA/AIA Cluster environment & AID assumes that all managed servers are up and running when executing the task UpdateDeployedComposites in order to determine if a composite is already deployed.

As AID is connecting to Admin server and tries to get the list of servers in SOA/AIA cluster environment (i.e. SOA servers). Then AID will connect to first  SOA server for the deployment.

If first SOA server in the cluster is in shut down STATE and as a result, will get this kind of  error on the deployment script.

On validating the UpdateDeployedComposites task in AID, it has the code designed to catch situations where some of the servers are down and to try another ones if it fails to connect to the first one. However, such exceptions are not caught and so AID stops without attempting to connect to other managed servers that are up and running.

As a temporary work around & solution, all the cluster members in the SOA/AIA cluster environment should be up & running and then try the deployment.


Any questions & comments are Welcome.


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.