Thursday, February 9, 2017

Disappearing Application Modules in Data Control panel after migrating an ADF project to JDeveloper 12c

Environment / assumptions in this post:

  • JDeveloper 12.2.1 on Windows 7
  • Custom ADF Fusion Web Application

I had this issue with one project in our custom ADF Fusion Web application that needed to be migrated from 11.1.1.6 to 12.2.1. While checking through the many JDev compile errors and warnings after migration, for some reason the Application Modules completely disappeared from the data controls tab. Unfortunately the little refresh button didn't majically fix it.

After some investigation, there were two things that were helpful to resolve:

Issue 1 - Contains Data Controls setting

There is a setting in Project Properties, it is a checkbox called "Contains Data Controls". This is normally checked, but it can be unchecked for performance reasons (according to the documentation).  It is found under, for example, Model / Properties / ADF Model -> check the "Contains Data Controls". This will ensure new AMs will show up in the Data Control section.


Issue 2 - regenerating AM related files

For existing DCs, some of the generated files may have to be forced to regenerate. Make a trivial change to the Application Module such as adding then immediately removing a VO, OR removing and adding a method from the Client Interface. The AM.xml will be regenerated, adding some attributes here and there (notably to the Client Interface of any VOs).


That's what did it for me! Good luck.