thanks for your answer Chris,
the only problem I have with your solution is that some of the common jars have to be in the war file, because the client of our application is an
applet and needs to download some jar file and so those jar files have to be in the war.
So what I did is, as you said, have the common jars directly in the ear and for the common which also have to be downloaded by the client they are also present in the war file. It's working ok but I wanted to know if it's possible to do the packaging without duplicating jar files between the ear and the war.