Introduction
In our last post, we created an ADF ready Glassfish 4.1 server in a docker. Now it's time to do some work in JDeveloper to create the .ear for our docker.
This tutorial walks through deploying an Oracle ADF application to a Glassfish server.
Download & Setup
Download Oracle Summit ADF samples from the official Oracle downloads page. You can obtain version 12.1.3 for import into JDeveloper 12.2.1.4, which automatically handles version migration.
Database Configuration
Initial testing revealed a database username mismatch. The connection needed adjustment from summit_adf to c##summit_adf to align with the example database script user creation.
Testing Environment
The application was first validated on the IntegratedWeblogic server to verify functionality before Glassfish deployment.
Glassfish-Specific Modifications
Required configuration changes include:
Deployment
Once configured, the application is packaged as an .ear file and deployed to Glassfish 4.1.
Key Configuration Steps
1. Application Module Configuration
Update the datasource connection format in your Application Modules to be compatible with Glassfish naming conventions.
2. Deployment Profile
Change the deployment profile platform setting from WebLogic to Glassfish 3.1 in JDeveloper.
3. JSF Configuration
Update the faces-config.xml to use version 2.1 for Glassfish compatibility.
Conclusion
Deploying ADF applications to Glassfish requires specific configuration changes but provides a viable alternative to WebLogic for development and testing environments.