Another way of putting it is that I want the common classes to not be shared between the servlets and ejbs, where the servlets and ejbs are in the same jvm.
Reading the JBoss classloader chapter very carefully I believe I why my request my not be possible unless I create my own classloaders. JBoss associates the ear archive with a UCL (shared repositiory). The ejb jar and the web war archives are added to the ear's UCL classpath and thus automatically share and resources loaded in this UCL.
So unless I write a classloader that separates the war's assocation with the UCL shared repository the ear and ejb libraries will always be visible to the war. So if I put a common library in the war and the ear their will be class loader isssues.
Does anyone think that isolating common classes between servlet and ejb tier is a just plain wrong and should never be attempted?