You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Pierre De Rop (JIRA)" <ji...@apache.org> on 2008/09/12 09:21:44 UTC

[jira] Created: (FELIX-722) Can't manage split packages with Require-Bundle header

Can't manage split packages with Require-Bundle header
------------------------------------------------------

                 Key: FELIX-722
                 URL: https://issues.apache.org/jira/browse/FELIX-722
             Project: Felix
          Issue Type: Bug
          Components: Framework
    Affects Versions: felix-1.2.1

         Environment: Linux
            Reporter: Pierre De Rop
            Priority: Minor
             Fix For: felix-1.2.1



Attached to this post a sample code which tries to manage split packages with the
"Require-Bundle" header. 
It does not work with felix 1.2.1 (but sounds like working with knoperfish).

Please have a look at the following felix forum post:
http://www.mail-archive.com/users@felix.apache.org/msg02044.html


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-722) Can't manage split packages with Require-Bundle header

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631139#action_12631139 ] 

Richard S. Hall commented on FELIX-722:
---------------------------------------

Just more clarification as to what was going wrong here and why it wasn't noticed a long time ago...

This only impacted the situation where a bundle required other bundles and then aggregated a split package from those bundles and re-exported the split package. The error occurred when an Import-Package was then wired to the re-exported packages, since the delegation was being sent directly to the exporting module's content instead of through its require-bundle wires. Delegation worked correctly for the bundle doing the require-bundle, just not for any bundles importing a re-exported package.

> Can't manage split packages with Require-Bundle header
> ------------------------------------------------------
>
>                 Key: FELIX-722
>                 URL: https://issues.apache.org/jira/browse/FELIX-722
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.2.1

>         Environment: Linux
>            Reporter: Pierre De Rop
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: felix-1.2.2
>
>         Attachments: test-splitpackage.tgz
>
>
> Attached to this post a sample code which tries to manage split packages with the
> "Require-Bundle" header. 
> It does not work with felix 1.2.1 (but sounds like working with knoperfish).
> Please have a look at the following felix forum post:
> http://www.mail-archive.com/users@felix.apache.org/msg02044.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-722) Can't manage split packages with Require-Bundle header

Posted by "Pierre De Rop (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre De Rop updated FELIX-722:
--------------------------------

    Attachment: test-splitpackage.tgz

