The type of logic and the fact it throws BeanDefinitionValidationException makes it appear this should be logic in the config jar and not web.