OIM Bootstrap for DEPLOYSOACOMPOSITES Task Fails After Upgrade

After you complete the Oracle Identity Manager upgrade, when you start the Oracle Identity Manager Managed Servers for the first time, bootstrapping happens. If the OIM bootstrap fails for DEPLOYSOACOMPOSITES task, use the workaround described in this section to resolve the issue.

The following error is seen in the OIM server logs:
<Oct 4, 2016, 4:53:51,904 AM PDT> <Info> <oracle.iam.OIMPostConfigManager>
<BEA-000000> <FROM THREAD:Processing sar=/ORACLE_HOME/idm/server/workflows/composites/scajars/sca_DefaultRequest Approval_rev5.0.jar>
<Oct 4, 2016, 4:53:51,906 AM PDT> <Info> <oracle.iam.OIMPostConfigManager>
<BEA-000000> <FROM THREAD:Adding sar file -/ORACLE_HOME/idm/server/workflows/composites/scajars/sca_DefaultRequestAppro val_rev5.0.jar>
<Oct 4, 2016, 4:53:52,40 AM PDT> <Info> <oracle.iam.OIMPostConfigManager>
<BEA-000000> <FROM THREAD:INFO: Creating HTTP connection to host:slc09pqg, port:16230>
<Oct 4, 2016, 4:53:54,694 AM PDT> <Info> <oracle.iam.OIMPostConfigManager>
<BEA-000000> <FROM THREAD:INFO: Received HTTP response from the server, response code=500>
<Oct 4, 2016, 4:53:54,695 AM PDT> <Info> <oracle.iam.OIMPostConfigManager>
<BEA-000000> <FROM THREAD:---->Response code=500, error:There was an error deploying the composite on soa_server1: keepInstancesOnRedeploy flag can only be used with BPM enabled installation..>
<Oct 4, 2016, 4:53:54,696 AM PDT> <Info> <oracle.iam.OIMPostConfigManager>
<BEA-000000> <FROM THREAD:> <Oct 4, 2016, 4:53:54,964 AM PDT> <Info> <oracle.iam.OIMPostConfigManager>
<BEA-000000> <Completed the script Command execution.>
<Oct 4, 2016, 4:53:54,965 AM PDT> <Info> <oracle.iam.OIMPostConfigManager>
<BEA-000000> <The logs are written to file :/tmp/deploySOAComposites_1475582008428.log>
<Oct 4, 2016, 4:53:54,966 AM PDT> <Info> <oracle.iam.OIMPostConfigManager>
<BEA-000000> <  [OIM_CONFIG] Error while executing the wlst script /tmp/deploySOAComposites_1475582008428.py>
<Oct 4, 2016, 4:53:54,967 AM PDT> <Error> <oracle.iam.OIMPostConfigManager>
<BEA-000000> < Error while executing the wlst script /tmp/deploySOAComposites_1475582008428.py>
<Oct 4, 2016, 4:53:54,967 AM PDT> <Error> <oracle.iam.OIMPostConfigManager>
<BEA-000000> < Error while executing the wlst script /tmp/deploySOAComposites_1475582008428.py>
<Oct 4, 2016, 4:53:54,967 AM PDT> <Info> <oracle.iam.OIMPostConfigManager>
<BEA-000000> <  deploySOAComposites() Failed.>
<Oct 4, 2016, 4:53:54,968 AM PDT> <Info> <oracle.iam.OIMPostConfigManager>
<BEA-000000> <  Forced deployment of 12c SOA composite failed.>
<Oct 4, 2016, 4:53:54,968 AM PDT> <Warning> <oracle.iam.OIMPostConfigManager> 
<BEA-000000> <   Unable to deploy te SOA Composites.>
<Oct 4, 2016, 4:53:54,968 AM PDT> <Warning> <oracle.iam.OIMPostConfigManager> 
<BEA-000000> <   Unable to deploy te SOA Composites.>
<Oct 4, 2016, 4:53:54,969 AM PDT> <Info> <oracle.iam.OIMPostConfigManager>
<BEA-000000> <Reason of fail :Error occurred while deploying the 12c SOA composite>
The following error is seen in the Oracle SOA Suite (SOA) server logs:
<Oct 4, 2016, 2:57:30,535 AM PDT> <Error> <ServletContext-/soa-infra>
<BEA-000000> <Error during deployment  
oracle.fabric.common.FabricDeploymentException: keepInstancesOnRedeploy flag 
can only be used with BPM enabled installation. {rootCauses=[]}  
at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork 
(DeployProcessor.java:582)  
at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork 
(DeployProcessor.java:473)  
at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeploy(Dep 
loyProcessor.java:282)  
at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.process(Depl 
oyProcessor.java:168)  
at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.doP 
ostInsideLoggingSession(CompositeDeployerServlet.java:250)  
Truncated. see log file for complete stacktrace  
<Oct 4, 2016, 2:57:30,553 AM PDT> <Error> 
<oracle.integration.platform.blocks.deploy.servlet> <SOA-21537> <Sending back 
error message: There was an error deploying the composite on soa_server1: 
keepInstancesOnRedeploy flag can only be used with BPM enabled
installation...>

To resolve this issue, start the Oracle SOA Suite server with the following property:

-Dbpm.enabled=true

This completes the OIM bootstrap tasks successfully. After the successful completion of OIM bootstrap tasks, restart all of the servers. This time, do not use the property -Dbpm.enabled=true for starting the SOA server. When you start the Managed Servers for the first time after upgrade, start them with the Administration Server URL.