Prerequisite Steps Custom Deployment of Forms Java EE Application

Using Oracle Forms Services with the HTTP Listener and Oracle WebLogic Server 5-3 ■ Modifying weblogic.xml, web.xml, application.xml and weblogic-application.xml post deployment: For more information, refer to Section 5.2.4, Modification of Forms J2EE Application Deployment Descriptors . ■ Starting Forms Managed Server as a Windows Service: For more information, refer to Setting Up a WebLogic Server Instance as a Windows Service in Oracle Fusion Middleware Managing Server Startup and Shutdown for Oracle WebLogic Server.

5.2.1 Custom Deployment of Forms Java EE Application

To create a custom managed server and deploy Forms application on it, perform the following steps:

5.2.1.1 Prerequisite Steps

1.

Set the following environment variables to the paths specified: ■ MW_HOME: Set this variable to point to the Oracle Middleware Home location for more information, see A.9 Specify Installation Location Screen in Oracle Fusion Middleware Installation Guide for Oracle Portal, Forms, Reports and Discoverer. ■ ORACLE_HOME: Set this variable with the absolute path of the Oracle Home directory. For more information, see A.9 Specify Installation Location Screen in Oracle Fusion Middleware Installation Guide for Oracle Portal, Forms, Reports and Discoverer. ■ DOMAIN_HOME: Set this variable with the location of the folder created by Oracle WebLogic Server for the domain specified in A.7 Select Domain Screen in Oracle Fusion Middleware Installation Guide for Oracle Portal, Forms, Reports and Discoverer. 2. Specify the JDK path in the system path. Enter the path to the Java executable. For example on UNIX operating systems, enterMW_HOMEjdkversionbin in the system path on Windows operating systems, the path is MW_HOME\jdkversion\bin. 3. Create a managed server, for example, WLS_FORMS_CUSTOM_APP, as part of the same cluster as the default managed server WLS_FORMS. For more information on adding a managed server, refer to Adding Additional Managed Servers to a Domain in Oracle Fusion Middleware Administrator’s Guide. 4. Specify the following properties of the managed server using the WebLogic Administration Console. ■ Classpath: Specify the value: ORACLE_HOMEopmnliboptic.jar on Windows operating systems: ORACLE_HOME\opmn\lib\optic.jar. Replace ORACLE_HOME with the absolute path. ■ Arguments: Specify the following values: Dclassic.oracle.home=ORACLE_HOME - Doracle.instance=ORACLE_INSTANCE - Doracle.instance.name=ORACLE_INSTANCE_NAME -Doracle.forms.weblogic=1 Make sure all the entries are in a single line without any carriage returns. Replace ORACLE_HOME, ORACLE_INSTANCE with the absolute paths. Replace ORACLE_INSTANCE_NAME with the name of the Oracle Instance default name asinst_1. 5-4 Forms Services Deployment Guide For more information, refer to Server Start in Oracle WebLogic Administration Console Help. 5. Perform the following steps to create a folder structure in ORACLE_HOME: a. On UNIX operating systems, create a new folder for the custom application. For example, create customapp as follows: mkdir -p ORACLE_HOMEcustomapp Create a Java folder in customapp and create a symbolic link for the folder as follows: For example: cd ORACLE_HOMEcustomapp ln -s ORACLE_HOMEformsjava ORACLE_HOMEcustomappjava Copy the application files to the new folder. For example: cp -rpf ORACLE_HOMEformsj2ee ORACLE_HOMEcustomapp b. On Windows operating systems, use the following commands to create a folder structure under ORACLE_HOME directory: mkdir ORACLE_HOME\customapp\java mkdir ORACLE_HOME\customapp\j2ee cd ORACLE_HOME\customapp xcopy S E ORACLE_HOME\forms\java ORACLE_ HOME\customapp\java xcopy S E ORACLE_HOME\forms\j2ee ORACLE_ HOME\customapp\j2ee

5.2.1.2 Override the Default Servlet Alias and the Context Root