3 Replies Latest reply on Dec 13, 2012 10:08 PM by Xin Zhang

    Question about classloader in ear package

    Xin Zhang Novice

      Hi Guys


      I met a question about the classloader in ear package:


      I have a ear package: the ear package structure look like this:



      |--- ejb1.jar


      |--- ejb_util.jar


      |--- ejb2.jar


      The ejb in ejb2.jar refers to a class in ejb_util.jar, but the class has been load by class in ejb1.jar.

      and it induce that classcast exception.


      I have no idea for this, Is there some advice for this?