4 Replies Latest reply: Jul 1, 2011 10:47 AM by Yuriy R RSS

    question about JBoss ClassLoader

    Yuriy R Newbie

      Here is my situation :

       

      - have JBoss 405

      - have a lot of deployed ear's

      - some of them contain the same jar library.

      - also this jar is placed at jboss405\server\default\lib\

       

      What i need :

       

      - one of ear must load that jar from it's local lib folder, but other jar's from common place.

      If I using isolation like create ear's own ClassLoader at the  jboss405\server\default\deploy\Some.ear\META-INF\application.xml

       

      <loader-repository>
         com.example:archive=unique-archive-name
      </loader-repository>

       

      I can't load other common lib's.

       

      So ..the question is : how can I say to the JBoss ClassLoader that "this" jar you must overwrite (because this jar is already loaded) from local lib's folder, but other from common.

       

      Thanks !