<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 "importing" 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"><<a href="mailto:arun.gupta@gmail.com" target="_blank">arun.gupta@gmail.com</a>></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 "main" 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>
<<a href="mailto:brian.stansberry@redhat.com">brian.stansberry@redhat.com</a>> wrote:<br>
> In your directory structure, you need "main" after "greet".<br>
><br>
> modules/org/samples/greet/main<br>
><br>
> A module id is composed of a name and a slot, with "main" as the default<br>
> slot. The directory structure must include the slot.<br>
><br>
> On 2/17/14, 9:06 PM, Arun Gupta wrote:<br>
>> I'm trying to create a simple sample that shows JBoss Modules and<br>
>> source code is checked in at:<br>
>><br>
>> <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>
>><br>
>> Also created the following directories in "modules":<br>
>><br>
>> modules/org<br>
>> modules/org/samples<br>
>> modules/org/samples/greet<br>
>> modules/org/samples/greet/greet-api-1.0-SNAPSHOT.jar<br>
>> modules/org/samples/greet/greet-simple-1.0-SNAPSHOT.jar<br>
>> modules/org/samples/greet/modules.xml<br>
>><br>
>> modules.xml looks like:<br>
>><br>
>> <?xml version="1.0" encoding="UTF-8"?><br>
>> <module xmlns="urn:jboss:module:1.0" name="org.samples.greet"><br>
>> <resources><br>
>> <resource-root path="greet-api-1.0.0-SNAPSHOT.jar" /><br>
>> <resource-root path="greet-simple-1.0.0-SNAPSHOT.jar" /><br>
>> </resources><br>
>> </module><br>
>><br>
>> The web application accesses a service from API module but no results<br>
>> are returned. No error logs, no service not resolved error, nothing.<br>
>><br>
>> Seems like I'm doing something incorrectly basic. Suggestions how to<br>
>> debug this further ?<br>
>><br>
>> Thanks,<br>
>> Arun<br>
>><br>
><br>
><br>
> --<br>
> Brian Stansberry<br>
> Senior Principal Software Engineer<br>
> JBoss by Red Hat<br>
> _______________________________________________<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>
<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>