Version 6.3.3
 —  Natural for Ajax  —

Installation

Natural for Ajax consists of a J2EE enterprise application (njx111.ear) and a J2EE resource adapter (njx111ra.rar). Both components are to be deployed on a J2EE server. Natural for Ajax receives data from Natural applications running on a Windows, UNIX or mainframe host and delivers web pages to the user's web browser.

This document describes the installation of Natural for Ajax on application servers on Windows or UNIX. It does not describe the installation of the additionally required Natural components on a Windows, UNIX or mainframe host, but refers to the corresponding installation documents.

This document covers the following topics:


Prerequisites

The following topics are covered below:

J2EE Server

The following application servers are supported. The application servers are not delivered with Natural for Ajax. They can be obtained from the locations indicated below, according to their respective license terms.

Apache Ant

Apache Ant 1.6.5 or above is required to perform the deployment on JBoss Application Server. This tool is freely available on http://ant.apache.org/.

Natural for Windows

If you want to use Natural for Ajax with Natural for Windows, the following must be installed:

For detailed information, see the following documentation which is provided for Natural for Windows:

Natural for UNIX

If you want to use Natural for Ajax with Natural for UNIX, the following must be installed:

For detailed information, see the Installation documentation which is provided for Natural for UNIX, especially the following sections:

Natural for Mainframes

If you want to use Natural for Ajax with Natural for Mainframes, the following must be installed:

For detailed information, see the following documentation which is provided for Natural for Mainframes:

Development Servers

The following development servers support the remote development of Natural for Ajax applications:

Development Clients

The following development clients support the remote development of Natural for Ajax applications:

Top of page

License Key File Handling

A valid license key file is required during the installation. The license key file is an XML file which is usually supplied along with the product. Alternatively, you can obtain a license key file from Software AG via your local distributor.

Top of page

Installing Natural for Ajax on JBoss Application Server

It is assumed that <jboss> is the directory of your JBoss Application Server installation.

The following topics are covered below:

First-time Installation

