Problem:
Create a new JSP or Servlet, place it in $OA_HTML page of Server or
have a mapping to the Java Resource in web.xml. When resource is tried from the
server, the error “Requested resource or page is not allowed in this site” is displayed
on browser.
Here is a screenshot for the error:
Cause:
Even though the Servlet is added to server and mapping is present,
the resource is to be added to Allowed Resources using “WLDataMigration” tool
to enable it accessible.
This is an additional security introduced in EBS Release 12.2.
Solution Steps:
1.
Create *.conf file:
The mapping for the servlet needs to be imported to EBS using java
utility. The file with mapping is stored in a file with extension “*.conf” and
store in a Unix folder (Assuming application server is Unix).
Here is an example contents for mapping file:
File: cys_servlets.conf
Content:
#/* ---
cys_servlets.conf --- */
# Sample entry
for a servlet whose URL mapping ends with *
servlet
/OA_HTML/oramipp_cys
2.
Upload file using “WLDataMigration” utility:
Next step is to upload the file from Unix (OS) to APPS using “WLDataMigration”
Utility. Here is the command:
java
oracle.apps.fnd.security.resource.WLDataMigration MODE=custom
INPUT_FILE=/export/home/<devuser>/cys_servlets.conf DBC=$FND_SECURE/<DEV>.dbc
Please substitue <devuser< with user name of Application Server Unix Box. Change <DEV> to DBC Filename that defines connection.
This is a java command. Make sure $PATH variable has the java file
for execution.
Make sure EBS Instance environment variables are loaded properly to the server.
Please provide full path of Input File (/export/home/<devuser>/cys_servlets.conf)
Review the command outputs and check for error messages.
Review Allowed Resource Setup:
Once resource mapping is completed, please verify the mapping is
working.
Login User: SYSADMIN
Responsibility: Functional Administrator
Navigation Path: Allowed Resources à Custom
Note: The Green Tick on Web Activity is checked only after the new resource
is accessed from the web client (Any browser).
Access Resource (Connect from Browser):
Once resource mapping is completed, please verify the mapping is
working.
Note: The above output is proper based on Servlet Logic. This is
not an error.
Keywords:
Oracle EBS, “Requested resource or page is not allowed in this
site”, WLDataMigration, Custom Servlet, Allowed Resources, Functional
Administrator, Resource Mapping, httpd.conf, custom_servlet.conf, EBS Resource
Mapping