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