title: Shared Library jar are not loaded by Liberty
body: <p>I have spring MVC application which uses Spring 4.I deploying my application in Liberty 16.0.0.3.I have below server.xml configuration.</p>
  
  <pre><code>&lt;server description="Default Server"&gt;
          &lt;featureManager&gt;
              &lt;feature&gt;webProfile-7.0&lt;/feature&gt;
                  &lt;feature&gt;localConnector-1.0&lt;/feature&gt;
              &lt;/featureManager&gt;
  
  
          &lt;variable name="defaultHostName" value="localhost"/&gt;
  
             &lt;keyStore id="defaultKeyStore" password="mypassword" /&gt;
  
              &lt;!-- Define an Administrator and non-Administrator --&gt;
             &lt;basicRegistry id="basic"&gt;
                &lt;user name="admin" password="mypassword"/&gt;
                &lt;user name="nonadmin" password="mypassword"/&gt;
             &lt;/basicRegistry&gt;
  
             &lt;!-- Assign 'admin' to Administrator --&gt;
             &lt;administrator-role&gt;
                &lt;user&gt;admin&lt;/user&gt;
             &lt;/administrator-role&gt;
  
             &lt;webContainer deferServletLoad="false"/&gt;
             &lt;applicationManager autoExpand="true"/&gt;
  
              &lt;httpEndpoint host="*" httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/&gt;
             &lt;variable name="defaultHostName" value="localhost"/&gt;
  
          &lt;library id="global"&gt;
                  &lt;fileset dir="${shared.config.dir}/lib/global" includes="*.jar" /&gt;
              &lt;/library&gt;
  
              &lt;application type="war" location="testliberty.war" autoStart="true" context-root="/Spring4"&gt;
                  &lt;classloader  commonLibraryRef="global" delegation="parentLast"/&gt;
              &lt;/application&gt;
  &lt;/server&gt;
  </code></pre>
  
  <p>I have placed all spring specific jar's in below location.
  usr\shared\config\lib\global
  <strong>Anthoer option</strong>
  server\lib\global</p>
  
  <p><strong>pom.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
          &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
          &lt;groupId&gt;com.liberty.sample&lt;/groupId&gt;
          &lt;artifactId&gt;TestLiberty&lt;/artifactId&gt;
          &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
          &lt;packaging&gt;war&lt;/packaging&gt;
  
          &lt;name&gt;HelloWorld&lt;/name&gt;
          &lt;description&gt;Demo project for Spring Boot&lt;/description&gt;
  
          &lt;properties&gt;
              &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
              &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
              &lt;java.version&gt;1.8&lt;/java.version&gt;
              &lt;org.springframework-version&gt;4.3.0.RELEASE&lt;/org.springframework-version&gt;
              &lt;runtime.scope&gt;provided&lt;/runtime.scope&gt;
          &lt;/properties&gt;
  
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
                  &lt;version&gt;${org.springframework-version}&lt;/version&gt;
                  &lt;scope&gt;${runtime.scope}&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
                  &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
                  &lt;version&gt;3.0.1&lt;/version&gt;
                  &lt;scope&gt;${runtime.scope}&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
                  &lt;artifactId&gt;jstl&lt;/artifactId&gt;
                  &lt;version&gt;1.2&lt;/version&gt;
                  &lt;scope&gt;${runtime.scope}&lt;/scope&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
  
          &lt;build&gt;
              &lt;finalName&gt;HelloWorld&lt;/finalName&gt;
              &lt;pluginManagement&gt;
                  &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                          &lt;version&gt;2.3.2&lt;/version&gt;
                          &lt;configuration&gt;
                              &lt;source&gt;${java-version}&lt;/source&gt;
                              &lt;target&gt;${java-version}&lt;/target&gt;
                          &lt;/configuration&gt;
                      &lt;/plugin&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                          &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                          &lt;version&gt;2.4&lt;/version&gt;
                          &lt;configuration&gt;
                              &lt;warSourceDirectory&gt;src/main/webapp&lt;/warSourceDirectory&gt;
                              &lt;warName&gt;testliberty&lt;/warName&gt;
                              &lt;failOnMissingWebXml&gt;false&lt;/failOnMissingWebXml&gt;
                          &lt;/configuration&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/pluginManagement&gt;
          &lt;/build&gt;
  
  
  &lt;/project&gt;
  </code></pre>
  
  <p>But none of this option is working.Server is not loading these jar's due to this Spring application context is not getting loaded.But same application is working fine if I package all the jar's in WEB-INF/lib folder.</p>