Assume images are located under C:\APEX_HOME\apex_22.1_en\apex\images
Create directory WEB-INF under location
C:\Software\APEX_HOME\ords-23.3.0.289.1830\WEB-INF
Create two files with below contents :-
- web.xml
- weblogic.xml
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app>
<!-- This Web-App leverages the alternate doc-root functionality in WebLogic to serve static content
For WebLogic refer to the weblogic.xml file in this folder
-->
</web-app>
weblogic.xml
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">
<!-- This element specifies the context path the static resources are served from -->
<context-root>/i</context-root>
<virtual-directory-mapping>
<!-- This element specifies the location on disk where the static resources are located -->
<local-path>C:\APEX_HOME\apex_22.1_en\apex\images</local-path>
<url-pattern>/*</url-pattern>
</virtual-directory-mapping>
</weblogic-web-app>
Create i.war file
cd C:\Software\APEX_HOME\ords-23.3.0.289.1830>C:\Java\jdk-17\bin\jar.exe cMf i.war WEB-INF\web.xml WEB-INF\weblogic.xml
FOR ORDS upto version 21, you can use below process
cd C:\\APEX_HOME\ords21>C:\Java\jdk-17\bin\java.exe -jar ords.war static C:\APEX_HOME\apex_22.1_en\apex\images
No comments:
Post a Comment