This topic describes the OC4J server configuration tasks you would perform if you were to deploy ADF UIX web applications in a standalone OC4J instance manually. All of the configuration tasks described here can be performed using administrative tools such as Oracle Enterprise Manager . This topic is mostly intended for developers who need to run their UIX applications in the simplest possible OC4J configuration during development. To take advantage of advanced OC4J capabilities, such as load balancing and EJB hosting, see the OC4J documentation set that ships with Oracle Application Server.
The instructions here assume a standalone OC4J version has already been
installed in the directory <oc4j_install>
.
See About OC4J Directory Structure
for UIX Deployment for a sample directory structure that is set up
for deploying a UIX application in standalone OC4J. If you need help
with downloading and installing OC4J, see the "Oracle Application
Server Containers for J2EE Stand Alone User's Guide."
To configure a standalone OC4J instance for UIX deployment:
Oracle recommends that you install the UIX runtime files (
uix2.jar
, regexp.jar
, and share.jar
) in the <oc4j_install>/jlib
directory,
and add <library>
elements to the server.xml
file for each JAR file. This enables multiple applications in the same OC4J
instance to share the runtime JAR files.
See the "Configuration for ADF UIX" chapter of the ADF UIX Developer's Guide for details on how to set up a shared UIX installable resources application.
The UIX installable resources are distributed in the
uix2-install.zip
file, the contents of which will unzip into
the cabo
directory. Oracle recommends that you deploy
the UIX installable resources to a dedicated web application (
cabo
) in OC4J. This configuration enables multiple UIX
applications in the same OC4J container to share a common version of
the installable resources.
<oc4j_install>
/j2ee/home/applications
, e.g., <oc4j_install>
/j2ee/home/applications/<myuixapp1>
.
For EAR file deployments, place the EAR files in the root of
<oc4j_install>
/j2ee/home/applications
.
application.xml
file in
<oc4j_install>
/j2ee/home/applications/
<myuixapp1>/META-INF
.
server.xml
file.
web.xml
) in <oc4j_install>
/j2ee/home/applications/<myuixapp1>/<uixwebapp1>
/WEB-INF
.
http-web-site.xml
file.
http-web-site.xml
and application.xml
.
server.xml
and http-web-site.xml
.
See Working with the Standalone OC4J Application Server and the "Configuration for ADF UIX" chapter of the ADF UIX Developer's Guide for information about the OC4J server configuration files you have to edit to set up your deployed application.
<oc4j_install>
/j2ee/home
directory:
java -jar oc4j.jar
You should see "Oracle Application Server <version number> Containers for J2EE initialized." OC4J automatically detects and decompresses EAR files.
Note: Stop the OC4J instance before upgrading. Restart OC4J after upgrading UIX.
uix2.jar
, regexp.jar
, and
share.jar
to the <oc4j_install>/lib
directory.
uix2-install.zip
into the
directory where the shared UIX resources are installed, e.g.,
<oc4j_install>/j2ee/home/applications/<uix-shared-install>
.
cabo
cache directories in each
deployed web application directory, e.g., <oc4j_install>
/j2ee/home/applications/<myuixapp1>/<uixwebapp1>
/cabo
.
Notes:
Deploying to the Oracle Application
Server or Standalone OC4J
Working with the Standalone OC4J Application Server
Copyright © 1997, 2004, Oracle. All rights reserved.