Thursday, July 28, 2016

Weblogic 10.3.6: Registering the Jersey JAX-RS RI Shared Libraries With Your WebLogic Server Instances

Shared Java EE libraries are registered with one or more WebLogic Server instances by deploying them to the target servers and indicating that the deployments are to be shared. Shared Java EE libraries must be targeted to the same WebLogic Server instances you want to deploy applications that reference the libraries.
When a referencing application is deployed, WebLogic Server merges the shared library files with the application. If you try to deploy a referencing application to a server instance that has not registered a required library, deployment of the referencing application fails with following exception

[Extension-Name: jsr311-api, exact-match: false], [Extension-Name: jersey-bundle, exact-match: false].>
java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(
        at weblogic.utils.classloaders.GenericClassLoader.findClass(
        at java.lang.ClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        at weblogic.utils.classloaders.GenericClassLoader.loadClass(
        at weblogic.servlet.internal.WebAnnotationProcessorImpl.processServlets(
        at weblogic.servlet.internal.WebAnnotationProcessorImpl.processJ2eeAnnotations(

The following steps show how to deploy the Jersey JAX-RS RI Shared Libraries With Your WebLogic Server Instances.

  • Change to the directory C:\WLS10-3-6\Oracle\Middleware\wlserver_10.3\server\bin
  • Execute the cmd file setWLSEnv.cmd

  •  Execute the command
java weblogic.Deployer -verbose -noexit -source C:\WLS10-3-6\Oracle\Middleware\wlserver_10.3\common\deployable-libraries\jersey-bundle- -targets AdminServer -adminurl t3://localhost:7001 -user weblogic -password welcome1 -deploy -library

  • Execute the command.
java weblogic.Deployer -verbose -noexit -source C:\WLS10-3-6\Oracle\Middleware\wlserver_10.3\common\deployable-libraries\jsr311-api-1.1.1.war -targets AdminServer -adminurl t3://localhost:7001 -user weblogic -password welcome1 -deploy -library

Oracle SOA 12c: How To Create READ-ONLY Access To The JMS Messages For Monitor User

Create a user who only can view the JMS Messages and can not create,  delete,  move or import JMS Messages, and can not monitor other resour...