Undeploying SOA Composite while soa-infra is down in Oracle SOA Suite:
Recently we had an issue with soa-infra start-up, soa-infra
application won’t come up due to corrupt composite.
We have followed the Meta link note 1380835.1 to un-deploy the corrupted composite and bring up the
soa-infra application.
Thought of sharing the same here, it may help whoever facing
the same issue.
The SOA composites can’t be un-deployed when the soa-infra
application. The below steps will help you to un-deploy the SOA composites when
the soa-infra application is down.
- First check the soa logs and identify which composite is causing the problem
- Download and copy the ShareSoaInfraPartition.ear file to $MWHOME/Oracle_SOA/common/bin
- Execute $MWHOME/Oracle_SOA/common/bin/wlst.sh
- connect()
Provide username, password and server URL
- Run the below command to deploy ShareSoaInfraPartition.ear
deploy('ShareSoaInfraPartition','ShareSoaInfraPartition.ear',upload='true')
- Now run the below command by changing the "toLocation" ('/fmw11g/Middleware' is some location path on SOA machine)
exportMetadata(application='ShareSoaInfraPartition',server='AdminServer',toLocation='/fmw11g/Middleware',docs='/deployed-composites/deployed-composites.xml')
A
deployed-composites folder will be created at "toLocation" path with
deployed-composites.xml in it
- Delete the composite which is causing the problem from deployed-composites.xml and save the file
for example FormatDate composite like below
<composite-series
name="default/FormatDate"
default="default/FormatDate!1.0">
<composite-revision
dn="default/FormatDate!1.0" state="on"
mode="active"
location="dc/soa_b8c8782b-776e-42c3-8519-d29fdfb72032">
<composite
dn="default/FormatDate!1.0*soa_b8c8782b-776e-42c3-8519-d29fdfb72032"
deployedTime="2012-07-11T04:14:47.665-07:00"/>
</composite-revision>
</composite-series>
- 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')
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.
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.