Looking quickly at your examples: it seems like the main reason why this is happenning is the lack of isolation between the EARs, so that both beanRefContext.xml files are seen on the CP when ContextSingletonBeanFactoryLocator is trying to load resources as "classpath*:beanRefContext.xml" (hence the complaint that the context is not unique).