Add ADF library to Fusion Applications Workspace
By Vik Kumar on Jul 08, 2013
When working in JDeveloper on customizations, you might hit errors in the console for missing an application specific resource or NoClassDefFoundException. This happens because all the required libraries to customize a page may not have been added to the Fusion Customization Application workspace. One such example error could be:
WARNING: Exception in task oracle.adfdtinternal.view.rich.binding.editor.ADFTableCustomizer$1@46220c4d on model oracle.jdevimpl.webapp.jsp.JspXmlModel@284a13c7; txn name=Rebind Table java.lang.RuntimeException: Could not find data control PlanOverviewAMDataControl
The solution is to find and add the library containing PlanOverviewAMDataControl and add it to the customization workspace. Below are the step by step screenshots to do this:
- Create a file system connection to the base application libraries
2. Provide any name you like for connection name and browse to the APP-INF\lib location in the base application ear
3. Right click on the newly added connection and chose Advanced Search
4. Enter missing artifact and search
5. In the Search results right click on the artifact and choose Add to project
6. Confirm Add Library
7. A new popup will appear. Mark the checkbox to skip check for secondary imports and hit No as we do not need to add all the dependencies to get it working. We only need the library containing the data control PlanOverviewAM.
At this point save all and the error should no longer appear. Please note that there may be additional libraries missing based on the artifacts you are trying to customize. You will need to add those libraries as well to your project by repeating the above steps.