[ 
https://issues.apache.org/jira/browse/ARIES-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wouter Bancken updated ARIES-1588:
----------------------------------
    Description: 
h4. Setup
Two feature subsystems
1. Feature subsystem with fragment-hosts and fragments
2. Feature subsystem with other bundles
Installation of the second subsystem fails

h4. Issue
Installation of the second subsystem fails with the message 
{quote}
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]
{quote}
Before failing a lot of similar messages are logged with the message "DEBUG: 
Candidate permutation failed due to a conflict between an export and import; 
will try another if possible."

This is especially weird since pax-web-jetty-bundle does not expose the 
org.apache.xbean.finder.archive package (see attached Jar). Both 
pax-web-jetty-bundle and org.apache.xbean.finder are only present in the first 
subsystem.

In our setup pax-web-jetty-bundle is a fragment-host for a fragment which is in 
the same (first) subsystem. Similar DEBUG statements are printed for other 
fragment-hosts in the first subsystem.

The issue occurs since commit 4c0437de06f34321909a6132a7f2be163b2f6d5 
(ARIES-1443). In earlier versions, we had no issues for these subsystems. 

  was:
h4. Setup
Two feature subsystems
1. Feature subsystem with fragment-hosts and fragments
2. Feature subsystem with other bundles
Installation of the second subsystem fails

h4. Issue
Installation of the second subsystem fails with the message 
{quote}
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]
{quote}
Before failing a lot of similar messages are logged with the message "DEBUG: 
Candidate permutation failed due to a conflict between an export and import; 
will try another if possible."

This is especially weird since pax-web-jetty-bundle does not expose the 
org.apache.xbean.finder.archive package (see attached Jar). Both 
pax-web-jetty-bundle and org.apache.xbean.finder are only present in the first 
subsystem.

In our setup pax-web-jetty-bundle is a fragment-host for a fragment which is in 
the same (first) subsystem. Similar DEBUG statements are printed for other 
fragment-hosts in the first subsystem.

The issue occurs since commit 4c0437de06f34321909a6132a7f2be163b2f6d5. In 
earlier versions, we had no issues for these subsystems


> Installation of subsystems fails due to incorrectly detected export packages
> ----------------------------------------------------------------------------
>
>                 Key: ARIES-1588
>                 URL: https://issues.apache.org/jira/browse/ARIES-1588
>             Project: Aries
>          Issue Type: Bug
>          Components: Subsystem
>    Affects Versions: subsystem-2.1.0
>            Reporter: Wouter Bancken
>             Fix For: subsystem-2.1.0
>
>         Attachments: pax-web-jetty-bundle-4.2.5.jar
>
>
> h4. Setup
> Two feature subsystems
> 1. Feature subsystem with fragment-hosts and fragments
> 2. Feature subsystem with other bundles
> Installation of the second subsystem fails
> h4. Issue
> Installation of the second subsystem fails with the message 
> {quote}
> 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]
> {quote}
> Before failing a lot of similar messages are logged with the message "DEBUG: 
> Candidate permutation failed due to a conflict between an export and import; 
> will try another if possible."
> This is especially weird since pax-web-jetty-bundle does not expose the 
> org.apache.xbean.finder.archive package (see attached Jar). Both 
> pax-web-jetty-bundle and org.apache.xbean.finder are only present in the 
> first subsystem.
> In our setup pax-web-jetty-bundle is a fragment-host for a fragment which is 
> in the same (first) subsystem. Similar DEBUG statements are printed for other 
> fragment-hosts in the first subsystem.
> The issue occurs since commit 4c0437de06f34321909a6132a7f2be163b2f6d5 
> (ARIES-1443). In earlier versions, we had no issues for these subsystems. 



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

Reply via email to