fix by adding dispatcher.setInitParameter to WebAppInitializer dispatcher