Create Virtual Mapping for Forms 11g | Deploy Images and Icons in Forms 11g

This article explains virtual Directory Mapping for Forms 11g version 11.1.1.1.0. This mapped virtual directory can be used to deploy icons, images, HTML and other files. First part explains how to create virtual mapping to deploy an HTML file and second part explains how to deploy icons and images in Forms 11g.

Create a directory as C:\myapp
Now create an HTML file named “MY.HTML” and place it in C:\myapp directory.
Now locate the file weblogic.xml in following directory

$DOMAIN_HOME\servers\WLS_FORMS\stage\formsapp\11.1.1\formsapp\formsweb.war\WEB-INF\

Now add following line to weblogic.xml file

<virtual-directory-mapping>
<local-path>C:\myapp</local-path>
<url-pattern>myapp/*</url-pattern>
</virtual-directory-mapping>

Now open Forms.conf file which can be located at following location

$ORACLE_INSTANCE\config\OHS\ohs1\moduleconf

Add following two line in this file

AliasMatch ^/forms/myapp/(..*) “C:\myapp/$1”
WLExcludePathOrMimeType /forms/mypp/

Now Restart HTTP server and open following URL

Http://localhost:8090/forms/myapp/my.html

If page is displayed, virtual mapping is successful.

Note that virtual mapping for Forms 11.1.1.2 is not supported in this way.

Deploy Images and Icons in Forms 11g

Similarly mapped virtual directory can be used to deploy icons and images. To deploy icons or images do following.

Add icons/images to a JAR file using following command

<Oracle Home>\jdk\bin\jar –cvf myAppIcons.jar *.gif

Now place this myAppIcons.jar file to c:\myapp directory .
Now modify formsweb.cfg file by adding following bold face words,

archive=frmall.jar,/forms/myapp/myAppIcons.jar
imageBase=codebase

This JAR file can also be places in a pre-mapped directory like $ORACLE_HOME\forms\java.
If you do not want to create JAR files of icons, you can directly place your icons in $ORACLE_HOME\forms\java directory

Reference: Support.oracle.com (document id. 981095.1)

Leave a Reply

Your email address will not be published. Required fields are marked *