2 Replies Latest reply on Aug 11, 2010 8:15 AM by Zemian Deng

    class loader to include jars in external folder

    Dave Chen Master

      Hello, we have a war application with lib folder



      The war application allow users to add external jars without repackaging the war file, For example





      users can add jars(a.jar,b.jar),and then restart JBOSS. If we add a.jar/b.jar to server/default/lib,  we got classNotFound error

      because external jars (a.jar, b.jar) have references to classes in the war.  If it does not need to restart JBoss, it is a plus.


      Can I configure JBoss ClassLoader to load the external jars as if they were under WEB-INF/lib of war file? If we need to

      implement our own class loader, could any one help me get started to achieve this goal?