This post describes about how to manage the composites when the server was down.
I have faced "java.lang.OutOfMemoryError" issue while restarting the server.Later on I came to know that SOA Server getting down because of one error-ed composite.I googled the same thing and find out the solution as below.
One of the deployed composites is causing a problem. If you know which one it is, you can undeploy it then try to restart the server. If not and this is not a production installation, you can undeploy all composites and deploy them one by one again to verify which one is causing the problem.
As the server (soa-infra) is not running, you cannot use the Enterprise Manager to undeploy the composites. You can follow the instructions in the following note to undeploy composites while soa_infra is down:
Check the SOA logs and determine which composite is causing the problem and then follow the below process to undeploy the 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 wlst.sh
3.connect() and provide the username, password and server URL
4. run the below command to deploy ShareSoaInfraPartition.ear
5. Now run the below command by changing the "toLocation" ('/fmw11g/fmw1115/Middleware' is some location path on SOA machine)
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 and save the file
For example, the MediatorTest composite:
composite-series name="default/MediatorTest" default="default/MediatorTest!1.0"
composite-revision dn="default/MediatorTest!1.0" state="on" mode="active" location="dc/soa_58b98be8-9ec8-41af-composite dn="default/MediatorTest!1.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)
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.
You can download ShareSoaInfraPartition.ear from the below link.
https://support.oracle.com/epmos/main/downloadattachmentprocessor?attachid=1380835.1%3AEARFILE&docType=HOWTO&action=download
I have faced "java.lang.OutOfMemoryError" issue while restarting the server.Later on I came to know that SOA Server getting down because of one error-ed composite.I googled the same thing and find out the solution as below.
One of the deployed composites is causing a problem. If you know which one it is, you can undeploy it then try to restart the server. If not and this is not a production installation, you can undeploy all composites and deploy them one by one again to verify which one is causing the problem.
As the server (soa-infra) is not running, you cannot use the Enterprise Manager to undeploy the composites. You can follow the instructions in the following note to undeploy composites while soa_infra is down:
Check the SOA logs and determine which composite is causing the problem and then follow the below process to undeploy the 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 wlst.sh
3.connect() and provide the username, password and server URL
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',toLocation='/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 and save the file
For example, the MediatorTest composite:
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.
You can download ShareSoaInfraPartition.ear from the below link.
https://support.oracle.com/epmos/main/downloadattachmentprocessor?attachid=1380835.1%3AEARFILE&docType=HOWTO&action=download
No comments:
Post a Comment