Error [J2EE:160149] deploying an ADF based application in WebLogic

This morning I had a number of ADF based applications to deploy against a new WebLogic 11g domain.  When I tried to activate the changes, I hit the following error (the log file revealed nothing further):

An error occurred during activation of changes, please see the log for details.
[J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].

The ADF libraries in my domain were only targeted at the Admin Server, so when I tried to deploy my application to a Cluster of Managed Servers, it couldn’t see the ADF extensions.

So to get around this, log into the WebLogic console for your domain and do the following:

  • Click on Deployments.
  • Click on the ‘adf.oracle.domain(1.0,11.1.1.2.0)’ library deployment.
  • Click on the Targets tab.
  • Select the Managed Server(s) or Cluster(s) to which your application is going to be deployed, leaving the AdminServer target still ticked.
  • Click on Save.

Then repeat the steps above for the following libraries:

  • adf.oracle.businesseditor(1.0,11.1.1.2.0)
  • adf.oracle.domain.webapp(1.0,11.1.1.2.0)
  • jstl(1.2,1.2.0.1)
  • jsf(1.2,1.2.9.0)

Activate any changes (if running in Production Mode) and try deploying your application again 🙂

NOTE: You may need to repeat the steps above for other ADF libraries that I’ve not listed here, it depends on which ADF extensions your application is using, but the above worked for me

7 thoughts on “Error [J2EE:160149] deploying an ADF based application in WebLogic

Leave a comment

Your email address will not be published.