Skip navigation.

Administration Console Online Help

PreviousNextvertical dots separating previous/next from contents/index/pdfContents

Reinitialize security configurations in deployment descriptors

Before you begin


If you are using the Advanced security model to secure EJB and Web Applications, one of your options is to reinitialize security configurations from deployment descriptors when redeploying an application and use the WebLogic Server Administration Console for subsequent modifications. For more information, see Using the Combined Technique Wiith The Advanced Security Model

To reinitialize security configurations to their original state as specified in their Deployment Descriptors:

  1. If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center).
  2. In the left pane select Security Realms.
  3. On the Summary of Security Realms page select the name of the realm (for example, myrealm)
  4. Under Configuration > General in the Check Roles and Policies field, select All Web Applications and EJBs.

    You are telling WebLogic Server that you want the WebLogic Security Service to control security on all Web application and EJB resources.

  5. In the On Future Redeploys field, select Initialize Roles and Policies From DD.

    You are telling WebLogic Server to copy the security settings for Web application and EJB resources from the deployment descriptors into the configured Authorization and Role Mapping providers’ databases each time you deploy the resource.

  6. Click Save.
  7. If you changed the Check Roles and Policies setting from Web Applications and EJBs Protected in Deployment Descriptors to All Web Applications and EJBs step 4 because it is not already on this setting, restart the server. See Starting and Stopping Servers: Quick Reference If you did not need to change this setting, skip to the next step.
  8. In the left pane expand Deployments and select the check box next to the EJB or Web application deployment
  9. Click Delete and confirm by clicking Yes.

    The deleted Web application or EJB module no longer appears in the table.

  10. Redeploy the Web application or EJB resource, targeting it to the appropriate server. See
  11. To activate these changes, in the Change Center of the Administration Console, click Activate Changes.
    Not all changes take effect immediately—some require a restart (see Use the Change Center).

After you finish

Caution: You must revert the On future Deploys setting to Ignore roles and policies from DD for subsequent deployments of the application. Otherwise, you might override security configurations you set in The Console. See Revert the On Future Redeploys setting

 

Skip navigation bar   Back to Top