<div dir="ltr"><div><div><div><div>Hi all,<br><br></div>I&#39;m in the process of writing an SPI for a federation provider that relies on a third party library, and the library in turn uses a number of files.  I placed my SPI .jar, the third party library .jar, as well as its required files in the keycloak-1.7.0.Final/standalone/configuration/providers directory.  However, when the third party library attempts to locate its required files on the classpath, it cannot find them.<br><br></div>Just for a sanity check, I&#39;ve placed the files places like the sun/jdk/main module on the AS, and observed that the files were picked up properly since that particular folder was on the classpath.<br><br></div>Can anyone help me understand why those files are not being picked up as classpath resources?  Does the configuration/providers directory not get added to the classpath?<br><br></div>Just FYI, I poked through the library a bit, and it doesn&#39;t seem to be doing anything strange.  It winds up doing the equivalent of:<br><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:&quot;Source Code Pro&quot;;font-size:10.5pt">Thread.<span style="font-style:italic">currentThread</span>().getContextClassLoader().getResourceAsStream(filePath);<br clear="all"></pre><div><div><div><div><div><div><div class="gmail_signature"><div dir="ltr"><span><div><div>Josh Cain | Software Applications Engineer<br></div><i>Identity and Access Management</i><br></div><b>Red Hat</b><br>+1 843-737-1735<br></span></div></div></div>
</div></div></div></div></div></div>