You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Juan José Vázquez Delgado <ju...@gmail.com> on 2010/02/12 16:45:02 UTC
Error deploying the Karaf Sling feature
Hi,
It's really strange but if I deploy the sling feature in Karaf 1.2.0 as:
karaf@root:/> features:addUrl
mvn:org.apache.sling/org.apache.sling.launchpad.builder/6-SNAPSHOT/xml/features
karaf@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!:
karaf@root> features:addUrl file:/home/jvazquez/Escritorio/features.xml
karaf@root:/> features:install sling
karaf@root:/>
Have you ever seen this behaviour?.
BR,
Juanjo.
Re: Error deploying the Karaf Sling feature
Posted by Juan José Vázquez Delgado <ju...@gmail.com>.
Hi Justin,
Now I´m getting this error:
ERROR: EventDispatcher: Error during dispatch.
(java.lang.IllegalStateException: Bundle is not locked.)
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:637)
Activator start error in bundle org.apache.sling.extensions.threaddump [222].
But It´s the same one I get when I do with the file protocol. So the
problem must be another one now.
Regards,
Juanjo.
On Fri, Feb 12, 2010 at 9:01 PM, Justin Edelson <ju...@gmail.com> wrote:
> The feature url is wrong. I'll adjust the README. Try this:
> karaf@root> features:removeUrl
> mvn:org.apache.sling/org.apache.sling.launchpad.builder/6-SNAPSHOT/xml/features
>
> karaf@root> features:addUrl
> mvn:org.apache.sling/org.apache.sling.launchpad/6-SNAPSHOT/xml/features
>
> karaf@root> features:install sling
>
> this works for me.
>
> Justin
>
> On 2/12/10 10:45 AM, Juan José Vázquez Delgado wrote:
>> Hi,
>>
>> It's really strange but if I deploy the sling feature in Karaf 1.2.0 as:
>>
>> karaf@root:/> features:addUrl
>> mvn:org.apache.sling/org.apache.sling.launchpad.builder/6-SNAPSHOT/xml/features
>> karaf@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!:
>>
>> karaf@root> features:addUrl file:/home/jvazquez/Escritorio/features.xml
>> karaf@root:/> features:install sling
>> karaf@root:/>
>>
>> Have you ever seen this behaviour?.
>>
>> BR,
>>
>> Juanjo.
>
>
Re: Error deploying the Karaf Sling feature
Posted by Justin Edelson <ju...@gmail.com>.
The feature url is wrong. I'll adjust the README. Try this:
karaf@root> features:removeUrl
mvn:org.apache.sling/org.apache.sling.launchpad.builder/6-SNAPSHOT/xml/features
karaf@root> features:addUrl
mvn:org.apache.sling/org.apache.sling.launchpad/6-SNAPSHOT/xml/features
karaf@root> features:install sling
this works for me.
Justin
On 2/12/10 10:45 AM, Juan José Vázquez Delgado wrote:
> Hi,
>
> It's really strange but if I deploy the sling feature in Karaf 1.2.0 as:
>
> karaf@root:/> features:addUrl
> mvn:org.apache.sling/org.apache.sling.launchpad.builder/6-SNAPSHOT/xml/features
> karaf@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!:
>
> karaf@root> features:addUrl file:/home/jvazquez/Escritorio/features.xml
> karaf@root:/> features:install sling
> karaf@root:/>
>
> Have you ever seen this behaviour?.
>
> BR,
>
> Juanjo.