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

  • Home
  • SEARCH
  • 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 7860559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:20:27+00:00 2026-06-02T22:20:27+00:00

I am currently developing an application which has a server part based on JavaEE

  • 0

I am currently developing an application which has a server part based on JavaEE 6.0 on JBoss 7.1 and a client based on Eclipse RCP 3.7.

For a simple OSGi package for a shared API I already run into trouble due to some differences in versions and depdencenies. The API requires “org.osgi.framework.” for the bundle activator and “org.slf4j.” for the slf4j logging API.

Currently my client is working very well, but JBoss tells me that the expected version of the OSGi import and the also the imports for slf4j do not fit…

I there a best practice to share OSGi bundles between Eclipse and JBoss? Do I need to get back to simple import and export declarations or can I used Require-Bundle somehow? Do I need to create some compatibility bundles for JBoss to get it running? What is the best way to proceed here?

UPDATE
I solved the issue by using Import-Package exclusively. For the dependency like org.osgi.framework is use version=”0.0″ to explain it does not matter. 🙁 It is not very safe, but currently I do not see another option. Is there a better way?

UPDATE 2
One also needs to pay attention to implement the correct verion of the OSGi Framework. JBoss 7.1.x only has OSGi 4.2 implemented, which has no support for typesafe service retrieval.

  • 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-06-02T22:20:29+00:00Added an answer on June 2, 2026 at 10:20 pm

    The best practice would be to use an import package statement with a range from the minimum version which you’re using to the next major increment.

    For example, if RCP expects version 1.5 of a package and JBoss expects 1.3.6, import version=”[1.3.6,2)”.

    The Semantic Versioning whitepaper (pdf) explains why this style of import is safe and wise.

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

Sidebar

Related Questions

I am currently developing Java/GWT-application which is hosted on a weblogic application server. I
I am currently developing an application which has a maps feature. My map is
I am currently developing a C# application which has got it's own logging. When
I am currently developing an Android application which has a web backend. I can
I am currently developing an application which by design has a three-tier architecture. It
I'm currently developing an application in .NET 4 which has to interact with a
I am currently developing an application which will require multiple different development languages. I
I'm developing an application which currently have hundreds of objects created. Is it possible
I am currently developing an application, which gets the input from a text file
I'm currently involved with developing a C# CMS-like web application which will be used

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.