Hello again.
After some investigations, we altered the Ant script for jBoss Deployment:
<Eclipse root>/plugins/org.eclipse.jst.server.generic.jboss_XXX\buildfile s\jboss323.xml
We edited the script and commented the <jar> and <copy file> tasks,and we introduced a new <copy> task :
<move todir="${server.publish.dir}/${module.name}.ear">
<fileset dir="${module.dir}"/>
</move>
To keep right the undeploy targets, we changed the <delete file> task for a <delete dir> one :
<delete dir="${server.publish.dir}/${module.name}.war" failonerror="false"> </delete>
This "hack" works on WAR deployment too.
Looking at the custom layout problem, if you edit the project settings file
.settings/org.eclipse.wst.common.component and change the deploypath label value to, for example, /ejb, the deployer saves EJB jars in this directory, but library files from utility projects remains in the root directory of the EAR.
¿Some documentation of the file out there ?