Fix RegistryImpl_Stub not found bug and change log4j to slf4j adaptor