Guten Tag Mark Thomas, am Mittwoch, 1. August 2018 um 17:34 schrieben Sie: > Nor should it. foo.war!/META-INF/services is not a valid location for an > SPI file. [...] > The correct locations are: > foo.war!/WEB-INF/lib/*.jar!/META-INF/services
So your argument is that a WAR is not a JAR and only JARs can contain META-INF/services? Is there a reason for such decision, is it something Java demands? Regarding the SO-question, JBoss seems to work differently: > What I do find odd however is that JBoss does seem to work with my > setup and can discover services inside the Services folder even if > you don't have them wrapped in a Jar file... https://stackoverflow.com/questions/7692497/tomcat-wont-load-my-meta-inf-services-javax-servlet-servletcontainerinitializ#comment9883761_8057393 Which makes sense to me, reusing META-INF of the WAR is the first thing one most likely considers. The docs for ServiceLoader seem to at least not forbid this as well: > Service providers can be installed in an implementation of the Java > platform in the form of extensions, that is, jar files placed into > any of the usual extension directories. Providers can also be made > available by adding them to the application's class path or by some > other platform-specific means. https://docs.oracle.com/javase/7/docs/api/java/util/ServiceLoader.html So, Tomcat prefers Jars because only those are explicitly mentioned or what is the reason? Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning E-Mail: thorsten.schoen...@am-soft.de AM-SoFT IT-Systeme http://www.AM-SoFT.de/ Telefon...........05151- 9468- 55 Fax...............05151- 9468- 88 Mobil..............0178-8 9468- 04 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org