25.10.09

ADF 11g on WebLogic (class not found errors)

 

Simple use case is here:

1. You want to create your first ADF portal or other ADF 11g based application.

 

2. You wanted to deploy it on your custom WebLogic 11g (10.3.1) domain, which you extended with Oracle JRF libraries.

 

3. On deployment time you would get something like this:

 

[09:31:02 PM] Deploying Application...
[09:31:06 PM] [Deployer:149193]Operation 'deploy' on application 'harriportalapp' has failed on 'AdminServer'
[09:31:06 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application harriportalapp on AdminServer.: Failed to load webapp: 'HarriPortal-PortalViewController-context-root'.
[09:31:06 PM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'HarriPortal-PortalViewController-context-root'
[09:31:06 PM] Caused by: java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
[09:31:06 PM]   See server logs or server console for more details.
[09:31:06 PM] weblogic.application.ModuleException: Failed to load webapp: 'HarriPortal-PortalViewController-context-root'
[09:31:06 PM] ####  Deployment incomplete.  ####
[09:31:06 PM] Deployment Failed

 

The problem might be in weblogic.xml file where you need to replace the

 

<library-ref>
  <library-name>adf.oracle.domain</library-name>
</library-ref>

with:

<library-ref>
  <library-name>adf.oracle.domain.webapp</library-name>
</library-ref>

 

Remember to deploy the ADF application from the application contect menu, not from project deployment menu.