&gt;Just to be clear, did that newline fix the issue?<br>
Hi Jaikiran. No that didn&#39;t fix it. On the other hand, the library is correctly picked up in the EAR/lib folder, just not at the root of the archive.<br><br><div class="gmail_quote">2011/7/12 Jaikiran Pai <span dir="ltr">&lt;<a href="mailto:jpai@redhat.com">jpai@redhat.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Tuesday 12 July 2011 05:22 PM, Francesco Marchioni wrote:<br>
&gt; yes, thanks I&#39;ve added the newline at the end of the Class-Path.<br>
</div>Just to be clear, did that newline fix the issue?<br>
<br>
-Jaikiran<br>
<div class="im"><br>
&gt;<br>
&gt; What I find odd, is that adding to to jboss-deployment-structure.xml<br>
&gt; the resources element, deployment fails because the Utility module has<br>
&gt; been already loaded.....<br>
&gt;<br>
&gt; &lt;jboss-deployment-structure&gt;<br>
&gt;<br>
&gt; &lt;deployment&gt;<br>
&gt;<br>
&gt; &lt;resources&gt;<br>
&gt; &lt;resource-root path=&quot;Utility.jar&quot; /&gt;<br>
&gt; &lt;/resources&gt;<br>
&gt; &lt;/deployment&gt;<br>
&gt;<br>
&gt; &lt;/jboss-deployment-structure&gt;<br>
&gt;<br>
&gt;<br>
&gt; Caused by: org.jboss.msc.service.DuplicateServiceException: Service<br>
&gt; jboss.module.information.service.&quot;deployment.EnterpriseApp.ear.Utility.jar&quot;.main<br>
&gt; is already registered<br>
&gt;<br>
&gt; ......walking in the dark........<br>
&gt;<br>
&gt;<br>
&gt; 2011/7/12 Stuart Douglas &lt;<a href="mailto:stuart.w.douglas@gmail.com">stuart.w.douglas@gmail.com</a><br>
</div>&gt; &lt;mailto:<a href="mailto:stuart.w.douglas@gmail.com">stuart.w.douglas@gmail.com</a>&gt;&gt;<br>
<div><div></div><div class="h5">&gt;<br>
&gt;     This should work, and there are tests for this in the test suite.<br>
&gt;     Are you missing a newline at the end of the Class-Path: line in<br>
&gt;     the manifest by any chance?<br>
&gt;<br>
&gt;     For some really annoying reason the JDK manifest processing stuff<br>
&gt;     does not work unless there is newline at the end of the file.<br>
&gt;<br>
&gt;     Stuart<br>
&gt;<br>
&gt;<br>
&gt;     On 12/07/2011, at 7:06 PM, Francesco Marchioni wrote:<br>
&gt;<br>
&gt;     &gt; Dear devs,<br>
&gt;     &gt; I&#39;m testing .ear classloading with utility classes packaged in<br>
&gt;     the Enterprise Archive.<br>
&gt;     &gt; The following case test fails, so I&#39;m wondering if it&#39;s my<br>
&gt;     misundertanding or a bug:<br>
&gt;     &gt;<br>
&gt;     &gt; application.ear<br>
&gt;     &gt; |<br>
&gt;     &gt; |  Webapplication.war<br>
&gt;     &gt; |  Utility.jar<br>
&gt;     &gt; |<br>
&gt;     &gt; |  META-INF/MANIFEST.MF<br>
&gt;     &gt;<br>
&gt;     &gt; Manifest file contains the Java EE compliant dependency to the<br>
&gt;     class Utility.jar<br>
&gt;     &gt; Class-Path: Utility.jar<br>
&gt;     &gt;<br>
&gt;     &gt; However, the Webapplication fails to load the classes from<br>
&gt;     Utility.jar, which are instead correctly pickedup if I move them<br>
&gt;     into the ear&#39;s lib folder.<br>
&gt;     &gt;<br>
&gt;     &gt; As side note - I&#39;ve tried also stating isolated deployments to<br>
&gt;     false, in jboss-deployment-structure.xml (which should default)<br>
&gt;     without success:<br>
&gt;     &gt; &lt;jboss-deployment-structure&gt;<br>
&gt;     &gt; &lt;ear-subdeployments-isolated&gt;false&lt;/ear-subdeployments-isolated&gt;<br>
&gt;     &gt; &lt;/jboss-deployment-structure&gt;<br>
&gt;     &gt;<br>
&gt;     &gt; Any suggestion?<br>
&gt;     &gt; Thanks a lot<br>
&gt;     &gt; Francesco<br>
&gt;     &gt; _______________________________________________<br>
&gt;     &gt; jboss-as7-dev mailing list<br>
</div></div>&gt;     &gt; <a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a>&gt;<br>
<div><div></div><div class="h5">&gt;     &gt; <a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; jboss-as7-dev mailing list<br>
&gt; <a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
<br>
_______________________________________________<br>
jboss-as7-dev mailing list<br>
<a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
</div></div></blockquote></div><br>