Deploying the application to Sun Java System Application Server

Release 9.3 E-mail This Topic Printable Version Give Us Feedback

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.

NOTE: to allow Web applications created with ArcGIS Server Manager to run properly, the following permissions must be explicitly added to the server.policy file located under the <DOMAIN_HOME>/conf directory:

        grant {
        //permission to alter log settings, like changing the log level or adding log handlers 
        permission java.util.logging.LoggingPermission "control", "";
        //permission to add hooks into JVM shutdown
        permission java.lang.RuntimePermission "shutdownHooks";
        //permissions to alter threads
        permission java.lang.RuntimePermission "modifyThread";
        permission java.lang.RuntimePermission "stopThread";
        //permissions to read/write environment variables
        permission java.util.PropertyPermission "JINTEGRA_RELEASEALL_SHUTDOWN_HOOK", "write";
        permission java.util.PropertyPermission "JINTEGRA_IUNKNOWN_VARIANT_OBJECTS", "write";
        //permissions to create classloaders
        permission java.lang.RuntimePermission "createClassLoader";
        permission java.lang.RuntimePermission "getClassLoader";
        //permissions to create sockets
        permission java.net.SocketPermission "*", "connect,accept,resolve";
        //permissions to read/write property files
        permission java.util.PropertyPermission "*", "read,write";
        };

In Manager, locate the existing Web application on the Applications page.

  1. Check the box next to the Web application you want to deploy to Tomcat and hit the 'Export' button.
  2. In the File Download dialog that appears, click the Save button.
  3. In the 'Save as type:' section, choose All Files.
  4. 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: /usr/home/temp/myapp.war)
  5. Start the Sun Java System Application Server. Open the Admin Console and enter your administrative credentials to log into the system. (NOTE: By default, the administrative username and password are admin/adminadmin.)
  6. In the Common Tasks section of the console, browse to the 'Application Server -->Applications-->Web Applications' node and select it. This will bring you to a list of deployed applications in the right-hand panel of the console. Click the 'Deploy' button.
  7. In the 'Deploy Web Module' page, select the first radio button in the 'Location' section and click the browse button to locate your .war file (For example, /usr/home/temp/myapp.war). Click 'Next'.
  8. Here, you can change the name of the application and the context root if you wish. For the purposes of this discussion, you can take these defaults and click the OK button to deploy the application.
  9. The list of deployed Web applications will appear when deployment is complete. You should see yours in the list.

Testing your deployment

In the list of deployed web applications in the console, click the 'Launch' link found in the far right column of the list. This will open the Web application in a new browser window.