I fixed my RepositorySelector error using classloader scoping. I still have log4j in my WEB-INF/lib. When I removed that, the error went away.
So, is everything working fine now, as per your expectations?
I am disappointed that I wasn't able to get log4j working without a RepositorySelector. My problem with the RepositorySelector was the cross-logging I mentioned. Unfortunately, I can't do any heavy testing on the cross-logging issue at this moment. So I guess for now, I have a temporary solution. Thanks for your help.
Since you have already tried out the RepositorySelector approach, you might find the following link, a bit more helpful:
http://www.qos.ch/logging/sc.jsp