Friday, October 4, 2013

ADF: Error "java.lang.ClassNotFoundException:oracle.adf.model.servlet.ADFBindingFilter" or "Caused by: java.lang.ClassNotFoundException: oracle.adf.library.webapp.ResourceServlet" is thrown when deploying Application WAR File directly to Weblogic

This error is caused by specific construction of Weblogic Server. The error can look like:

[01:08:16 PM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'ViewController_webapp1.war'
[01:08:16 PM] Caused by: java.lang.ClassNotFoundException: oracle.adf.library.webapp.ResourceServlet
[01:08:16 PM]   See server logs or server console for more details.
[01:08:16 PM] weblogic.application.ModuleException: Failed to load webapp: 'ViewController_webapp1.war'


Generally speaking, do not deploy ADF application in the form of WAR directly. Oracle says: "ADF applications that use business components need the weblogic-application.xml deployment descriptor to be present to be able to work on a WLS.". In other words to deploy ADF Web Application you should wrap the WAR file in an EAR file, and next deploy EAR to Weblogic.

No comments:

Post a Comment