Start of instruction setTo install Natural for Ajax

  1. Edit the file <jboss>/server/default/deploy/jbossjca-service.xml and change the setting

    <!-- Enable connection close debug monitoring -->
    <attribute name="Debug">true</attribute>

    to

    <!-- Enable connection close debug monitoring -->
    <attribute name="Debug">false</attribute>
    
  2. Install Apache Ant (you need Apache Ant to deploy Natural for Ajax to the JBoss Application Server; see the Prerequisities above for the required version number):

    1. Download and unzip Apache Ant (from http://ant.apache.org/) into an installation directory of your choice. Avoid a directory name that contains blanks.

    2. Let the environment variable ANT_HOME point to the directory <ant> (where <ant> is the directory of your Ant installation).

    3. Add <ant>/bin to your PATH environment variable.

  3. Deploy Natural for Ajax to JBoss Application Server:

    1. Copy the Natural for Ajax distributables to a directory on a disk drive.

    2. In the directory that contains the Natural for Ajax distributables, there is an Ant script named jbossdeploy.xml. Edit this script and change the setting

      <property name="jbosshome" value=""/>

      to

      <property name="jbosshome" value="<jboss>"/>

      where <jboss> is your JBoss Application Server installation directory.

      Important:
      Take care to use forward slashes (also on Windows) when specifying the directory path.

    3. Execute the script jbossdeploy.xml by entering the following command:

      ant -f jbossdeploy.xml

      Wait for the message "BUILD SUCCESSFUL". This indicates that the deployment was successful.

  4. Copy the license file into the directory <jboss>/server/default/deploy/njx111.ear/cisnatural.war/cis/licensekey.

  5. Start JBoss Application Server.

Update Installation

Start of instruction setTo update Natural for Ajax

  1. Shut down JBoss Application Server.

  2. Deploy Natural for Ajax to JBoss Application Server:

    1. Copy the Natural for Ajax distributables to a directory on a disk drive.

    2. In the directory that contains the Natural for Ajax distributables, there is an Ant script named jbossdeploy.xml. Edit this script and change the setting

      <property name="jbosshome" value=""/>

      to

      <property name="jbosshome" value="<jboss>"/>

      where <jboss> is your JBoss Application Server installation directory.

      Important:
      Take care to use forward slashes (also on Windows) when specifying the directory path.

    3. Execute the script jbossdeploy.xml by entering the following command:

      ant -f jbossdeploy.xml redeploy

      Wait for the message "BUILD SUCCESSFUL". This indicates that the deployment was successful.

  3. Regenerate the HTML pages of the projects that you have created with an earlier release of Natural for Ajax. For each project to regenerate, execute the script jbossdeploy.xml by entering the following command:

    ant -f jbossdeploy.xml regenerate -Dnjxproj=<projectname>

    Wait for the message "BUILD SUCCESSFUL". This indicates that the generation was successful.

  4. Start JBoss Application Server.

Top of page

Installing Natural for Ajax on Sun Java System Application Server

Natural for Ajax is installed using the Adminstration Console of Sun Java System Application Server.

The following is assumed:

The following topics are covered below:

First-time Installation

Start of instruction setTo install Natural for Ajax

  1. Start the application server.

  2. Open your web browser and enter the following URL:

    http://<host>:<adminport>

    This opens the Adminstration Console.

  3. Deploy the resource adapter njx111ra.rar:

    1. Open the tree node Applications > Connector Modules.

      Application Server

    2. Choose Deploy.

    3. Select njx111ra.rar as the package file to be uploaded to the application server.

    4. Choose Next. "njx111ra" is automatically included as the application name.

    5. Choose Finish.

  4. Define the JNDI name for the resource adapter:

    1. Open the tree node Resources> Connectors >Connector Connection Pools.

      Resources

    2. Choose New.

    3. Enter "NatPool" (the name is arbitrary) as the name.

    4. Select njx111ra as the resource adapter.

    5. Choose Next.

    6. Choose Next.

    7. Choose Finish.

    8. Open the tree node Resources> Connectors >Connector Resources.

    9. Choose New.

    10. Enter "eis/NaturalUnicodeRA" as the JNDI name.

    11. Select NatPool (or whatever name you specified previously) as the pool name.

    12. Choose OK.

  5. Deploy the enterprise application njx111.ear:

    1. Open the tree node Applications > Enterprise Applications.

      Application Server

    2. Choose Deploy.

    3. Select njx111.ear as the file to upload.

    4. Choose Next.

    5. Choose OK. The deployment may take several minutes.

  6. Copy the license file into the directory <sunas>/domains/domain1/applications/j2ee-apps/njx111/cisnatural_war/cis/licensekey.

  7. Edit the file <sunas>/domains/domain1/config/server.policy and add the followings settings:

    // Allow Application Designer to create an own class loader
    grant {
    permission java.lang.RuntimePermission "createClassLoader";
    };
    
    // Allow Application Designer to modify its own project directories
    grant {
    permission java.io.FilePermission
    "${com.sun.aas.instanceRoot}${/}applications${/}j2ee-apps${/}njx111${/}cisnatural_war${/}-",
    "read,write,delete";
    };
    
  8. Restart the application server.

Update Installation

Start of instruction setTo update Natural for Ajax

  1. Shut down the application server.

  2. Create a backup copy of your sessions.xml file, which is located in <sunas>/domains/domain1/applications/j2ee-apps/njx111/cisnatural_war/WEB-INF.

  3. Create a backup copy of your license file, which is located in <sunas>/domains/domain1/applications/j2ee-apps/njx111/cisnatural_war/cis/licensekey.

  4. Create backup copies of previously created projects, which are located in <sunas>/domains/domain1/applications/j2ee-apps/njx111/cisnatural_war.

  5. Start the application server.

  6. Start a web browser and enter the following URL:

    http://<host>:<adminport>

    This opens the Adminstration Console.

  7. Undeploy the resource adapter njx111ra.rar.

  8. Undeploy the enterprise application njx111.ear.

  9. Deploy the new version of Natural for Ajax as in a first-time installation.

  10. Shut down the application server.

  11. Restore the files that you have backed up in steps 2, 3 and 4.

  12. Start the application server.

  13. Start a web browser and enter the following URL:

    http://<host>:<port>/cisnatural

    This opens the Application Designer development workplace.

  14. In the Development Tools node of the navigation frame, choose Layout Manager.

  15. For each application project that you have created with an earlier release of Natural for Ajax, select the layout definitions and from the Operations on multiple Items menu, choose (Re)Generate HTML Pages.

Top of page

Verifying the Installation

It is assumed that http://<host>:<port> is the URL of your application server.

Start of instruction setTo verify the installation

  1. Enter the following URL in your web browser:

    http://<host>:<port>/cisnatural

    This opens Application Designer's development workplace.

  2. Enter the following URL in your web browser:

    http://<host>:<port>/cisnatural/servlet/StartCISPage?PAGEURL=/cisnatural/NatLogon.html

    This opens the Natural logon page. The installation is now complete.

Top of page