<div dir="ltr"><div>What do you mean resolution of service? <br>you have some service registered via ServiceLoader pattern?<br><br>in that case you need to import also services when you are &quot;importing&quot; module to your application.<br>
<br>as for logging goes, you can set org.jboss.modules to TRACE<br><br>--<br></div>tomaz<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 18, 2014 at 6:28 AM, Arun Gupta <span dir="ltr">&lt;<a href="mailto:arun.gupta@gmail.com" target="_blank">arun.gupta@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Seems like the sample has more issues as just adding &quot;main&quot; directory<br>
did not enable resolution of service.<br>
<br>
How would we typically debug this scenario ? What kind of loggers to<br>
be turned on ?<br>
<span class="HOEnZb"><font color="#888888"><br>
Arun<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, Feb 17, 2014 at 7:23 PM, Brian Stansberry<br>
&lt;<a href="mailto:brian.stansberry@redhat.com">brian.stansberry@redhat.com</a>&gt; wrote:<br>
&gt; In your directory structure, you need &quot;main&quot; after &quot;greet&quot;.<br>
&gt;<br>
&gt; modules/org/samples/greet/main<br>
&gt;<br>
&gt; A module id is composed of a name and a slot, with &quot;main&quot; as the default<br>
&gt; slot. The directory structure must include the slot.<br>
&gt;<br>
&gt; On 2/17/14, 9:06 PM, Arun Gupta wrote:<br>
&gt;&gt; I&#39;m trying to create a simple sample that shows JBoss Modules and<br>
&gt;&gt; source code is checked in at:<br>
&gt;&gt;<br>
&gt;&gt; <a href="https://github.com/arun-gupta/wildfly-samples/tree/master/jboss-modules" target="_blank">https://github.com/arun-gupta/wildfly-samples/tree/master/jboss-modules</a><br>
&gt;&gt;<br>
&gt;&gt; Also created the following directories in &quot;modules&quot;:<br>
&gt;&gt;<br>
&gt;&gt; modules/org<br>
&gt;&gt; modules/org/samples<br>
&gt;&gt; modules/org/samples/greet<br>
&gt;&gt; modules/org/samples/greet/greet-api-1.0-SNAPSHOT.jar<br>
&gt;&gt; modules/org/samples/greet/greet-simple-1.0-SNAPSHOT.jar<br>
&gt;&gt; modules/org/samples/greet/modules.xml<br>
&gt;&gt;<br>
&gt;&gt; modules.xml looks like:<br>
&gt;&gt;<br>
&gt;&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
&gt;&gt; &lt;module xmlns=&quot;urn:jboss:module:1.0&quot; name=&quot;org.samples.greet&quot;&gt;<br>
&gt;&gt;      &lt;resources&gt;<br>
&gt;&gt;          &lt;resource-root path=&quot;greet-api-1.0.0-SNAPSHOT.jar&quot; /&gt;<br>
&gt;&gt;          &lt;resource-root path=&quot;greet-simple-1.0.0-SNAPSHOT.jar&quot; /&gt;<br>
&gt;&gt;      &lt;/resources&gt;<br>
&gt;&gt; &lt;/module&gt;<br>
&gt;&gt;<br>
&gt;&gt; The web application accesses a service from API module but no results<br>
&gt;&gt; are returned. No error logs, no service not resolved error, nothing.<br>
&gt;&gt;<br>
&gt;&gt; Seems like I&#39;m doing something incorrectly basic. Suggestions how to<br>
&gt;&gt; debug this further ?<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Arun<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Brian Stansberry<br>
&gt; Senior Principal Software Engineer<br>
&gt; JBoss by Red Hat<br>
&gt; _______________________________________________<br>
&gt; wildfly-dev mailing list<br>
&gt; <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
<br>
<br>
<br>
</div></div><div class="im HOEnZb">--<br>
<a href="http://blog.arungupta.me" target="_blank">http://blog.arungupta.me</a><br>
<a href="http://twitter.com/arungupta" target="_blank">http://twitter.com/arungupta</a><br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
</div></div></blockquote></div><br></div>