<div dir="ltr">The problem is in the library you&#39;re using as it shouldn&#39;t be using the Thread.currentThread().getContextClassLoader(). It should use getClass().getResource or getClass().getClassLoader(). Is there a way around it?</div><div class="gmail_extra"><br><div class="gmail_quote">On 11 January 2016 at 23:24, Josh Cain <span dir="ltr">&lt;<a href="mailto:josh.cain@redhat.com" target="_blank">josh.cain@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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><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><a href="tel:%2B1%20843-737-1735" value="+18437371735" target="_blank">+1 843-737-1735</a><br></span></div></div></div>
</div></div></div></div></div></div>
<br>_______________________________________________<br>
keycloak-dev mailing list<br>
<a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br></blockquote></div><br></div>