title: Classloader Filtering
body: <p>I have asked a related question before - but this is not exactly the same. I was told earlier not to ask additional questions in the same thread if the issue is a bit different. So I am posting this new question. Pls let me know if I shouldn't.</p>
  
  <p>I have a web-application (war file). Jar pertaining to apache-commons-lang is added in WEB-INF lib along with other jar file. However an older version of jar pertaining to apache-commons-lang is also present in system library and when deployed the jar file in system classpath takes precedence and I am getting "classnotfound" error. prefer-web-inf-classes has to be specified for the classes specified in WEB-INF to take precedence over classes present in the System Classloader.However I would like only this specific jar to take precedence over system classloader. I was advised to use "Filtering Classloaders" in weblogic when I had posted a similar issue. That solution works great when I have an ear. However I won't be able to add weblogic-application.xml in war file and I am not able to make use of this classloader filtering concept. Is there a way out? Thanks.</p>