Deploying a BI Beans HTML-Client Application to Oracle Application Server

Prerequisite

Ensure that a separate OC4J instance, which is configured for BI Beans applications, is created in Oracle Application Server on the production machine. For instructions, see the document "Setting up a Separate OC4J Instance for a BI Beans Application," which is available on Oracle Technology Network (http://otn.oracle.com).

Process: Deploying an application to Oracle Application Server

To deploy an application to Oracle Application Server, use the following process:

  1. In JDeveloper, package the application into either a WAR file or an EAR file.

  2. In Oracle Enterprise Manager Application Server Control, which is available in the Oracle Application Server installation, complete the deployment process.

Procedure: Packaging an application into a WAR file or an EAR file

Use the following procedure to package a BI Beans HTML-client application:

  1. In JDeveloper, create a deployment profile. Follow the procedure in the JDeveloper Help topic: "Creating a Deployment Profile for a Web Application" but select the following libraries in the Which libraries are involved in dependency analysis box:

  2. Complete the packaging of the application as follows:

    1. In the System - Navigator, right-click the deployment profile (such as webapp1.deploy), which was created in Step 1, and choose either Deploy to WAR File or Deploy to EAR File. A message is displayed to show the full path of the WAR file or the EAR file that is created in the project.

    2. From the File menu, choose Save All to save the application.

Procedure: Deploying the WAR file or EAR file to Oracle Application Server

Use Oracle Enterprise Manager to deploy the WAR file or EAR file to Oracle Application Server as follows:

  1. Log in to Oracle Enterprise Manager Application Server Control.

  2. Navigate to the home page of the OC4J instance in which you want to deploy the application.

  3. Click Deploy WAR file or Deploy EAR file depending on the type of file in which the application was packaged. The Deploy Web Applications page is displayed.

  4. In the Deploy Web Applications page, click the Browse button beside the Web Application box to display the Choose File dialog box.

  5. In the Choose File dialog box, locate the WAR file or EAR file for the application and choose Open.

  6. In the Application Name box, enter the name of your application.

  7. In the Map to URL box, enter a forward slash (/) followed by the J2EE Web context root portion of the URL for the application.

    Note: If you are deploying an EAR file, then you must use the same J2EE Web context root name that you specified while packaging the application. (You can find the context-root in the application.xml in the EAR file.)

  8. Click the Deploy button to complete the deployment to Oracle Application Server.

Now, you are ready to start your application.