Thursday, July 25, 2013

DeploymentException: [J2EE:160149]Error while processing library references


Error:

DeploymentException: [J2EE:160149]Error while processing library references "Unresolved application library references, defined in weblogic-application.xml:-oracle.wsm.seedpolicies"


Scenario: 

Installed ADF 11.1.1.6 and extended the already existing WLS 10.3.6 domain. The existing domain has an Admin server and a cluster of 6 managed servers.

Issue: While trying to startup the managed servers, all are going to ADMIN mode.

Reason: The OWSM seed policy libraries are not deployed on the managed servers

The out file of managed servers have following information.

"ManServer5.log00005:weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: oracle.wsm.seedpolicies, Specification-Version: 11.1.1, Implementation-Version: 11.1.1, exact-match: false]"



Fixing:

1. Take a backup of config.xml file under $DOMAIN_HOME/config as config.xml_orig

2. Use "vi" editor and search for string "oracle.wsm.seedpolicies". This would be under main tag  <app-deployment> and sub tag library.

The current entry have only AdminServer where it is deployed. Add all the managed servers here seperated by a comma as shown below

  <library>
    <name>oracle.wsm.seedpolicies#11.1.1@11.1.1</name>
    <target>AdminServer,ManServer1,ManServer2,ManServer3,ManServer4,ManServer5,ManServer6</target>
    <source-path>/u01/app/Oracle/fmw-prov/oracle_common/modules/oracle.wsm.policies_11.1.1/wsm-seed-policies.jar</source-path>
    <staging-mode>nostage</staging-mode>
  </library>

3. Save the file and quit editor

4. Restart managed servers one by one. There wont be any problem in starting up.

Another way would have been to select the deployment servers during the domain extension time itself.

No comments:

Post a Comment