You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2008/04/17 16:39:21 UTC

[jira] Created: (GERONIMO-3960) Make the spec jars OSGi friendly

Make the spec jars OSGi friendly
--------------------------------

                 Key: GERONIMO-3960
                 URL: https://issues.apache.org/jira/browse/GERONIMO-3960
             Project: Geronimo
          Issue Type: New Feature
      Security Level: public (Regular issues)
          Components: specs
            Reporter: Guillaume Nodet




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


[jira] Updated: (GERONIMO-3960) Make the spec jars OSGi friendly

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-3960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated GERONIMO-3960:
--------------------------------------

    Attachment: stax-osgi.diff

Examples of OSGi friendly spec for stax

> Make the spec jars OSGi friendly
> --------------------------------
>
>                 Key: GERONIMO-3960
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3960
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: specs
>            Reporter: Guillaume Nodet
>         Attachments: stax-osgi.diff
>
>


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


[jira] Updated: (GERONIMO-3960) Make the spec jars OSGi friendly

Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-3960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gert Vanthienen updated GERONIMO-3960:
--------------------------------------

    Attachment: GERONIMO-3960.diff

Most of the work on this issue has already been done -- all the spec jars now have the OSGi metadata.

There's only one remaining problem with the jars when using them in an OSGi environment: they all import the packages they export.  E.g. the EL 1.0 bundle exports javax.el;version="1.0" but it also imports javax.el;version="1.0"

While this is a fine configuration for some bundles, there's no good reason for the specs bundles to import their own packages.  On top of that, the import doesn't have an upper limit set on the version imported, which means that if you install EL 2.2 in the same OSGi framewok instance as the EL 1.0 spec mentioned before, it's perfectly possible that the import on the latter will resolve to the packages exported by the former version (because 2.2 >= 1.0)

Attaching a patch that removes these imports by adding the *{{-noimport:=true}}* flag to the Export-Packages configuration

> Make the spec jars OSGi friendly
> --------------------------------
>
>                 Key: GERONIMO-3960
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3960
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: specs
>            Reporter: Guillaume Nodet
>         Attachments: GERONIMO-3960.diff, stax-osgi.diff
>
>


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


[jira] Commented: (GERONIMO-3960) Make the spec jars OSGi friendly

Posted by "Alan Cabrera (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-3960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12590045#action_12590045 ] 

Alan Cabrera commented on GERONIMO-3960:
----------------------------------------

What about bundle updates?  I don't think that this code will handle those situations.

> Make the spec jars OSGi friendly
> --------------------------------
>
>                 Key: GERONIMO-3960
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3960
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: specs
>            Reporter: Guillaume Nodet
>         Attachments: stax-osgi.diff
>
>


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


[jira] Commented: (GERONIMO-3960) Make the spec jars OSGi friendly

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-3960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12590053#action_12590053 ] 

Guillaume Nodet commented on GERONIMO-3960:
-------------------------------------------

Yeah, not sure what events are exactly sent, but looking at the figure 4.26 (section 4.3.2 of the osgi r4 core spec), it seems like a bundle that is resolved will go back to the install stated after an update or a refresh, then back to the resolved state.  If this is true, then the code should handle it correctly.
I guess this would need to be property checked though.

> Make the spec jars OSGi friendly
> --------------------------------
>
>                 Key: GERONIMO-3960
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3960
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: specs
>            Reporter: Guillaume Nodet
>         Attachments: stax-osgi.diff
>
>


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