How to Refer to the Oracle Rules Shared Libraries

After creating the .jspx file, you must refer to the oracle.rules and oracle.soa.rules_dict_dc.webapp shared libraries from the weblogic-application.xml file.

To refer to the oracle.rules and the oracle.soa.rules_dict_dc.webapp shared libraries:

  1. In Oracle JDeveloper, from the Application Resources, open Descriptors, and then META-INF. Edit the weblogic-application.xml file and add the following lines (this refers to the oracle.rules shared library.)

    <library-ref>
        <library-name>oracle.rules</library-name>
    </library-ref>
    
  2. In Oracle JDeveloper,

    1. Select File menu, then select New and then Deployment Descriptors.

    2. Select Weblogic Deployment Descriptor and select weblogic.xml from the list.

    3. Select version 12.1.2 and click Finish.

    4. In weblogic.xml overview mode, select Libraries from the left and add oracle.soa.rules_dict_dc.webapp as the library name. Example weblogicogic.xml file:

      <?xml version = '1.0' encoding = 'UTF-8'?>
      <weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app
      http://xmlns.oracle.com/weblogic/weblogic-web-app/1.5/weblogic-web-app.xsd"
      xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
        <library-ref>
          <library-name>oracle.soa.rules_dict_dc.webapp</library-name>
        </library-ref>
      </weblogic-web-app>
      
    5. Click Save All.

      Note:

      Note that oracle.rules and oracle.soa.rules_dict_dc.webapp shared libraries must be deployed to the embedded WLS server.

  3. All the shared libraries must be deployed using the weblogic console of your embedded WLS:

    1. Launch WLS console (http://host:port/console/login/LoginForm.jsp) and log in.

    2. Click Deployments.

      Check if oracle.rules and oracle.soa.rules_dict_dc.webapp shared libraries are deployed as shown in Figure 26-11.

  4. Deploy the shared libraries manually if they are not deployed.

    To start the WLS embedded server:

    1. Open JDeveloper.

    2. Select Run and then select Start Server Instance as shown in Figure 26-12

      Figure 26-12 Start Embedded WLS

      Description of Figure 26-12 follows
      Description of "Figure 26-12 Start Embedded WLS"

    Skip this step if the shared libraries are already deployed.

    Note:

    WLS embedded server on JDeveloper must be running so that the shared libraries can be deployed.

  5. To deploy the oracle.rules shared library to WLS:

    1. Launch WLS console (http://host:port/console/login/LoginForm.jsp) and log in.

    2. Select Deployments and click Install.

    3. Select <SOA_INSTALL>/soa/soa/modules/oracle.rules_11.1.1/rules.jar.

    4. Click Next and then click Finish.

  6. To deploy the oracle.soa.rules_dict_dc.webapp shared library to WLS:

    1. In WLS console, select Deployments, click Install.

    2. Select <SOA_INSTALL>/soa/soa/modules/oracle.soa.rules_dict_dc.webapp_11.1.1/oracle.soa.rules_dict_dc.webapp.war.

    3. Click Next and then click Finish.

    4. Select Install this deployment as a library.

    5. Click Finish.

    6. The oracle.soa.rules_dict_dc.webapp gets added to the list of deployments as shown in Figure 26-11