On the issue of finding the correct classloader in the case where there are more than on war in an ear.
It may not be a problem in the case that the ear is not sca enhanced as the spec doesn't talk about exposing references from wars in this case. Don't know if this is a spec issue or not. It still looks like a problem in the case where the ear is sca enhanced as it does imply that war references can form part of the component type in this case. Simon
