Friday, 13 May 2016

How to Completely Remove Forms (formsapp) from WLS_FORMS and Redeploy the forms in WLS_FORMS

There may be times when the existing Forms application in a managed WLS_FORMS server becomes corrupted and cannot be fixed. Removing it and installing the default Forms application can resolve issues like this.

Removing Forms from WLS:
  1. Go to the WLS Console and choose deployments.
  2. Ensure "Lock and Edit" is chosen.
  3. Check the formsapp (11.1.2) and choose Stop.  Choose either "When work completes" or "Force Stop Now" depending on the concern for user impact.
  4. Once it is stopped, its "State" will change to "Prepared".
  5. Select the formsapp (11.1.2) again, choose "Delete" and confirm the deletion.
  6. You will be prompted to "Activate Changes".
  7. You will note that formsapp (11.1.2) no longer appears as a Deployment in the deployed applications list.
Redeploying Forms into WLS:
  1. Go to the WLS Console and choose deployments.
  2. Ensure "Lock and Edit" is chosen.
  3. Click on the "Install" Button.
  4. Choose your formsapp.ear from ORACLE_HOME\forms\j2ee and choose Next.
  5. Take the default option of "Install this deployment as an application" and choose Next.
  6. You will next see target options.  In most cases you will want to choose "cluster_forms" as shown but other options are available.
  7. Next a screen will appear showing "General", "Security", "Source Accessibility" options.  Take the defaults which should be: (Name:  formsapp, DD Only: Use only roles and policies that are defined in the deployment descriptors, Source accessibility: Use the defaults defined by the deployment's targets).
  8. Click on next.
  9. The next screen will give "Additional Configuration" options.
  10. Take the default selection: "Yes, take me to the deployment's configuration screen. The  "Summary" selection will show the previous choices made.
  11. Click "Finish" and then "Save".
  12. Click on "Activate Changes".
  13. Choose "Deployments" again and you should see "formsapp (11.1.2) in a "Prepared" state.  Check formsapp (11.1.2) and  choose "Start (Servicing All Requests)." It should become "Active".
Update the Deployment Plan for the formsapp (plan.xml):
  1. Go to the WLS Console and choose deployments.
  2. Ensure "Lock and Edit" is chosen.
  3. Check the formsapp (11.1.2) and choose "Update".
  4. You will note that the "Deployment plan path:" is not chosen. Click on the "Change Path" button and choose DOMAIN_HOME\deployments-plans\formsapp\11.1.2\plan.xml
  5. Click "Next" and choose: "Update this application in place with new deployment plan changes. (A deployment plan must be specified for this option)".
  6. Choose "Finish".
  7. Click "Activate Changes".
  8. Restart WLS_FORMS and test using:  http://hostname:port/forms/frmservlet to bring up the test form and this should work.
Ref: (Doc ID 2030914.1)

No comments:

Post a Comment