I have a web project that has a \\META-INF\\services\\javax.servlet.ServletContainerInitializer
file with its content pointing to the fully qualified name of a
Well, I think that you'll need to wrap your initializer class (and it's services-related META-INF directory) into a separate *.jar and put it in the WEB-INF/lib
.
This is a JAR service, so I guess it could have something to do with problems with discovering services in a *.war file. Moreover, it doesn't even help if you put your META-INF directory inside WEB-INF/classes
and set unpackWAR=false
in your Tomcat's server.xml
.
HTH.