Hi all,
Am facing an issue where am not able to start the bundle after the build am getting the exception which is given below, Can you please help me out in this regards.
06.11.2017 15:56:57.756 *INFO* [OsgiInstallerImpl] org.apache.sling.installer.core.impl.tasks.BundleStartTask Could not start bundle common.common-services [648]. Reason: {}. Will retry.org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve bundle revision common.common-services [648.0] because it is exposed to package 'javax.inject' from bundle revisions org.apache.sling.models.api [384.0] and org.apache.sling.scripting.java [238.0] via two dependency chains.
Chain 1:
common.common-services [648.0]
import: (&(osgi.wiring.package=javax.inject)(version>=0.0.0)(!(version>=1.0.0)))
|
export: osgi.wiring.package=javax.inject
org.apache.sling.models.api [384.0]
Chain 2:
common.common-services [648.0]
import: (&(osgi.wiring.package=com.google.common.cache)(version>=15.0.0)(!(version>=16.0.0)))
|
export: osgi.wiring.package=com.google.common.cache; uses:=javax.inject
com.adobe.granite.osgi.wrapper.guava [86.0]
import: (osgi.wiring.package=javax.inject)
|
export: osgi.wiring.package=javax.inject
org.apache.sling.scripting.java [238.0]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4101)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2114)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:977)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:964)
at org.apache.sling.installer.core.impl.tasks.BundleStartTask.execute(BundleStartTask.java:93)
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks(OsgiInstallerImpl.java:847)
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.java:689)
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:265)
at java.lang.Thread.run(Thread.java:745)
Thanks