Hello all! How is one supposed to configure Tomcat (I'm on 9.x) to scan a
given package looking for @WebServlet servlets?

I cannot find any API and relevant examples in the Tomcat source.

More insight: my app is currently packaged as a WAR and deployed to a
running Tomcat instance. I want to build a fat JAR and starting Tomcat in
my main() - but then I do not have any WAR/JAR because all classes are on
classpath. Is there some utility in Tomcat? Is there any external library
commonly used for this?

Thanks,
Raffaele

Reply via email to