title: Add shared project jars in websphere shared library
body: <p>We can add project dependency jars (like spring jars, logging etc) in shared library, can we add shared project jars (like one that communicate with Database) in shared library?</p>
  
  <p><strong>Scenario:</strong></p>
  
  <p>I have these projects</p>
  
  <ol>
  <li>WebApp  </li>
  <li>WebAppEAR</li>
  <li>CommonDB</li>
  </ol>
  
  <p>I am using <code>IBM Websphere server, hibernate, spring mvc</code></p>
  
  <p>I added all spring, hibernate jars including CommonDB.jar in Websphere shared library. WebApp Application is running successfully with spring controllers but when my application try to hit DB it throws exception.</p>
  
  <pre><code>Caused by: java.lang.IllegalStateException: 
  </code></pre>
  
  <p>Actually WebApp  is not loading <code>&lt;bean&gt;</code> DataSource. DataSource class is located in CommonDB project.</p>
  
  <p>When I include CommonDB.jar in Deployment assembly of EAR WebApp runs successfully and fetches data from DB.
  I want to exclude CommonDB.jar from Deployment assembly and only want to add it in shared library. </p>