Spring 3.1 WebApplicationInitializer & Embedded Jetty 8 AnnotationConfiguration
The problem is that Jetty’s AnnotationConfiguration class does not scan non-jar resources on the classpath (except under WEB-INF/classes). It finds my WebApplicationInitializer‘s if I register a subclass of AnnotationConfiguration which overrides configure(WebAppContext) to scan the host classpath in addition to the container and web-inf locations. Most of the sub-class is (sadly) copy-paste from the parent. … Read more