Deploying the application to Oracle WebLogic

You can export a web application from Web Applications Manager and deploy it to Oracle WebLogic application server. The deployment procedures below are for Oracle WebLogic application server 11g.

Steps:
  1. In Web Applications Manager, click the Applications panel, check the box next to the web application you want to deploy, then click Export.
  2. On the web application export page, configure security if desired and click Export. On the File Download dialog box that appears, click Save. Save the .war file to a folder on your computer.
  3. Copy the .war file to a folder on your WebLogic server computer. Extract the contents of the .war file. Create a weblogic.xml file in the \WEB-INF folder of the extracted .war file with the contents below. After adding this file, use the Java jar tool to compress the contents back into a .war file.

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- weblogic.xml -->
    <weblogic-web-app>
      <container-descriptor>
        <prefer-web-inf-classes>true</prefer-web-inf-classes>
      </container-descriptor>
    </weblogic-web-app>
    

  4. Log in to the WebLogic administration console.
  5. Click the Deployments link in the Domain Structure section of the console. The Summary of Deployments page appears.
  6. Click the Install button.
  7. Browse to the location on your file system where the .war file was saved. Click the button next to the .war file and click Next.
  8. Deploy this module as an application: for the targeting style, make sure Install this deployment as an application is selected. Click Next.
  9. Click Next again to accept the defaults and click Finish.
  10. A summary list of the settings for the deployment appears. Click the Save button. If everything went okay, a message in green says All changes have been activated. No restarts are necessary. Settings updated successfully.
  11. Click the Testing tab. Here, you'll find the default URL to the deployed web application. Click the link to launch it in a separate browser window.
10/19/2012