2 Replies Latest reply on Jul 23, 2004 11:25 AM by sblanc

    classloading when deploying more than 1 war

    sblanc

      Hello,

      when deploying 2 wars, it looks to me that the same classloaders are used. for instance I have properties and xml files with the same name in both wars WEB-INF/classes and once loaded per the first war to be deployed, the second war does not deploy the "duplicates" in the other (although the content is different):

      $ ls -l deploy/sso.ear/sso.war/WEB-INF/classes/webwork.properties
      -rwxrwxrwx 1 Administ ???????? 555 Jul 22 16:55 deploy/sso.ear/sso.war/W
      EB-INF/classes/webwork.properties

      $ ls -l deploy/sso.ear/sso.war/WEB-INF/classes/webwork.properties
      -rwxrwxrwx 1 Administ ???????? 555 Jul 22 16:55 deploy/sso.ear/sso.war/W
      EB-INF/classes/webwork.properties

      few files rely on some 3PPs, so I can't rename the files.

      I tried to play around with packaging (ear/war) but could not get something working. I checked the documentation for JBOSS classloading but did not find anything related to packaging.

      Is there any way I can get this working with a configuration/packaging solution ?

      Thanks.

      Sebastien.