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 8988075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:56:24+00:00 2026-06-15T21:56:24+00:00

I have the common use conflict problem in OSGi, I am new to OSGi

  • 0

I have the common “use conflict” problem in OSGi, I am new to OSGi so sorry if this is very simple. I have read this and this other questions. I have also read this which explains in more detail how to debug these problems; yet, i can’t figure it out. I can’t find the duplicated export (quoting that last article “There must always be more than one supplier for you to see a uses constraint violation.”)

This is the full error

initial@reference:file:../../Dev/mine/target/dependency/jasperreports-3.7.1-osgi.jar [151]
  Package uses conflict: Import-Package: org.apache.commons.collections.comparators; version="0.0.0"

Here is the relevant snippet of the jasper manifest. It is too long to paste completely

Export-Package: ...,net.sf.jasperreports.crosstabs.fill.calculation;uses:="org.apache.commons.collections,net.sf.jasperreports.engine,org.apache.commons.collections.comparators,org.apache.commons.logging,..."

And here is the output of packages org.apache.commons.collections.comparators to show that the package is exported correctly and only once

osgi> packages org.apache.commons.collections.comparators
org.apache.commons.collections.comparators; version="3.2.0"<org.apache.commons.collections_3.2.0 [869]>

Any ideas? something else i could try? I really doubt this but, is equinox complaining that the exported version is 3.2.0 but the uses version is 0.0.0?

  • 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-15T21:56:25+00:00Added an answer on June 15, 2026 at 9:56 pm

    I ended up going with a third option. It’s related to @PeterKriens suggestion, hopefully it will be another approach for others to tackle these problems.
    I installed Karaf, which runs on top of Felix and used the hot-deploy folder to deploy one jar at a time. This way I could see the problems as they arose. It is very slow but verbose. Using only Felix I found no way to deploy like this

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

Sidebar

Related Questions

I have this common issue of 'new line' in php-csv which is making me
I have a very common use case. The user needs to enter their address
In my Android application I have to use common string value for all activities.
Can I use shared memory on Windows in order to have a common memory
I have a common problem that I never know how to solve with CSS:
In Zend Framework, I have a common use case where I need to propagate
This is a really common use case but I've never known the best way
I have a fairly straightforward and common use case. A panel, in which resides
We have common views that we use in our application in many locations inside
I have a common HTML header file which I use in several PHP files.

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.