Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3243306
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:25:01+00:00 2026-05-17T18:25:01+00:00

We started using Apache Felix Karaf for a project, and make use of Blueprint

  • 0

We started using Apache Felix Karaf for a project, and make use of Blueprint Services.

Now, I would like to use Spring Dynamic Modules in order to have access to advanced DI functionality and testing features. The problem is that I haven’t been able to figure out how to get Spring DM 2.x running on Felix.

The spring and spring-dm features are installed:

karaf@root> features:list
State         Version       Name       Repository
[installed  ] [2.5.6.SEC01] spring     karaf-1.6.0
[installed  ] [1.2.0      ] spring-dm  karaf-1.6.0
[uninstalled] [1.6.0      ] wrapper    karaf-1.6.0
[uninstalled] [1.6.0      ] obr        karaf-1.6.0
[installed  ] [1.6.0      ] http       karaf-1.6.0
[uninstalled] [1.6.0      ] war        karaf-1.6.0
[uninstalled] [1.6.0      ] webconsole karaf-1.6.0
[installed  ] [1.6.0      ] ssh        karaf-1.6.0
[installed  ] [1.6.0      ] management karaf-1.6.0

But in order to use Blueprint services, I need Spring DM 2.x (according to the Spring website at least, ‘For Blueprint Service RI, use the 2.x+version.’).

I saw that it is possible to add features to Apache Felix, but from what I understood, this requires to declare a features.xml file on some repository.

My question is, whether there is a simpler way to go, which would also be more integrated (via e.g. Maven)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:25:02+00:00Added an answer on May 17, 2026 at 6:25 pm

    Ok, after some investigation I have managed to get the bundles to work with Spring DM 2.0.0.M1 on Karaf.

    The way I solved it is to add an additional feature set (see http://karaf.apache.org/manual/2.2.5/users-guide/provisioning.html) by defining a feature xml descriptor like this:

    <?xml version="1.0" encoding="UTF-8"?>
      <features name="spring-features">
        <feature name="spring-dm-2" version="2.0.0.M1">
            <feature version="3.0.3.RELEASE">spring</feature>
            <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/2.1_3_6</bundle>
            <bundle>mvn:org.springframework.osgi/spring-osgi-io/2.0.0.M1</bundle>
            <bundle>mvn:org.springframework.osgi/spring-osgi-core/2.0.0.M1</bundle>
            <bundle>mvn:org.springframework.osgi/spring-osgi-extender/2.0.0.M1</bundle>
            <bundle>mvn:org.springframework.osgi/spring-osgi-annotation/2.0.0.M1</bundle>
            <bundle>mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.spring/2.1.0</bundle>
        </feature>
      </features>
    

    And then to load it like this via the Karaf shell

    features:addurl /path/to/spring-dm-feature.xml
    features:install spring-dm-2
    

    Note that this works, but comes with a number of ugly stacktraces — I hope that with the help of the guys on the Karaf users list / the Spring folks we’ll be able to get rid of those.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started using subversion for one of my projects and it would be absolutely
I've recently started using Eclipse Ganymede CDT for C development and I couldn't like
I just started using the new POI 3.6 http://poi.apache.org XSSF which was released in
I have a web project built in eclipse using Spring and for Tomcat. Before
I started using NetBeans for Python development, and so far it looks pretty good.
Have just started using Google Chrome , and noticed in parts of our site,
I've just started using the MVP pattern in the large ASP.NET application that I'm
We've just started using LINQ to SQL at work for our DAL & we
I've just started using Linq to SQL, and I'm wondering if anyone has any
Have just started using Visual Studio Professional's built-in unit testing features, which as I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.