How to ignore the none exist deployment unit
bondchan921 Nov 14, 2012 2:19 AMHi,
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"> | |||||||||||||||||||||||||||||||||||||||||||
|
...............
</list> | ||
</property> | ||
<property name="attachmentStoreRoot">${jboss.server.data.dir}/attachments</property> | ||
<property name="profileFactory"><inject bean="ProfileFactory" /></property> | ||
</bean> | ||