0 Replies Latest reply on Nov 17, 2011 11:17 AM by blured75

    [JBOSS6] Deploy war file external to an ear

    blured75

      Hi,

       

      I'm trying to deploy a war which need to call classes which are in an ear. In order to customize the war, i'd like it to be outside the ear file. Is it possible with JBoss 6.1 ?

       

      I've tried to use this kind of xml inside jboss-web.xml inside war & ear :

      1
      2
      3
      4
      5
      6

        <class-loading java2ClassLoadingCompliance="false"> 
      <loader-repository> com.example:archive=unique-archive-name </loader-repository> </class-loading>

       

      This works however the hot re deployment of the war give some error Linkage (jboss thinks some classes are already deployed) and the application is unavailable (apart if I restart the server)

       

      I've also tried this without more success :



      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13

        <?xml version="1.0" encoding="UTF-8"?> 
      <classloading xmlns="urn:jboss:classloading:1.0" name="mywar.war" domain="DefaultDomain"
      <!-- A hack to make this classloader a top-level classloader The actual value is ignored since DefaultDomain already exists. --> p
      arent-domain="Ignored" export-all="NON_EMPTY" import-all="true">
      </classloading>

       

      Regards,

      Blured.