Deploying the application to Oracle Application Server
The deployment procedures below are for using Sun Java System Application Server
8.2. The procedures for using different versions of the Sun Java System may
vary.
In Manager, locate the existing Web application on the Applications page.
-
Check the box next to the Web application you want to deploy to Tomcat and hit
the 'Export' button.
-
In the File Download dialog that appears, click the Save button.
-
In the 'Save as type:' section, choose All Files.
-
The default file name extension will be .zip. Change this to .war
and save it to the file system. Click the 'Close' button when Save is complete.
(For example: C:\temp\myapp.war)
-
Place the .war file in the
<oracle_home>\j2ee\home\applications directory
- Start the Oracle Application Server and login to
the Oracle Enterprise Manager at http://localhost:8888/em
- Go to the applications tab and click Deploy
-
Choose “Archive is already present…” and type the location and name of the .war
file
(For example: C:\oas\j2ee\home\applications\parcels.war)
- Verify that "Automatically create a new
deployment plan" is selected
- Click Next to get to Step 2 of 3
- Enter the name of the application
- Verify the Context Root field has the correct name and click Next to get
to Step 3 of 3
- On the Step 3 of 3 page of the “Deploy: Deployment Settings” page, click
on the pencil symbol under the Go To Task column for Map Security Roles
- Click on the pencil symbol in the Map Role field. NOTE: Setting up roles
is optional. You can continue to step 17 if you do not wish to secure your
application.
- Type the name of the user or group you want to add and click Add. You may
repeat this steps for all users and groups you want to add.
- Click Continue
- Click OK to close the Map Security Roles window
- Click Deploy
-
Logout of the Enterprise Manager and restart OAS for the changes to take
effect.
To deploy an ArcGIS Manager generated EAR file through Oracle Application Server
Control, perform the following steps:
-
Open your browser and enter the following URL: http://hostname.domain:7777/em
-
Click the home link in the Cluster Topology page.
-
Enter oc4jadmin in the User Name field and enter the password you configured
your Oracle application server with in the Password field. Click Login
-
The OC4J home component page opens. You should be able to see
status/performance metrics for this Oc4J instance.
-
Now, use the applications page link to view and manage your J2EE applications
(deployed to the Oc4J container). Click the Applications page link to display
the applications for the home instance.
-
Click deploy to launch the deploy application wizard.
-
On the deploy, select archive page and browse to select the manager generated
ear file from the files directory as the EAR file to deploy. Click Next.
-
Configure Application Attributes if needed and give the application a name
(type the same in Application Name field). Click Next.
-
Now Click Deploy on the Deploy: Deployment Settings page.
-
The GIS EJB Application should have successfully deployed. Click Return on the
Confirmation page. Application Server control should return you back to the
application property page of the Oc4J home instance.
-
Note that your deployed EJB application shows up in the list.