[ 
https://issues.apache.org/jira/browse/ARIES-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15395769#comment-15395769
 ] 

Wouter Bancken commented on ARIES-1443:
---------------------------------------

The installation of the second feature actually fails with the message
gogo: SubsystemException: org.osgi.service.resolver.ResolutionException: Uses 
constraint violation. Unable to resolve resource 
org.ops4j.pax.web.pax-web-jetty-bundle [124.0] because it exports package 
'org.apache.xbean.finder.archive' and is also exposed to it from resource 
org.apache.xbean.finder [98.0] via the following dependency chain:

  org.ops4j.pax.web.pax-web-jetty-bundle [124.0]
    import: (osgi.wiring.package=org.apache.xbean.finder)
     |
    export: osgi.wiring.package: org.apache.xbean.finder; 
uses:=org.apache.xbean.finder.archive
    export: osgi.wiring.package=org.apache.xbean.finder.archive
  org.apache.xbean.finder [98.0]

This is printed after lots of debug statements of the same form saying "DEBUG: 
Candidate permutation failed due to a conflict between an export and import; 
will try another if possible."

I have been trying to reproduce this situation with simpler subsystems 
containing non-proprietary code to be able to provide a test case but I have 
been unsuccessful so far.

> After a restart the capabilities of a subsystem have changed (seem correct) 
> before the restart they seem wrong
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: ARIES-1443
>                 URL: https://issues.apache.org/jira/browse/ARIES-1443
>             Project: Aries
>          Issue Type: Bug
>          Components: Subsystem
>    Affects Versions: subsystem-2.0.6, subsystem-2.0.8
>         Environment: karaf pax-exam
>            Reporter: Bas
>            Assignee: John Ross
>              Labels: test-patch
>             Fix For: subsystem-2.1.0
>
>         Attachments: CapabilitiesDifferOnRestart.java.patch, 
> pax-web-jetty-bundle-4.2.5.jar
>
>
> A feature subsystem should export all capabilities of its constituents and it 
> does not do that after a fresh install. After a restart of the subsystem core 
> bundle it will export all the capabilities. 
> These seems to be a difference in parsing the capabilities of a persisted 
> subsystem and a new subsystem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to