Re: What is the correct place to specifiy SPI service files for Java?

2018-11-23 Thread Thorsten Schöning
Guten Tag Mark Thomas, am Mittwoch, 1. August 2018 um 21:12 schrieben Sie: > Service files are loaded by class loaders from the META-INF/services > directory. > *.jar!/META-INF/services > and > *.war/WEB-INF/classes/META-INF/services > are visible to class loaders > *.war!/META-INF/services >

Re: What is the correct place to specifiy SPI service files for Java?

2018-08-02 Thread Thorsten Schöning
Guten Tag Mark Thomas, am Mittwoch, 1. August 2018 um 21:12 schrieben Sie: > The servlet expert group recently discussed WAR vs JAR[...] Thanks for the explanation, make things more clear tor me. I've added your answer to the SO-question, because it provides the missing background I wanted to

Re: What is the correct place to specifiy SPI service files for Java?

2018-08-01 Thread Mark Thomas
On 01/08/18 17:29, Thorsten Schöning wrote: > 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: >>

Re: What is the correct place to specifiy SPI service files for Java?

2018-08-01 Thread Thorsten Schöning
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

Re: What is the correct place to specifiy SPI service files for Java?

2018-08-01 Thread Mark Thomas
On 01/08/18 08:20, Thorsten Schöning wrote: > Guten Tag Mark Thomas, > am Dienstag, 31. Juli 2018 um 19:30 schrieben Sie: > >> Correct.[...] > > But as could have been read in the following paragraph of my mail and > the SO-link, it doesn't work that way at least in Tomcat 7.0.90 even > without

Re: What is the correct place to specifiy SPI service files for Java?

2018-08-01 Thread Thorsten Schöning
Guten Tag Mark Thomas, am Dienstag, 31. Juli 2018 um 19:30 schrieben Sie: > Correct.[...] But as could have been read in the following paragraph of my mail and the SO-link, it doesn't work that way at least in Tomcat 7.0.90 even without absolute ordering in web.xml. > Enumeration resources; >

Re: What is the correct place to specifiy SPI service files for Java?

2018-07-31 Thread Mark Thomas
On 31/07/18 17:06, Thorsten Schöning wrote: > Hi all, > > I would like to get some attention on some older SO-question[1] about > where to place SPI-service files of Java. > > Following the docs, those should be placed in META-INF at the top > level of some JAR and webapps designed to be used

What is the correct place to specifiy SPI service files for Java?

2018-07-31 Thread Thorsten Schöning
Hi all, I would like to get some attention on some older SO-question[1] about where to place SPI-service files of Java. Following the docs, those should be placed in META-INF at the top level of some JAR and webapps designed to be used with Tomcat provide such a folder. But it seems to be