In this archive, you will find the three bundles (generated under "test-splitpackages/bundles/" dir).
(it's already compiled, but there is a "build.xml" ni test-splitpackages/ dir).


> Can't manage split packages with Require-Bundle header
> ------------------------------------------------------
>
>                 Key: FELIX-722
>                 URL: https://issues.apache.org/jira/browse/FELIX-722
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.2.1

>         Environment: Linux
>            Reporter: Pierre De Rop
>            Priority: Minor
>             Fix For: felix-1.2.1

>
>         Attachments: test-splitpackage.tgz
>
>
> Attached to this post a sample code which tries to manage split packages with the
> "Require-Bundle" header. 
> It does not work with felix 1.2.1 (but sounds like working with knoperfish).
> Please have a look at the following felix forum post:
> http://www.mail-archive.com/users@felix.apache.org/msg02044.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-722) Can't manage split packages with Require-Bundle header

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630642#action_12630642 ] 

Richard S. Hall commented on FELIX-722:
---------------------------------------

I think I have gotten to the bottom of this, but I uncovered another issue that I now need to address first. Expect a fix before long.

> Can't manage split packages with Require-Bundle header
> ------------------------------------------------------
>
>                 Key: FELIX-722
>                 URL: https://issues.apache.org/jira/browse/FELIX-722
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.2.1

>         Environment: Linux
>            Reporter: Pierre De Rop
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: felix-1.2.1

>
>         Attachments: test-splitpackage.tgz
>
>
> Attached to this post a sample code which tries to manage split packages with the
> "Require-Bundle" header. 
> It does not work with felix 1.2.1 (but sounds like working with knoperfish).
> Please have a look at the following felix forum post:
> http://www.mail-archive.com/users@felix.apache.org/msg02044.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-722) Can't manage split packages with Require-Bundle header

Posted by "Pierre De Rop (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632162#action_12632162 ] 

Pierre De Rop commented on FELIX-722:
-------------------------------------

Richard, 

It works ! I close the issue. 
Thank you !




> Can't manage split packages with Require-Bundle header
> ------------------------------------------------------
>
>                 Key: FELIX-722
>                 URL: https://issues.apache.org/jira/browse/FELIX-722
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.2.1

>         Environment: Linux
>            Reporter: Pierre De Rop
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: felix-1.2.2
>
>         Attachments: test-splitpackage.tgz
>
>
> Attached to this post a sample code which tries to manage split packages with the
> "Require-Bundle" header. 
> It does not work with felix 1.2.1 (but sounds like working with knoperfish).
> Please have a look at the following felix forum post:
> http://www.mail-archive.com/users@felix.apache.org/msg02044.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-722) Can't manage split packages with Require-Bundle header

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630511#action_12630511 ] 

Stuart McCulloch commented on FELIX-722:
----------------------------------------

FYI, I've also confirmed this works in Equinox using a similar setup

> Can't manage split packages with Require-Bundle header
> ------------------------------------------------------
>
>                 Key: FELIX-722
>                 URL: https://issues.apache.org/jira/browse/FELIX-722
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.2.1

>         Environment: Linux
>            Reporter: Pierre De Rop
>            Priority: Minor
>             Fix For: felix-1.2.1

>
>         Attachments: test-splitpackage.tgz
>
>
> Attached to this post a sample code which tries to manage split packages with the
> "Require-Bundle" header. 
> It does not work with felix 1.2.1 (but sounds like working with knoperfish).
> Please have a look at the following felix forum post:
> http://www.mail-archive.com/users@felix.apache.org/msg02044.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-722) Can't manage split packages with Require-Bundle header

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall updated FELIX-722:
----------------------------------

    Fix Version/s:     (was: felix-1.2.1
)

> Can't manage split packages with Require-Bundle header
> ------------------------------------------------------
>
>                 Key: FELIX-722
>                 URL: https://issues.apache.org/jira/browse/FELIX-722
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.2.1

>         Environment: Linux
>            Reporter: Pierre De Rop
>            Assignee: Richard S. Hall
>            Priority: Minor
>         Attachments: test-splitpackage.tgz
>
>
> Attached to this post a sample code which tries to manage split packages with the
> "Require-Bundle" header. 
> It does not work with felix 1.2.1 (but sounds like working with knoperfish).
> Please have a look at the following felix forum post:
> http://www.mail-archive.com/users@felix.apache.org/msg02044.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (FELIX-722) Can't manage split packages with Require-Bundle header

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall reassigned FELIX-722:
-------------------------------------

    Assignee: Richard S. Hall

> Can't manage split packages with Require-Bundle header
> ------------------------------------------------------
>
>                 Key: FELIX-722
>                 URL: https://issues.apache.org/jira/browse/FELIX-722
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.2.1

>         Environment: Linux
>            Reporter: Pierre De Rop
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: felix-1.2.1

>
>         Attachments: test-splitpackage.tgz
>
>
> Attached to this post a sample code which tries to manage split packages with the
> "Require-Bundle" header. 
> It does not work with felix 1.2.1 (but sounds like working with knoperfish).
> Please have a look at the following felix forum post:
> http://www.mail-archive.com/users@felix.apache.org/msg02044.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-722) Can't manage split packages with Require-Bundle header

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall updated FELIX-722:
----------------------------------

    Fix Version/s: felix-1.2.2

> Can't manage split packages with Require-Bundle header
> ------------------------------------------------------
>
>                 Key: FELIX-722
>                 URL: https://issues.apache.org/jira/browse/FELIX-722
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.2.1

>         Environment: Linux
>            Reporter: Pierre De Rop
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: felix-1.2.2
>
>         Attachments: test-splitpackage.tgz
>
>
> Attached to this post a sample code which tries to manage split packages with the
> "Require-Bundle" header. 
> It does not work with felix 1.2.1 (but sounds like working with knoperfish).
> Please have a look at the following felix forum post:
> http://www.mail-archive.com/users@felix.apache.org/msg02044.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (FELIX-722) Can't manage split packages with Require-Bundle header

Posted by "Pierre De Rop (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre De Rop closed FELIX-722.
-------------------------------


I verified the fix in our application server, and it works just fine.
thanks a million !

/pierre

> Can't manage split packages with Require-Bundle header
> ------------------------------------------------------
>
>                 Key: FELIX-722
>                 URL: https://issues.apache.org/jira/browse/FELIX-722
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.2.1

>         Environment: Linux
>            Reporter: Pierre De Rop
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: felix-1.2.2
>
>         Attachments: test-splitpackage.tgz
>
>
> Attached to this post a sample code which tries to manage split packages with the
> "Require-Bundle" header. 
> It does not work with felix 1.2.1 (but sounds like working with knoperfish).
> Please have a look at the following felix forum post:
> http://www.mail-archive.com/users@felix.apache.org/msg02044.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-722) Can't manage split packages with Require-Bundle header

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall resolved FELIX-722.
-----------------------------------

    Resolution: Fixed

Committed a fix for this issue. Basically, the class loader delegation was incorrect; it was only delegating to the module content in all cases instead of the module wire in the case of a require-bundle dependency. The attached example now behaves correctly for me. Pierre, could you please test the trunk (or the snapshot which I will deploy shortly) and close this issue if you are satisfied. Thanks.

> Can't manage split packages with Require-Bundle header
> ------------------------------------------------------
>
>                 Key: FELIX-722
>                 URL: https://issues.apache.org/jira/browse/FELIX-722
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.2.1

>         Environment: Linux
>            Reporter: Pierre De Rop
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: felix-1.2.2
>
>         Attachments: test-splitpackage.tgz
>
>
> Attached to this post a sample code which tries to manage split packages with the
> "Require-Bundle" header. 
> It does not work with felix 1.2.1 (but sounds like working with knoperfish).
> Please have a look at the following felix forum post:
> http://www.mail-archive.com/users@felix.apache.org/msg02044.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.