Hi guys, I&#39;m facing a strange problem. Inside a facet which is a scaffold provider I need to load a resource for MetaWidget. I can see printing this from the method that needs the resource <div><br></div><div>                this.getClass().getClassLoader().getResource(&quot;scaffold/errai/metawidget-formbean.xml&quot;)</div>

<div><br></div><div>that the file is available:<br></div><div><br></div><div>file:/Users/lucamasini/.forge/plugins/org/jboss/forge/forge-scaffold-errai/1.0.6-SNAPSHOT-e0a249f3-6fe7-4ea1-8fd9-680f8e422af4/forge-scaffold-errai.jar!/scaffold/errai/metawidget-formbean.xml</div>


<div><br></div><div>but inside the SimpleResourceResolver neither:</div><div><br></div><div><div><span class="" style="white-space:pre">                </span>ClassLoader loaderContext = Thread.currentThread().getContextClassLoader();</div>

<div><br></div><div><span style="white-space:pre">or:</span></div><div><span style="white-space:pre"><br></span></div><div><span class="" style="white-space:pre">                </span>InputStream stream = getClass().getResourceAsStream( resource );</div>

<div><br></div><div>can find the resource because the &quot;forge-scaffold-errai.jar&quot; is not one of the JAR used by the current classloader (which is a JBoss&#39;s ModuleClassloader).</div><div><br></div><div>The current implementation of scaffolding for faces works because is inside the forge itself, but I think we have some problems using it in an external plugin.</div>

<div><br></div><div>Do you think I need to declare it in some kind of manifest ??</div><div><br></div><div>Thank you</div><div>L.</div><div><br></div>-- <br>****************************************<br><a href="http://www.lucamasini.net" target="_blank">http://www.lucamasini.net</a><br>

<a href="http://twitter.com/lmasini" target="_blank">http://twitter.com/lmasini</a><br>
<a href="http://www.linkedin.com/pub/luca-masini/7/10/2b9" target="_blank">http://www.linkedin.com/pub/luca-masini/7/10/2b9</a><br>****************************************<br>
</div>