You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Matthias Küspert <mk...@googlemail.com> on 2010/02/19 10:54:47 UTC
Possible bug in Bundle.findEntries?
Hi,
when running an OSGified .war using Pax Web Extender on Felix I
encountered a problem with the Bundle.findEntries() method:
Bundle.findEntries("WEB-INF", "web.xml", false) returns entries for
all files ending with "web.xml" - here's the log entry:
org.ops4j.pax.swissbox.extender.BundleWatcher - Found resources
[bundle://5.0:0/WEB-INF/jonas-web.xml,
bundle://5.0:0/WEB-INF/sun-web.xml, bundle://5.0:0/WEB-INF/web.xml]
As stated in [1] this seems to be a bug in the findEntries()
implementation. If this is true can somebody please open a Jira issue.
Thanks,
Matthias
[1] http://issues.ops4j.org/browse/PAXWEB-190
Re: Possible bug in Bundle.findEntries?
Posted by Matthias Küspert <mk...@googlemail.com>.
Thanks Stuart - I didn't realize I can open an issue myself ... I will
do and add a simple testcase too.
Cheers,
Matthias
On Fri, Feb 19, 2010 at 11:58 AM, Stuart McCulloch <mc...@gmail.com> wrote:
> On 19 February 2010 17:54, Matthias Küspert <mk...@googlemail.com>wrote:
>
>> Hi,
>>
>> when running an OSGified .war using Pax Web Extender on Felix I
>> encountered a problem with the Bundle.findEntries() method:
>> Bundle.findEntries("WEB-INF", "web.xml", false) returns entries for
>> all files ending with "web.xml" - here's the log entry:
>>
>> org.ops4j.pax.swissbox.extender.BundleWatcher - Found resources
>> [bundle://5.0:0/WEB-INF/jonas-web.xml,
>> bundle://5.0:0/WEB-INF/sun-web.xml, bundle://5.0:0/WEB-INF/web.xml]
>>
>> As stated in [1] this seems to be a bug in the findEntries()
>> implementation. If this is true can somebody please open a Jira issue.
>>
>
> Hi Matthias, some things that would help whoever picks up this issue:
>
> 1) what version of Felix are you using
> 2) what exact URLs are returned from findEntries*
> 3) can you provide the WAR file (attach to issue)
>
> * the comments in [1] suggest what's being returned, but it would be good to
> make sure with debugging/println
>
> also note anyone can raise an issue against Felix, just sign up at
> http://issues.apache.org/jira/browse/FELIX
> and hit create... the benefit of raising the issue yourself is that you'll
> get notified when it gets updated / fixed :)
>
>
>> Thanks,
>> Matthias
>>
>> [1] http://issues.ops4j.org/browse/PAXWEB-190
>>
>
> --
> Cheers, Stuart
>
Re: Possible bug in Bundle.findEntries?
Posted by Stuart McCulloch <mc...@gmail.com>.
On 19 February 2010 17:54, Matthias Küspert <mk...@googlemail.com>wrote:
> Hi,
>
> when running an OSGified .war using Pax Web Extender on Felix I
> encountered a problem with the Bundle.findEntries() method:
> Bundle.findEntries("WEB-INF", "web.xml", false) returns entries for
> all files ending with "web.xml" - here's the log entry:
>
> org.ops4j.pax.swissbox.extender.BundleWatcher - Found resources
> [bundle://5.0:0/WEB-INF/jonas-web.xml,
> bundle://5.0:0/WEB-INF/sun-web.xml, bundle://5.0:0/WEB-INF/web.xml]
>
> As stated in [1] this seems to be a bug in the findEntries()
> implementation. If this is true can somebody please open a Jira issue.
>
Hi Matthias, some things that would help whoever picks up this issue:
1) what version of Felix are you using
2) what exact URLs are returned from findEntries*
3) can you provide the WAR file (attach to issue)
* the comments in [1] suggest what's being returned, but it would be good to
make sure with debugging/println
also note anyone can raise an issue against Felix, just sign up at
http://issues.apache.org/jira/browse/FELIX
and hit create... the benefit of raising the issue yourself is that you'll
get notified when it gets updated / fixed :)
> Thanks,
> Matthias
>
> [1] http://issues.ops4j.org/browse/PAXWEB-190
>
--
Cheers, Stuart