shashi27
shashi27

Reputation: 199

Weblogic 12c deployment shared library not picked while deploying to managed server

  1. Application is a EAR file
  2. Shared Library where the third party jar are bundled and deployed to managed server as shared library.
  3. weblogic-application.xml file where library ref to shared library is made and present in EAR file(META-INF folder).
  4. Shared libraries are deployed to managed server as target and is successful.
  5. while deploying the EAR file, the selection of EAR from console deployment results in ClassNotFoundException of the class present in shared library even though the reference is made in weblogic-application.xml.
  6. Note that if the Library deployment is targeted to Admin Server and Managed Server the deployment of EAR file is successful without any exception.
  7. Single Admin Server deployment is working fine without any issues for the same setup.
  8. Deployment is expecting the JAR is classpath of admin server while deploying to managed server. is this an intended behavior ?

Is there any setup configuration we are missing here ? Correct me if there is any steps gone wrong. Update : we did the same deployment with ant script using wldeploy and no errors are encountered and application is deployed successfully.

Upvotes: 0

Views: 5878

Answers (1)

dave823
dave823

Reputation: 1211

This was a known issue in a previous version of weblogic. Maybe it is still not fixed.

CR282367

While using the WebLogic Administration Console with applications or EJBs deployed on a Managed Server that depend on a deployed library, you may encounter a java.lang.NoClassDefFoundError

Workaround: The WebLogic Server Administration Console needs access to any shared library deployments so that Java data types and annotations can be processed. Therefore, all shared library deployments should always be targeted to the Administration Server in addition to any Managed Servers or clusters.

https://docs.oracle.com/cd/E11035_01/wls100/issues/known_resolved.html

Upvotes: 0

Related Questions