title: classcast exception from a extension class loaded class
body: <p>Ran into a issue today.</p>
  
  <pre><code>abc.ClassA a = (abc.ClassA) request.getsession().getAttribute();
  </code></pre>
  
  <p>and i  get classcast exception here.</p>
  
  <p><code>abc.ClassA</code> is referenced from a jar file in the project build path.</p>
  
  <p>I also read about the class being loaded with different class loaders and the issue could be becoz of that.</p>