Upgrading Oracle MAF in Jdeveloper

INTRODUCTION

The process of upgrading Oracle MAF plugin in Jdeveloper is very simple. In Jdeveloper, go to the Help menu, click on Check for Updates and you should be able to install the latest MAF plugin. If everything goes well, you can start making any changes required for the new MAF version as detailed on the once Jdeveloper restarts.
The new release notes, mentioned here, give a good overview on the changes required to migrate your application correctly to the new release.
Not every upgrade is smooth. One symptom of a failed version upgrade is Jdeveloper showing multiple compile errors in the oracle.adfmf.* package.

 
maf_compile_error.PNG
 

Jdeveloper appears to install the plugin upgrade successfully and there are no indications in the log that anything failed.

THE FIX

There are two ways to resolve this:
Delete the current Jdeveloper system directory. Once you restart Jdeveloper, a new directory is created. Opening a MAF application using the previous version of MAF is migrated successfully to the new version.
OPen the project properties for the ApplicationController project. In the Libraries and Classpath section, verify that you are using the “MAF JDK 1.8 Compact 2 Profile” and that it points to a valid java sdk install location.

 
maf_compact_profile.PNG
 

Ensuring that the “MAF JDK 1.8 Compact 2 Profile” is selected in the libraries pane, check the classpath and sourcepath entries in the right pane.

 
maf_compact_profile_detail.PNG
 

If it looks anything like the picture above, you know that jdeveloper was not able to update the profile correctly and point to the new MAF version jar files. To fix this, select the “Class Path” section and click the “Add Entries” button at the bottom. Navigate to your Jdeveloper Installation and select the following folder:

Select all the jar files and add them to the classpath.
Similarly, select all the jar files from the location below and add them to the source path:

 
maf_compact_profile_fixed.PNG
 

REFERENCES

The Jdeveloper MAF extension can be downloaded from here.

vivek

vivek

Oracle Fusion Middleware Architect at FUSION Applied
Vivek is an Oracle Certified Fusion Middleware architect. He has over 18 years of experience implementing custom software solutions in the Financial, Health, and Government sectors. He is one of the founders of Fusion Applied.
vivek

Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz