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:
- In Web Applications Manager, click the Applications panel, check the box next to the web application you want to deploy, then click Export.
- 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.
-
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>
- Log in to the WebLogic administration console.
- Click the Deployments link in the Domain Structure section of the console. The Summary of Deployments page appears.
- Click the Install button.
- 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.
- Deploy this module as an application: for the targeting style, make sure Install this deployment as an application is selected. Click Next.
- Click Next again to accept the defaults and click Finish.
- 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.
- 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