Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 81219 invoked from network); 13 Mar 2009 16:55:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2009 16:55:15 -0000 Received: (qmail 77606 invoked by uid 500); 13 Mar 2009 16:55:13 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 77320 invoked by uid 500); 13 Mar 2009 16:55:12 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 77311 invoked by uid 99); 13 Mar 2009 16:55:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2009 09:55:12 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.57] (HELO smtp102.prem.mail.sp1.yahoo.com) (98.136.44.57) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 13 Mar 2009 16:55:04 +0000 Received: (qmail 73211 invoked from network); 13 Mar 2009 16:54:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=IKA801Ki2t231bucXHPL+83ZoAunSn9R1hXqa9nX3Tj2o0pK7Nbgc9Dl9UaF3A/Je0a92kKFigDxCRqTpym26k6jYNCYgqA2Ly3aHGgwJA11gpVIsdMxDB4IvyUeTo0A1VfJoPJX6FmI6Iij5mngomk638V/G48MhJxsS0txsZ4= ; Received: from unknown (HELO ?10.11.55.44?) (david_jencks@76.76.148.215 with plain) by smtp102.prem.mail.sp1.yahoo.com with SMTP; 13 Mar 2009 16:54:43 -0000 X-YMail-OSG: SdJnaysVM1lVKa8elAcocXwuc0X37aHvQVEKKvLzOOew_oUKMvfVMyJ8eMWGFfhcX2LRC9VmI2on8ZxIH.ruMlkIEOThl.GYWY8IR330BENrOJawv3xwOqGex430xhaNK9A9Wbyis0hJ8tJwJOurhDr4uAQz1_egQ41Ae6bdL.G_jNEFNH3RuqdzjkjLeR1_yEnaFxWgaslyCCsKI7xFE5SHlsgzxDzznabO6jrtTcmsjkeoit1CAexNDM7AkOKo0ijd7UulBx7_M8YfzrvvK8gX.2pDZuEXbWOvUG2vJH9XdOxtUSMlJg-- X-Yahoo-Newman-Property: ymail-3 Message-Id: <318E65A2-B81D-473B-AFFC-81CFCDF4D961@yahoo.com> From: David Jencks To: user@geronimo.apache.org In-Reply-To: <22496887.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Access resources in rar embedded inside an ear Date: Fri, 13 Mar 2009 09:54:42 -0700 References: <22496887.post@talk.nabble.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On Mar 13, 2009, at 6:55 AM, Olaf Bergner wrote: > > I have an application packaged as an ear containing wars, rars and > ejb-jars. > Employing what little I have in the way of graphical talent I would > visualize the overall structure as > > app-ear - META-INF/application.xml > | > ------- ra.rar - META-INF/ra.xml > | - META-INF/resource.xml > | > (further JEE modules) > > From inside code deployed in ra.rar I'm trying to access the classpath > resource > > ra.rar/META-INF/resource.xml > > using the usual getResourceAsStream(...) mechanism. > > This however fails, i.e. returns null. Only if I put resource.xml > inside the > ear's META-INF directory am I able to access it. Stuff in the rar such as your ra.rar/META-INF/resource.xml would be accessible at META-INF/resource.xml, not ra.rar/META-INF/resource.xml (you might need /META-INF/resource.xml) If this doesn't work we have a problem (I think :-) thanks david jencks > > > My expectation is that this is such a common requirement and that when > accessing resources from inside a JEE module you naturally expect > those > resources to be resolved relative to the current module and not > relative to > the enclosing ear so that there has to be some standard solution. Am I > wrong? > > Thx, > Olaf > > -- > View this message in context: http://www.nabble.com/Access-resources-in-rar-embedded-inside-an-ear-tp22496887s134p22496887.html > Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. >