This appendix contains the following sections:
GlassFish Server is an application server that can be configured to run Oracle ADF applications. If you do not have a GlassFish Server installation, you can download GlassFish Server from the GlassFish website. Before you can run ADF applications in a GlassFish Server, you need to configure GlassFish with the Oracle ADF Runtime libraries.
For a list of the supported Oracle ADF features for GlassFish, go to the OTN site at
For instructions on obtaining and installing GlassFish, see
For information about developing ADF applications for GlassFish, see the "Deploying ADF Applications to GlassFish" appendix in the Developing Fusion Web Applications with Oracle Application Development Framework.
Oracle ADF Essentials supports the Open Source and commercial versions of GlassFish Server. With either version, you will need the Full Platform distribution. The Web Profile distribution is not supported. After you have installed the GlassFish Server, you need to obtain the ADF Essentials
adf-essentials.zip file from OTN and follow the instructions in this appendix to install the ADF Runtime libraries.
For information on how to start and stop the server and other application server tasks, see GlassFish documentation at the GlassFish website.
You will need to perform the following tasks, as described in the following topics:
You can download the open source version of the GlassFish Server from the GlassFish website:
Follow the instructions and documentation at the GlassFish site to install and configure a GlassFish Server.
In order for a GlassFish Server to run Oracle ADF applications, you must install the ADF Runtime library files into the GlassFish installation directory.
You can download the Oracle ADF Essentials
adf-essentials.zip file from the Oracle Technology Network at
After you have downloaded the
adf-essentials.zip file, you can extract the files to a flat-structured temporary directory which you can use to copy the required files into the GlassFish installation directories.
For instance, if you are using
unzip, you can add the
-j option to create a flat directory structure that has no hierarchical folders.
unzip -j <file> -d <destination>
The ADF Runtime libraries consists of the following:
ADF Share libraries
ADF Model libraries
ADF Controller libraries
ADF View libraries
The ADF Share libraries must be manually installed into the GlassFish installation. You use your operating system commands or tools to copy the files into GlassFish. For instructions, see Section A.3.1
The ADF Model, ADF Controller, and ADF View libraries are loaded into GlassFish with the deployed application. When you use JDeveloper to develop the application, you will reference the required libraries before you package the application into an EAR file for deployment.
The steps for installing the ADF Runtime libraries are:
Configure ADF Share libraries.
Copy the ADF Share libraries from
adf-essentials.zip into the GlassFish installation.
Deploy the application as an EAR file to GlassFish Server.
It may be helpful to have an understanding of the options that are available to you when you are mapping ADF Share for GlassFish. For more information, see Section A.3
You will need to complete these tasks:
Install the GlassFish Server
adf-essentials.zip file and unzip it to a temporary directory
To install the ADF Share Runtime libraries:
Copy or move the ADF Share library files from the temporary directory to the
The ADF Share files should be in the temporary directory where you had unzip the
adf-essentials.zip file as described in Section A.2.2 This directory should be
You must copy the following JAR files into the
oracle.adf.share.ca_12.1.3/adf-share-base.jar oracle.adf.share.ca_12.1.3/adf-share-ca.jar oracle.adf.share_12.1.3/commons-el.jar oracle.adf.share_12.1.3/adf-share-support.jar oracle.adf.share_12.1.3/adfsharembean.jar oracle.adf.share_12.1.3/jsp-el-api.jar oracle.adf.share_12.1.3/adflogginghandler.jar oracle.adf.share_12.1.3/oracle-el.jar oracle.mds_12.1.3/mdsrt.jar oracle.bali.share_12.1.3/share.jar oracle.xmlef_12.1.3/xmlef.jar oracle.javatools_12.1.3/resourcebundle.jar oracle.javatools_12.1.3/javamodel-rt.jar oracle.javatools_12.1.3/javatools-nodeps.jar oracle.javatools_12.1.3/oicons.jar oracle.adf.security_12.1.3/adf-share-security.jar oracle.adf.security_12.1.3/adf-controller-security.jar oracle.xdk_12.1.3/xmlparserv2_sans_jaxp_services.jar oracle.xdb_11.1.0.jar oracle.jrf_12.1.3/jrf-api.jar oracle.jdbc_11.2/ojdbc6dms.jar oracle.dms_12.1.3/dms.jar oracle.odl_12.1.3/ojdl.jar oracle.odl_12.1.3/ojdl2.jar oracle.classloader_11.1.1.jar oracle.logging-utils_11.1.1.jar oracle.web-common_12.1.3.jar org.apache.bcel_5.1.jar oracle.nlsrtl_11.2.0/orai18n-mapping.jar org.apache.commons.beanutils_1.8.3 org.apache.commons.logging_1.1.1 oracle.jsp_12.1.3/globaltldcache oracle.mds_12.1.3/mdsrt com.oracle.webservices.fmw.oc4j-ws-support-impl_12.1.3 oracle.http_client_12.1.3 oracle.web-common_12.1.3 oracle.web-common-schemas_12.1.3
Verify the libraries.
After you have installed the ADF Runtime into the GlassFish Server, you need to perform additional configuration tasks on GlassFish.
The configuration tasks are:
You can use the GlassFish Administration Console to configure the GlassFish Server including managing applications, JDBC pools, and other resources. If you are using GlassFish 3.1.2, the secure console is disabled by default. You would need to enable secure console to access the admin page remotely or only access the page from the same machine where the GlassFish server is running.
The GlassFish Administration Console is at:
It may be helpful to have an understanding of the options that are available to you when you are creating a datasource for GlassFish. For more information, see Section A.4.
You can use the GlassFish console or use asadmin commands to create the datasource. For using the GlassFish console to create a datasource, see GlassFish documentation.
To create a datasource for GlassFish using asadmin commands:
Open a command line window.
asadmin command to create a datasource for GlassFish.
For instance, the following command creates a datasource for an application:
asadmin> create-jdbc-connection-pool --datasourceclassname oracle.jdbc.pool.SampleDataSource --restype javax.sql.XADataSource --property user=xyz :password=xyz:url=jdbc:oracle:thin:@machine.com:1521:machine --target=server SampleDSPool asadmin> ping-connection-pool sampleDSPool asadmin> create-jdbc-resource --connectionpoolid SampleDSPool jdbc/OracleDS
You need to configure the JVM settings to
simple and increase the memory size from 192 Mb to 512 Mb.
It may be helpful to have an understanding of the options that are available to you when you are configuring JVM for GlassFish. For more information, see Section A.4
To configure JVM Cache for MDS:
Start the GlassFish Administration Console.
Choose Configurations > server-config > JVM Settings.
Select JVM Options and specify
Or, open the
/domains/domain1/config/domain.xml file and edit the following entries:
After you have referenced the libraries in the application, you can proceed to deploy the application to GlassFish Server. For more information, see the "Deploying ADF Applications to GlassFish" appendix in the Developing Fusion Web Applications with Oracle Application Development Framework.