Update and Validate Your Java Applications
The following are the high-level steps for preparing a Java EE app currently running on Oracle Java Cloud Service - SaaS Extension, to run on Oracle WebLogic Server for OCI.
Take note of the following application environment changes. You will need to update your application code to account for the different compatible versions between the two environments. For details of the differences in each product version, see the product documentation.
Area | Oracle Java Cloud Service - SaaS Extension | Oracle WebLogic Server for OCI |
---|---|---|
Oracle Java Standard Edition | JDK 7 | JDK 8 |
Oracle Java Enterprise Edition | Java EE 5 | Java EE 7 |
Oracle WebLogic Server | WebLogic Server 11g (10.3.6) | WebLogic Server 12c |
Oracle Fusion Middleware | Oracle Fusion Middleware 11g Release 1 (11.1.1.7.1 or 11.1.1.9.1) | Oracle Fusion Middleware 12c Release 2 (12.2.1.x) |
Oracle JDeveloper | Oracle JDeveloper 11g | Oracle JDeveloper 12c |
Note that upgrading your Oracle WebLogic Server includes upgrading WebLogic (Java EE) web services (JAX-RS and JAX-WS).
Perform Required Update and Validation Steps
Re-factor and then test your Java applications for the new environment.
Each of the following steps highlights at a high level a process you need to perform to update and validate your applications.
Diagnose and Resolve Permissions Issues
You may find that some of your Java application code throws
AccessControlException
errors in the new environment. You can diagnose
and resolve these permission issues by checking logs for details and then configuring
permission grants using Oracle Enterprise Manager
Fusion Middleware Control.
When defining the codeBase to grant permissions (in step 2 of the following procedure), the following environment variables may be helpful:
oracle.deployed.app.dir=/u01/data/domains/wls_domain/servers/wls_adminserver/tmp/_WL_user
oracle.deployed.app.ext=/-
common.components.home=/u01/app/oracle/middleware/oracle_common
domain.home=/u01/data/domains/wls_domain
To diagnose and resolve permissions issues: