4 Replies Latest reply on Nov 24, 2012 2:30 AM by Bond Chan

    How to ignore the none exist deployment unit

    Bond Chan Novice

      Hi,

       

      our app have dynamic jars need to deploy according to the license, so in jboss4, we list all the jars in jboss-service.xml, but in jboss5 an error will be thrown if the deployment unit not found.

       

      part of the deployment unit is list as below:

       

       

      vfs.xml

       

        <bean name="VFSCache">

          <constructor factoryClass="org.jboss.virtual.spi.cache.VFSCacheFactory" factoryMethod="getInstance">

            <!-- Use the CombinedVFSCache implementation -->

            <parameter>org.jboss.virtual.plugins.cache.CombinedVFSCache</parameter>

          </constructor>

          <start ignored="true"/>

          <property name="permanentRoots">

            <map keyClass="java.net.URL" valueClass="org.jboss.virtual.spi.ExceptionHandler">

              <entry>

                <key>${jboss.lib.url}</key>

                <value><null/></value>

              </entry>

              <entry>

                <key>${jboss.common.lib.url}</key>

                <value><inject bean="VfsNamesExceptionHandler"/></value>

              </entry>

              <entry>

                <key>${jboss.server.lib.url}</key>

                <value><inject bean="VfsNamesExceptionHandler"/></value>

              </entry>

             .......................

         <entry>

                <key>${jboss.server.home.url}firmament/bond-logic.jar</key>

                <value><inject bean="VfsNamesExceptionHandler"/></value>

              </entry>

              <entry>

                <key>${jboss.server.home.url}firmament/creditderivative-logic.jar</key>

                <value><inject bean="VfsNamesExceptionHandler"/></value>

              </entry>

            </map>

          </property>

          <property name="realCache">

            <bean class="org.jboss.virtual.plugins.cache.IterableTimedVFSCache"/>

          </property>

        </bean>

       

       

       

      --profile.xml


      <bean name="BootstrapProfileFactory" class="org.jboss.system.server.profileservice.repository.StaticProfileFactory">

            <property name="bindingsURI">${jboss.server.home.url}conf/bindingservice.beans</property>

            <property name="bootstrapURI">${jboss.server.home.url}conf/jboss-service.xml</property>



      <property name="deployersURI">${jboss.server.home.url}deployers</property>


      <property name="applicationURIs">


      <list elementClass="java.net.URI">






      <value>${jboss.server.home.url}deploy/jms-ra.rar</value>                    




      <value>${jboss.server.home.url}deploy/jmx-console.war</value>               




      <value>${jboss.server.home.url}deploy/jmx-invoker-service.xml</value>       




      <value>${jboss.server.home.url}deploy/jmx-remoting.sar</value>              




      <value>${jboss.server.home.url}deploy/jsr88-service.xml</value>             




      <value>${jboss.server.home.url}deploy/legacy-invokers-service.xml</value>   




      <value>${jboss.server.home.url}deploy/mail-ra.rar</value>                   




      <value>${jboss.server.home.url}deploy/mail-service.xml</value>

      ...............


      </list>


      </property>


      <property name="attachmentStoreRoot">${jboss.server.data.dir}/attachments</property>


      <property name="profileFactory"><inject bean="ProfileFactory" /></property>

      </bean>