Weblogic 12.1.3 Shared Library Installation Steps

Before deploying an JAX-RS 2.0 application into WLS 12.1.3 you need to install (deploy) the JAX-RS 2.0 shared library that provides necessary dependencies and configuration. This library is located at MW_HOME\wlserver\common\deployable-libraries\jax-rs-2.0.war.

There are two ways, how you can deploy this library:

Deploying shared library using WLS console

  1. Log into WLS console at http://<host>:<port>/console (e.g. http://localhost:7001/console)
  2. Click on Deployments
  3. Find Shared Library WAR (located at MW_HOME\wlserver\common\deployable-libraries\jax-rs-2.0.war)
  4. Click on Next
  5. Choose Deploy as Library
  6. Click on Next
  7. Click on Finish

Deploying shared library using WLST

Lets assume that WLS is running and your domain is located in MW_HOME (MW_HOME\domain).

Setup your shell and enter the WLST console:

> # bash prompt
> cd $MW_HOME\domain
> . ./bin/setDomainEnv.sh
> java weblogic.WLST

Deploy the library:

> # WLST console
> connect('user', 'pass', 'host')
> deploy('jax-rs', '../wlserver/common/deployable-libraries/jax-rs-2.0.war', libraryModule='true')
> exit()