initialize spring mvc and log4j configuration