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

Bas commented on ARIES-1404:
----------------------------

I did look 'Application-ImportService'  but I did not use it. This issue is 
caused by optional dependencies that cannot be fulfilled being added to this 
'synthesized' resource. I made a test case in ARIES-1357 for this issue.

The patch I provided does not work when the 'synthesized' resource is the only 
resource that needs to be provisioned. I will add an attachment 
'synthesized.patch' that solves that problem. 

I'm going to test the 'Require-Capability' tomorrow to see if it works because 
I read that nobody tested it after R6 was merged but the issue was closed 
because the assumption is that is has been fixed in that branch.

> Restart of the osgi container does not restart subsystem core because of an 
> error related to missing resource 
> org.apache.aries.subsystem.resource.synthesized
> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARIES-1404
>                 URL: https://issues.apache.org/jira/browse/ARIES-1404
>             Project: Aries
>          Issue Type: Bug
>          Components: Subsystem
>    Affects Versions: subsystem-2.0.3
>         Environment: On karaf 4 with subsystem-2.0.3-SNAPSHOT revision 1702099
>            Reporter: Bas
>              Labels: patch
>         Attachments: ProvisionResourceSynthesized.patch, 
> provision-resource-synth.zip
>
>
> Restart of the osgi container does not restart subsystem core because of an 
> error related to missing resource 
> org.apache.aries.subsystem.resource.synthesized
> The deployment manifest contains the entry below in the provision-resource 
> header:
> org.apache.aries.subsystem.resource.synthesized;resourceId=-1;deployed-version=0.0.0;type=org.apache.aries.subsystem.resource.synthesized
> On restart it tries to load the resource because it is in the deployment 
> manifest and can't find the resource in the osgi framework. 
> It seems the 'synthesized' type is related to something which looks like a 
> missing capability/service capability placeholder while installing/resolving. 
> It is not installed because the ResourceInstaller has an if statement 
> returning an installer which does nothing. So I guess it should also not be 
> added to the manifest.
> I therefore patched the ProvisionResourceHeader to check for this 
> 'synthesized' type and ignore it for the Provision-resource header. I'm not 
> sure if this is the best solution but it does solve the issue we are having.
> The reason for patching it there is because it would be least affecting the 
> entire process. Just like ignoring it before it is installed in the osgi 
> framework it will not also be ignored before adding it to the manifest.



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

Reply via email to