Thursday, August 23, 2012

Sometime soa-infra application won’t come up due to corrupt composite which stops the soa-infra to be in active state.  To bring soa-infra up we need to undeploy corrupt composite. But the question arises how we can undeploy corrupt composite while soa-infra is down. There is solution to this. You can undeploy composite by following below steps even if soa-infra is down.

Check the soa logs and determine which composite is causing the problem and then follow the below process to Undeploy SOA composite by editing deployed-composites.xml

1. Download and copy the ShareSoaInfraPartition.ear file to $MIDDLEWARE_HOME/oracle_common/common/bin

2. cd to $MIDDLEWARE_HOME/oracle_common/common/bin and run below command
        
          run  wlst.sh

3. connect to server by using below command and provide username and password.

          connect()

4. run the below command to deploy ShareSoaInfraPartition.ear

         deploy('ShareSoaInfraPartition','ShareSoaInfraPartition.ear',upload='true')

5. Now run the below command by changing the "toLocation" ('/fmw11g/fmw1115/Middleware' is some location path on SOA machine)

exportMetadata(application='ShareSoaInfraPartition',server='AdminServer',toLoc  ation='/fmw11g/fmw1115/Middleware',docs='/deployed-composites/deployed-composites.xml')

6. A deployed-composites folder will be created at "toLocation" path with deployed-composites.xml in it

7. Delete the composite which is causing the problem from deployed-composites.xml and save the file

        for example TestComposite composite like below

<composite-series name="default/TestComposite" default="default/TestComposite!2.0">
<composite-revision dn="default/TestComposite!2.0" state="on" mode="active" location="dc/soa_58b98be8-9ec8-41af-bb83-590f6004d1aa">
<composite dn="default/TestComposite!2.0*soa_58b98be8-9ec8-41af-bb83-590f6004d1aa" deployedTime="2011-11-17T09:01:54.750+05:30"/>

8. Now run the below command by changing the "fromLocation" (this should be the same location as previous)

importMetadata(application='ShareSoaInfraPartition',server='AdminServer',fromLocation='/fmw11g/fmw1115/Middleware',docs='/deployed-composites/deployed-composites.xml')

9. Now bounce your server and the composite will not be deployed by SOA when it comes up and hence that should bring your soa-infra up.


This valid for Oracle SOA Platform - Version 11.1.1.1.0 to 11.1.1.5.0



0 comments :

Post a Comment