Web application deployment for WebLogic

You can use Oracle WebLogic Server with Oracle or PostgreSQL databases.

After WebLogic is installed and started, you edit configuration .xml files in the arcgis.war file. Then use the WebLogic Server Administration Console to deploy the web application.

Altering configuration files in the arcgis.war file

You must add entries to the web.xml and weblogic.xml files for your data source and JNDI names, respectively. These files must be placed in the WEB-INF directory of the arcgis.war file that was installed with ArcGIS Spatial Data Server for Java.

Unpackaging the arcgis.war file

You must unpackage (extract) the arcgis.war file to add the altered web.xml and weblogic.xml files to it. Before extracting the .war file, make a backup copy of it.

Altering the web.xml file

Steps:
  1. Navigate to the WEB-INF directory in the unpackaged arcgis.war file.
  2. Open the web.xml file in a text editor.
  3. Add the following <resource-ref> element and change the <res-ref-name> parameter to match the value of the JNDI Name parameter in your JDBC Connection Pool that was created and defined in the WebLogic Administrative Console when you configured your data source.

    <resource-ref>
     <res-ref-name>jdbc/osid_pubu</res-ref-name>
     <res-type>javax.sql.DataSource</res-type>
     <res-auth>Container</res-auth>
     <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    

  4. Save and close the web.xml file.

Altering the weblogic.xml file

Steps:
  1. Create a weblogic.xml file in the WEB-INF directory.
  2. Open the weblogic.xml file in a text editor.
  3. Add the following and change the <res-ref-name> and <jndi-name> parameters to match those you proved when you set up your data source:

    <weblogic-web-app>
     <resource-description>
      <res-ref-name>jdbc/osid_pubu</res-ref-name>
      <jndi-name>jdbc/osid_pubu</jndi-name>
     </resource-description>
    </weblogic-web-app>
    

  4. Save and close the weblogic.xml file.

Repackaging the arcgis.war file

After the web.xml and weblogic.xml files in the WEB-INF directory have been edited, repackage (compress) the arcgis.war file. Do not rename the file; it must be named arcgis.war.

Deploying the web application

Use the WebLogic Server Administration Console to deploy the application.

Steps:
  1. Log in to your WebLogic Server domain from WebLogic Server Administration Console as the WebLogic administrator.
  2. Choose Deployments in the Domain Structure tree.
  3. Click Install under Deployments.

    The Install Application Assistant opens.

  4. Choose the path to the updated arcgis.war file you repackaged in the last section and click Next.
  5. Click Install this deployment as an application and click Next.
  6. Accept the default optional settings and click Finish.

Your web application is now listed in the Deployments table.

7/19/2012