Tuesday, October 8, 2013

java.lang.ClassNotFoundException:oracle.adf.model.servlet.ADFBindingFilter:ADF Deployment Error on Weblogic Server

CAUSE:

ADF applications that use business components need the weblogic-application.xml deployment


descriptor to be present to be able to work on a WLS.


mentions the need of :

<library-ref>
  <library-name>adf.oracle.domain</library-name>
</library-ref>
in the weblogic-application.xml


SOLUTION:

To implement the solution, please execute the following steps:

Wrap the WAR file in an EAR file configured to be deployed to a WebLogic server as follows, so that  JDeveloper includes the needed deployment descriptor file:

Right-click the project containing the web contents (usually ViewController), and select New -> Deployment Profile. Then select EAR Deployment Profile.

Enter the name for the application, and then in the EAR profile properties dialog, in the Application Assembly, include the ViewController project, and in the Platform node, make sure Default Platform is set to WebLogic 10.3. Click OK.

In the next dialog box (Project properties), open the node ADF Model, and make sure the checkbox "Contains Data Controls" is checked, and click OK


Now to deploy, right click the ViewController project and select Deploy, then the name of the recently created application deployment profile, and then "to EAR file". This will result in a .ear file, deployable from the WLS administration page.

No comments:

Post a Comment