Hi, that's the wrong config to change. Try to add the following to the config.properties:
eecap-1.1= osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1", \ osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1" right after the eecap-1.2 regards, Achim 2016-01-09 4:04 GMT+01:00 Setya <[email protected]>: > Hi all, > > I'm using Karaf 4.0.3, when deploying org.apache.commons.lang > <http://karaf.922171.n3.nabble.com/file/n4044711/org.jar> bundle it > fails > to start with the following exception: > > /Caused by: org.osgi.framework.BundleException: Could not resolve module: > org.apache.commons.lang [246] > Unresolved requirement: Require-Capability: osgi.ee; > filter:="(&(osgi.ee=JRE)(version=1.1))" > > at > > org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] > at > > org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] > at > > org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:412)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] > at > > org.apache.karaf.bundle.command.Install.execute(Install.java:96)[24:org.apache.karaf.bundle.core:4.0.3] > ... 11 more/ > > It seems to be caused by given bundle containing the following entry in its > MANIFEST.MF: > > /Bundle-RequiredExecutionEnvironment: JRE-1.1/ > > I've tried to add JRE-1.1 in > etc/config.properties#org.osgi.framework.executionenvironment to no avail. > > Any help would be appreciated. > > Thanks & Regards, > Setya > > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Bundle-fails-to-start-in-Karaf-4-0-3-caused-by-Require-Capability-tp4044711.html > Sent from the Karaf - User mailing list archive at Nabble.com. > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master
