Remove redundant dependencies and added log4j.dtd