Wednesday, October 28, 2015

Oracle ADF 12.2.1 Template Not Found Issue

Following is the issue I faced while developing application in latest ADF 12.2.1 release. This issue came after running an application with single blank page based on responsive page template.

com.sun.faces.context.FacesFileNotFoundException: /oracle/templates/responsiveTemplate.jspx Not Found in ExternalContext as a Resource
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:270)
    at com.sun.faces.facelets.impl.DefaultFacelet.getRelativePath(DefaultFacelet.java:283)
    at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:348)
    at com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)..........

This issue was faced when Maven was selected as deployment descriptor on the last step of creating ADF application. If we create the application with default deployment option then this issue will not be faced. As in second scenario JDeveloper automatically adds the required "Oracle Page Templates" library to the project properties. However, in case of application using Maven, the library dependency was not added automatically in pom.xml file. Bad news was, even after adding the "Oracle Page Templates" in pom.xml, the issue was not resolved.

So the only solution for this issue was to create the application with default deployment option.

Tuesday, October 27, 2015

Oracle ADF 12.2.1 Release Installation Issue

Oracle ADF 12.2.1 Release Installation Issue

While installing Oracle ADF 12.2.1 release make sure you have installed jre1.8.0_51 and jdk1.8.0_51 or any later version of java. Any previous version will give Unsupported major.minor version 52.0   error while creating domain. Also while invoking the setup,use jdk1.8.0_51 version. If any prior java version is used, the setup will show the warning for unsupported java version while installing as shown below: