Weblogic Shared library

1. Steps to configure shared libraries for Weblogic:
i. Create a folder structure as below,
ii. Copy all libraries to lib folder and WEB-INF.
iii. Please create a war file by executing below commands (Assuming user in
SharedLib path):
jar -cvf sharedlib.war *.*
2. Configure the Weblogic.xml to provide an entry for customjar:
i. Unzip middleware.ear and find weblogic.xml file from
middleware.ear\middleware.war\WEB-INF\folder.
ii. Edit the weblogic.xml for the below entry,
a. If you have multiple jars to be deployed as shared libraries please
follow the below steps:
<library-ref>
<library-name> <warname> </library-name>
</library-ref>
Example:
<library-ref>
<library-name> CommonJars </library-name>
</library-ref>
b. If you have single jar please follow the below steps:
<library-ref>
<library-name><Jar name></library-name>
</library-ref>
Example:
<library-ref>
<library-name>customjar</library-name>
</library-ref>
iii. Now zip the above xml file to create middleware.ear.
3. Deploying the shared library:
Login to Weblogic administrative console, Select deployments from left pane,
and deploy the generated WAR as shared library.
If you have only one custom jar to be configured as shared library please
follow below steps:
i. Click on install. We will be shown with Locate deployment to install and
prepare for deployment.
ii. Click on Upload your file(s).
iii. Click on choose file and choose the generated WAR file and click on Next.
iv. Locate the jar file by clicking on upload files and then click on next. We will
be shown with error message Issues were encountered while parsing
this deployment to determine module type. Assuming this is a library
deployment. It will be treated as library directly.
v. Select the targeted server and click on next and look for the name attribute
populated same as jar name.
vi. Then click on Finish
If you have multiple jars to be configured as shared library please follow
below steps:
i. Click on install. We will be shown with Locate deployment to install and
prepare for deployment.
ii. Click on Upload your file(s).
iii. Click on choose file and choose the generated WAR file and click on Next.
iv. From Choose targeting style section select Install this library as a library
and click on Next.
v. From Select deployment targets choose targeted server.
vi. From the Optional settings section, change the name to CommonJars and
click on Finish.
We are done with shared library installation.