Bugs item #780914, was opened at 2003-07-31 20:48 Message generated for change (Comment added) made by srivatsanp You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=780914&group_id=22866
Category: JBossMX Group: None Status: Open Resolution: None Priority: 5 Submitted By: Srivatsan (srivatsanp) Assigned to: Nobody/Anonymous (nobody) Summary: Class Loader issue Initial Comment: Hi, In JBoss 3.2.1, if any of the compressed deployment archive contains any resource present in a directory(say dtd/), then when some other archive has some resource in the same "dtd/" directory, it is not accessible. For e.g., Consider the following packaging structure: Test.sar --dtd/Test.dtd Application1.ear --dtd/Test1.dtd Application2.ear --Test.sar (This service is not able to access the Test1.dtd present in Application1.ear). The dtd is accessed using this.getClass().getClassLoader().getResource("dtd/Test1.dtd"); If Test.sar is deployed as an unpacked archive, the Test1.dtd is accessible. This is due to a bug in indexing in ClassLoaderUtils.java If the deployment unit is unpacked, it indexes the package names of the class file only. If the deployment unit is a compressed archive, it indexes all the entries present in the archive. This results in indexing of the dtd directory present in Test.sar. So when getResource("dtd/Test1.dtd") is performed, the dtd is searched only in Test.sar. ---------------------------------------------------------------------- >Comment By: Srivatsan (srivatsanp) Date: 2003-08-01 10:59 Message: Logged In: YES user_id=687037 Forgot to mention that Application1.ear and Application2.ear are unpaccked deployments. Application1.ear/ dtd/Test1.dtd Application2.ear/ Test.sar ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=780914&group_id=22866 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development