title: NoClassDefFoundError in referencing Java Application project from Java Servlet Project
body: <p>I have a java application 'JA' and a Java project containing a servlet project 'JS'. From JS I need to use classes present in JA. So, I referenced JA in JS by 
  right click project -> deployment assembly -> add -> project 
  and have referenced JA.</p>
  
  <p>Now I am able to import the class files in the JS. But when i am trying to instantiate JA in JS then it is showing NoClassDefFoundError for every class in .jar files used in JA. This error is getting removed by adding the .jar files in JS.</p>
  
  <p>My question is, do we need to add all the .jar files in JS, or are there other methods. Am I missing the method of referencing project.</p>