Override the Default Servlet Alias and the Context Root

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

1.

Extract the EAR file. For example, on UNIX operating systems: cd ORACLE_HOMEcustomappj2ee jar xvf formsapp.ear On Windows operating systems: cd ORACLE_HOME\customapp\j2ee jar xvf formsapp.ear 2. Extract the WAR file. For example, on UNIX operating systems: mkdir -p ORACLE_HOMEcustomappj2eewarfile cd ORACLE_HOMEcustomappj2eewarfile jar xvf ORACLE_HOMEcustomappj2eeformsweb.war On Windows operating systems: mkdir ORACLE_HOME\customapp\j2ee\warfile Using Oracle Forms Services with the HTTP Listener and Oracle WebLogic Server 5-5 cd ORACLE_HOME\customapp\j2ee\warfile jar xvf ORACLE_HOME\customapp\j2ee\formsweb.war 3. Override the servlet alias in web.xml deployment descriptor that is located in the WEB-INF folder. For example, on UNIX operating systems: cd ORACLE_HOMEcustomappj2eewarfileWEB-INF On Windows operating systems: cd ORACLE_HOME\customapp\j2ee\warfile\WEB-INF Edit web.xml in an editor and replace frmservlet with customservlet entries under tags Servlet-Name, url-pattern, welcome-file. 4. Repackage the WAR file. For example, on UNIX operating systems: cd ORACLE_HOMEcustomappj2eewarfile jar cvfM formsweb.war . mv formsweb.war ORACLE_HOMEcustomappj2ee On Windows operating systems: cd ORACLE_HOME\customapp\j2ee\warfile jar cvfM formsweb.war .\ copy formsweb.war ORACLE_HOME\customapp\j2ee\ del formsweb.war 5. Override the application context root in application.xml deployment descriptor that is located in the META-INF folder. For example, on UNIX operating systems: cd ORACLE_HOMEcustomappj2eeMETA-INF On Windows operating systems: cd ORACLE_HOME\customapp\j2ee\META-INF Edit application.xml, change context-root to customapp. 6. Modify the codebase and serverURL entries in formsweb.cfg. For example, on UNIX operating systems: cd ORACLE_HOMEcustomappj2eeconfig On Windows operating systems: cd ORACLE_HOME\customapp\j2ee\config Edit formsweb.cfg and change the context-root entries in serverURL and codebase parameters. For example, Change serverURL=formslservlet to serverURL=customapplservlet. Change codebase from formsjava to customappjava. 7. Repackage the EAR file. 5-6 Forms Services Deployment Guide For example, on UNIX operating systems: cd ORACLE_HOMEcustomappj2ee jar cvfM customapp.ear META-INFMANIFEST.MF APP-INF config formsweb.war META-INF On Windows operating systems: cd ORACLE_HOME\customapp\j2ee jar cvfM customapp.ear META-INF\MANIFEST.MF APP-INF\ config\ formsweb.war META-INF\ 8. Clean the extracted EAR file contents. On UNIX operating systems: rm -rf META-INF APP-INF config META-INF formsweb.war On Windows operating systems: RMDIR META-INF APP-INF config META-INF s q DEL formsweb.war

5.2.1.3 Create the Deployment Plan