3 Replies Latest reply on May 21, 2004 8:54 AM by Scott Stark

    loader-repository for war within an ear

    Tomer ben david Novice


      I have

      --> war 1
      --> war 2
      --> war 3

      all the wars have the same classes in their webinf (common infrastructure) However I need those classes to be loaded by differerent classloaders, In case the wars are not contained in an ear, Its fine i managed to do it with the jboss-web.xml using <loader-repository> however when the wars are contained in an ear I receive this warning (And its not working...)

      16:06:54,990 WARN [DeploymentInfo] Only the root deployment can set the loader
      repository, ingoring config=LoaderRepositoryConfig(repositoryName: some.dot.com:
      loader=newsite.war>, repositoryClassName: org.jboss.mx.loading.HeirarchicalLoade ...

      How can I make the libraries of all my wars be loaded in different classloaders while still having them contained in a war?