I tried to adapt my application to work under JBoss 5 but had some issues.
Here is my use case :
I deploy my ear and an excption occurs I modify my application generate a new ear and copy the new one to the deploy directory to redeploy an new exception is thrown : addChild : Child name '/myWebContext' is not unique
I think JBoss could not undeploy the previous ear and still has a reference to the old web context. When I copy a new ear to the deploy directory, jboss tries to deploy the ear but the old webcontext still exist an he tries to create a new one with the same name