title: Prevent Glassfish from using its own versions of libraries instead of those in a project
body: <p>Glassfish has whole bunch of third-side libraries stored in its <code>modules</code> directory. To my surprise, if my project uses a library which is present there, Glassfish will provide it from there, instead of the right version I have packed-in in my WAR file.</p>
  
  <p>This leads to a number of errors. For example, I use <code>jackson-datatype-joda</code> version 2.6.3, which requires <code>jackson-databind</code> with same version, and it is included in my project. But Glassfish replaces that package with version 2.3.2, which leads to <a href="https://github.com/FasterXML/jackson-datatype-joda/issues/57" rel="noreferrer">this issue</a>.</p>
  
  <p>How can I prevent Glassfish (4.1) from replacing the libraries I use with another versions?</p>