Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Create virtual mapping to serve static content (alias in forms.conf)

juliojgsApr 19 2022

Hi,
We're migrating from forms 11g to 12c
We have in our app some static content, like help html files.
To serve it, in 11g, we added an alias in the forms.conf , like this:

AliasMatch /forms/docs/(..*) "/app/docs/$1"
WLExcludePathOrMimeType /forms/docs/

This forms.conf file is located here in 11g:
/product/oracle/Middleware/asinst_1/config/OHS/ohs1/moduleconf
Now, I'd like to keep this working in 12c.
I added it in forms.conf file in our new 12c server:
$DOMAIN_BASE/mydomain/config/fmwconfig/components/OHS/instances/ohs1/moduleconf/forms.conf
But when I try the url, I get a 404 not found error.
Any hint?

This post has been answered by Michael Ferrante-Oracle on Apr 20 2022
Jump to Answer

Comments

103122
Have you tried setting LD_LIBRARY_PATH=%ORACLE_HOME%/Lib ? I don't know if it will work, but it's a good first thing to try.
On Windows the variable would be PATH
789319
thanks for the reply i tried but it didn't work




pavanbabu g.s
Fahd.Mirza
Hi,
Please make sure that you have full rights and logged in as administrator user. Also check that in the PATH environment variable in Windows, the above mentioned path is included at the front.

regards
862974
I met this issue too and I fixed it.
The issue is that there were several copy of "OCI.dll" exist in different plance and they belong to different Oracle version. I remove the other version's OCI and the app works fine.
Also I use the following setup.py

from distutils.core import setup
import py2exe, sys

sys.argv.append('py2exe')

setup(
options = {'py2exe': {
'bundle_files': 2,
'compressed': True,
'dll_excludes': ["oci.dll"]
}},
console = [{'script': "test.py"}],
zipfile = None
)
1 - 5

Post Details

Added on Apr 19 2022
3 comments
143 views