Remove duplicated slf4j dependency and add back log4j required for common module.