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

Jean-Baptiste Onofré commented on KARAF-3448:
---------------------------------------------

Actually, it's not a problem. On Karaf 2.4.x, the deployer feature is a 
featuresBoot:

{code}
karaf@root> features:list -i|grep -i deployer
[installed  ] [2.4.2-SNAPSHOT] deployer         karaf-2.4.2-SNAPSHOT Karaf 
Deployer
karaf@root> la|grep -i spring
karaf@root> la|grep -i deployer
[  46] [Active     ] [Created     ] [   30] Apache Karaf :: Deployer :: Karaf 
Archive (.kar) (2.4.2.SNAPSHOT)
[  47] [Active     ] [Created     ] [   26] Apache Karaf :: Deployer :: 
Features (2.4.2.SNAPSHOT)
[  48] [Active     ] [Created     ] [   24] Apache Karaf :: Deployer :: 
Blueprint (2.4.2.SNAPSHOT)
{code}

We can see:
1/ the spring deployer is not installed (normal as the spring feature is not 
installed)
2/ other deployers (kar, features, blueprint) are installed by the deployer 
feature

Now, I install the spring feature:

{code}
karaf@root> features:install spring
karaf@root> la|grep -i spring
[  53] [Active     ] [            ] [   30] Apache ServiceMix :: Bundles :: 
spring-core (4.1.2.RELEASE_1)
[  54] [Active     ] [            ] [   30] Apache ServiceMix :: Bundles :: 
spring-expression (4.1.2.RELEASE_1)
[  55] [Active     ] [            ] [   30] Apache ServiceMix :: Bundles :: 
spring-beans (4.1.2.RELEASE_1)
[  56] [Active     ] [            ] [   30] Apache ServiceMix :: Bundles :: 
spring-aop (4.1.2.RELEASE_1)
[  57] [Active     ] [            ] [   30] Apache ServiceMix :: Bundles :: 
spring-context (4.1.2.RELEASE_1)
[  58] [Active     ] [            ] [   30] Apache ServiceMix :: Bundles :: 
spring-context-support (4.1.2.RELEASE_1)
[  59] [Active     ] [Created     ] [   24] Apache Karaf :: Deployer :: Spring 
(2.4.2.SNAPSHOT)
{code}

We can see that the spring deployer has been installed.

Actually, when you install a feature, Karaf re-evaluates all conditions of all 
installed features. So, as the spring condition of the deployer feature is now 
true, the spring deployer bundle is installed.

Maybe the issue is when the feature is featuresBoot. I'm testing it.

> Unable to deploy spring-dm file into the deploy directory
> ---------------------------------------------------------
>
>                 Key: KARAF-3448
>                 URL: https://issues.apache.org/jira/browse/KARAF-3448
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.4.1
>            Reporter: Krzysztof Sobkowiak
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.4.2
>
>         Attachments: test-route-dm.xml
>
>
> It's not possible to deploy any spring-dm based file (e.g. camel route) into 
> the {{deploy}} directory. It's caused by missing 
> {{org.apache.karaf.deployer.spring}} bundle. Karaf 2.3.x and 3.0.x start the 
> bundle in {{startup.properties}}, Karaf 4.0.x starts it together with 
> {{spring}} feature. 
> In Karaf 2.4.x it's defined as conditional bundle in the {{deployer}} 
> feature. But when the {{deployer}} feature is installed the {{spring}} 
> feature is usually not installed.



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

Reply via email to