1 2 Previous Next 15 Replies Latest reply on Jul 13, 2011 7:28 AM by Stuart Douglas

    AS7 WAR classloading

    Prasad Deshpande Expert

      Hi Guys,


      I'm trying to understand classloading & reason behind following scenario,


      I've ear containing ejb.jar, .war & few jars in lib directory. In a war file, I just have web.xml (no classes/lib) & the servlet class is kept in one of the jar in lib directory of ear. Setup is fine.. servlet get's loaded but EJB injection doesn't work. I alwasys get interface as null. However, if I move servlet class to classes directory in WAR, then EJB injection works.


      This used to work in AS5.1, of-course classloading in AS7 has changed but shouldn't my scenario work according to EE5 specs?




        1 2 Previous Next