Results 106 comments of Andrej Fink

Ok. The problem is not in a container, but in Spring Boot If you run jar file created by (Spring) boorJar task, you receive ``` 2024-03-22 14:39:04.092 WARN 20232 ---...

quick fix: `io.smallrye.common.classloader.ClassPathUtils#processAsPath` ➖ `final int exclam = file.lastIndexOf('!');` ➕ `final int exclam = file.indexOf('!'); // lastIndexOf`

The second problem is `classpath:` scheme. Spring uses it to specify classpath vs filesystem. Could you add it to `io.smallrye.config.AbstractLocationConfigSourceLoader#loadConfigSources(java.lang.String[], int, java.lang.ClassLoader)` ~ line 111 ``` } else if (uri.getScheme().startsWith("classpath"))...

How I have temporarily solved the problem 1) I have made the above-mentioned fix and published it on github https://github.com/magicprinc/smallrye-common-classloader-fix 2) built `com.github.magicprinc:smallrye-common-classloader-fix:2.3.3` using jitpack.io: https://jitpack.io/#magicprinc/smallrye-common-classloader-fix/2.3.3 and imported it according...

Fixed version: https://github.com/magicprinc/smallrye-common/blob/main/classloader/src/main/java/io/smallrye/common/classloader/ClassPathUtils.java

Example application Branch `main` shows the bug. Branch `fix` shows the fix. https://github.com/magicprinc/SmallRyeConfig-SpringBoot ``` git clone https://github.com/magicprinc/SmallRyeConfig-SpringBoot.git cd SmallRyeConfig-SpringBoot ./gradlew runBootJar ```