Sure,
There are two possible ways:
1) Easy way: Change JBoss global configuration in order to automatically isolate all web applications
Edit your 'ear-deployer-jboss-beans.xml' in your deployers configuration folder:
'JBossFolder'/server/default/deployers/ear-deployer-jboss-beans.xml
You can replace 'default' folder depending of your JBoss config.
Change this node (or add it if it doesn't exist)
| Code: |
<bean name="EARClassLoaderDeployer" class="org.jboss.deployment.EarClassLoaderDeployer">
<!--
Setting this property to true will isolate all Enterprise Application Project from JBoss libs
-->
<property name="isolated">true</property>
</bean>
|
Restart your server and it should be working.
2) Isolate only one Enterprise Application
For this method, you have to create an ear 'Enterprise Application Archive' (=> Create a Enterprise Application Project in Eclipse) which will contain the war application that you want to isolate.
First, you have to add a file in your ear project 'EarContent/META-INF/jboss-classloading.xml':
| Code: |
<?xml version="1.0" encoding="UTF-8"?>
<classloading xmlns="urn:jboss:classloading:1.0"
domain="Convertigo.ear"
export-all="NO_EMPTY"
import-all="true"
parent-first="false">
</classloading>
|
Next, you have to add a file in your war project (referenced by your ear project) 'WebContent/WEB-INF/jboss-classloading.xml':
| Code: |
<?xml version="1.0" encoding="UTF-8"?>
<classloading xmlns="urn:jboss:classloading:1.0"
domain="Convertigo_Server.war"
parent-domain="Convertigo.ear"
export-all="NO_EMPTY"
import-all="true"
parent-first="true">
</classloading>
|
Basically you can write what you want in domain and parent-domain attributes.
The only condition is that the parent-domain of your war must be the domain of your ear.
You can now export the ear file from the eclipse project and publish it in your JBoss deploy folder.
I only tried the second method but the first should work.
Cyril
P.S. : By the way, is it possible to tell Convertigo to create its files in the web application folder instead of the home directory ?