Two bundles looking for same package, but different versions | Community
Skip to main content
New Participant
March 30, 2017
Solved

Two bundles looking for same package, but different versions

  • March 30, 2017
  • 12 replies
  • 4095 views

Hi,

I have this ERROR:

org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve bundle revision com.sample.test-wcm-bundle [397.825] because it is exposed to package 'org.apache.commons.lang.math' from bundle revisions com.sample.test-wcm-dependencies-bundle [398.824] and com.day.commons.osgi.wrapper.commons-lang2 [45.0] via two dependency chains.

com.day.commons.osgi.wrapper.commons-lang2 has commons-lang version 2.5, 

My bundle com.sample.test-wcm-dependencies-bundle needs commons-lang version 2.6.

How to resolve this?

thanks

Srini 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

Hi,

the sample works here on AEM 6.2, the april-project bundle ist active.

Jörg

12 replies

smacdonald2008
New Participant
March 31, 2017

See: 

smacdonald2008
New Participant
March 31, 2017

All you need to do is open the bundle and modify the Manifest file to point to the correct version of a specific package.