That log is output from SpringServletContainerInitializer
which is Servlet 3.0 ServletContainerInitializer
that handles WebApplicationInitializer
.
So the most simple way to find out what are these WebApplicationInitializer
is to create our own ServletContainerInitializer
that also handle WebApplicationInitializer
and print their information to console.
@HandlesTypes(WebApplicationInitializer.class)
public class FooServletContainerInitializer implements ServletContainerInitializer {
@Override
public void onStartup(Set<Class<?>> c, ServletContext ctx) throws ServletException {
for (Class<?> clazz : c) {
System.out.println(clazz);
System.out.println(clazz.getResource('/' + clazz.getName().replace('.', '/') + ".class"));
System.out.println("----------------");
}
}
}
I am referring to this for how to print the JAR file path of a class.
To register it , create a file META-INF/services/javax.servlet.ServletContainerInitializer
. Inside this file , include the fully qualified class name of our ServletContainerInitializer
:
org.foo.bar.FooServletContainerInitializer
Then it should execute during Tomcat starts.