SpringServletContainerInitializer cannot be cast to javax.servlet.ServletContainerInitializer

A better servlet 3.0 api dependency entry in pom is available here – https://github.com/SpringSource/greenhouse/tree/servlet3, you should also mark the scope as provided, otherwise the jar will be included in your final war which will interfere with the jar provided by the container which is what seems to be happening in your case.

Leave a Comment