Hi,

It's really strange but if I deploy the sling feature in Karaf 1.2.0 as:

ka...@root:/> features:addUrl
mvn:org.apache.sling/org.apache.sling.launchpad.builder/6-SNAPSHOT/xml/features
ka...@root:/> features:install sling

Then I get this error:

java.lang.IllegalStateException: Bundle is not locked.
        at org.apache.felix.framework.BundleImpl.unlock(BundleImpl.java:1199)
        at org.apache.felix.framework.Felix.releaseBundleLock(Felix.java:4513)
        at 
org.apache.felix.framework.Felix$FelixResolver.markBundleResolved(Felix.java:4076)
        at 
org.apache.felix.framework.Felix$FelixResolver.markResolvedModules(Felix.java:4032)
        at 
org.apache.felix.framework.Felix$FelixResolver.resolve(Felix.java:3878)
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3256)
        at org.apache.felix.framework.Felix.resolveBundles(Felix.java:3231)
        at org.apache.felix.framework.Felix.findBundleEntries(Felix.java:1397)
        at 
org.apache.felix.framework.BundleImpl.findEntries(BundleImpl.java:268)
        at 
org.apache.felix.karaf.deployer.features.FeatureDeploymentListener.bundleChanged(FeatureDeploymentListener.java:137)
        at 
org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:800)
        at 
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:728)
        at 
org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3576)
        at org.apache.felix.framework.Felix.uninstallBundle(Felix.java:2223)
        at org.apache.felix.framework.BundleImpl.uninstall(BundleImpl.java:975)
        at 
org.apache.felix.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:311)
        at 
org.apache.felix.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:227)
        at 
org.apache.felix.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:223)
        at 
org.apache.felix.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:51)
        at 
org.apache.felix.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:39)
        at 
org.apache.felix.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:41)
        at 
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:34)
        at 
org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:45)
        at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:211)
        at 
org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:146)
        at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:91)
        at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:75)
        at 
org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)
        at 
org.apache.felix.karaf.shell.console.jline.Console.run(Console.java:174)
        at java.lang.Thread.run(Thread.java:595)
Unresolved constraint in bundle org.apache.sling.scripting.core [465]:
package; (&(package=org.apache.sling.scripting.api)(version>=2.1.0))

However If I do it using the file protocol then it works!:

ka...@root> features:addUrl file:/home/jvazquez/Escritorio/features.xml
ka...@root:/> features:install sling
ka...@root:/>

Have you ever seen this behaviour?.

BR,

Juanjo.

Reply via email to