rvesse commented on issue #2106: URL: https://github.com/apache/jena/issues/2106#issuecomment-1833402969
How are you packaging the JAR? A common pitfall related to `ServiceLoader` is that people repack multiple dependencies into a single fat/uber JAR with Maven shade plugin or equivalent. If that is done the default behaviour is to only keep one instance of each given file so when you have multiple `META-INF/services/<foo>` files across your dependencies only one gets picked. The shade plugin has a transformer that can be explicitly enabled to merge all those files together sensibly, see [Combining Apache Jena JARs](https://jena.apache.org/documentation/notes/jena-repack.html) for examples of that Have you double checked that your JAR definitely contains your `META-INF/services` file if you unpack it with `unzip`? The version you've attached to this issue does appear to have that correct AFAICT And if you inspect the `ps -ax` (or equivalent) output your extra JAR definitely got added to the `java` command run by `fuseki-service`? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
