How To Create Virtual Mappings For Forms 11.1.1.1.0
How To Create Virtual Mappings For Forms 11.1.1.1.0
Titleimage
Posted by Patrick Hamou on 2016:04:19 16:38:53
Introduction
Applies to:
Oracle Forms - Version 11.1.1.1.0 to 11.1.1.1.0 [Release 11g]
Information in this document applies to any platform.
Goal
How do I create an alias mapping (e.g. http://<host>:<port>/forms/myMapping) for Oracle Forms?
Fix
There will be two ways to do virtual mappings.
For the WLS_FORMS service mapping has to be made in weblogic.xml.
For version 11.1.1.1.0 this file is located in $DOMAIN_HOME/servers/WLS_FORMS/stage/formsapp/11.1.1/formsapp/formsweb.war/WEB-INF/
Mapping in weblogic.xml could be like:
<virtual-directory-mapping>
<local-path>C:\VirtualDirectories</local-path>
<url-pattern>myMapping/*</url-pattern>
</virtual-directory-mapping>
Please note that the url-pattern is added to local-path which means files when calling URL http://.../forms/myMapping is located in C:\VirtualDirectories\myMapping.
When using the HTTP Server port, mappings can be made in forms.conf.
(Mappings made in weblogic.xml can also be used by HTTP Server).
Mapping forms.conf could be like:
AliasMatch ^/forms/myMapping/(..*) "C:\VirtualDirectories\myMapping/$1"
WLExcludePathOrMimeType /forms/myMapping/
Please note the slash before '$' must be a slash, not backslash. This goes for MS Windows platforms as well.
In version 11.1.1.2 and above, please see Note 1063043.1
Posted by Patrick Hamou on 2016:04:19 16:38:53