You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by John Dubchak <jo...@johndubchak.com> on 2014/04/08 20:59:46 UTC
Feature Install Errors in SMX 5.0.0
Hi,
I just downloaded a fresh copy of the SMX 5.0.0 deploy from the website
and started it up with:
$ bin/servicemix
Then I attempted to install camel-jpa and received the following error:
karaf@root> osgi:install camel-jpa
Bundle IDs:
Error executing command: Error installing bundles:
Unable to install bundle camel-jpa
Displaying log:display-exception:
org.apache.karaf.shell.console.MultiException: Error installing bundles:
Unable to install bundle camel-jpa
at
org.apache.karaf.shell.console.MultiException.throwIf(MultiException.java:91)
at
org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:70)[39:org.apache.karaf.shell.osgi:2.3.4]
at
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.karaf.shell.console.jline.Console.run(Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
Caused by: java.lang.Exception: Unable to install bundle camel-jpa
at
org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:45)[39:org.apache.karaf.shell.osgi:2.3.4]
... 11 more
Caused by: org.osgi.framework.BundleException: Unable to cache bundle:
camel-jpa
at
org.apache.felix.framework.Felix.installBundle(Felix.java:2703)[org.apache.felix.framework-4.0.3.jar:]
at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.jar:]
at
org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:43)[39:org.apache.karaf.shell.osgi:2.3.4]
... 11 more
Caused by: java.net.MalformedURLException: no protocol: camel-jpa
at java.net.URL.<init>(URL.java:585)[:1.7.0_45]
at
org.apache.felix.framework.util.SecureAction.createURL(SecureAction.java:254)[org.apache.felix.framework-4.0.3.jar:]
at
org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:148)[org.apache.felix.framework-4.0.3.jar:]
at
org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:77)[org.apache.felix.framework-4.0.3.jar:]
at
org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:878)[org.apache.felix.framework-4.0.3.jar:]
at
org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)[org.apache.felix.framework-4.0.3.jar:]
at
org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153)[org.apache.felix.framework-4.0.3.jar:]
at
org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)[org.apache.felix.framework-4.0.3.jar:]
at
org.apache.felix.framework.Felix.installBundle(Felix.java:2699)[org.apache.felix.framework-4.0.3.jar:]
... 13 more
Am I doing things in the correct order? I also notice that trying to
install the JNDI feature produces the following error as well:
karaf@root> features:install jndi
Error executing command: Can not resolve feature:
Unsatisfied requirement(s):
---------------------------
service:(service=org.apache.aries.proxy.ProxyManager)
Apache Karaf :: JNDI :: Core
Exception for the above:
at
org.apache.karaf.features.obr.internal.ObrResolver.resolve(ObrResolver.java:129)[34:org.apache.karaf.features.obr:2.3.4]
at
org.apache.karaf.features.internal.FeaturesServiceImpl.resolve(FeaturesServiceImpl.java:657)[26:org.apache.karaf.features.core:2.3.4]
at
org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:620)[26:org.apache.karaf.features.core:2.3.4]
at
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:417)[26:org.apache.karaf.features.core:2.3.4]
at
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:405)[26:org.apache.karaf.features.core:2.3.4]
at
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:401)[26:org.apache.karaf.features.core:2.3.4]
at
org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:62)[28:org.apache.karaf.features.command:2.3.4]
at
org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:41)[28:org.apache.karaf.features.command:2.3.4]
at
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.karaf.shell.console.jline.Console.run(Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
at
org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
Any thoughts are appreciated.
Thanks,
John
Re: Feature Install Errors in SMX 5.0.0
Posted by John Dubchak <jo...@johndubchak.com>.
Jon,
I literally slapped my forehead and went back to the SMX console to see
if I really did commit such a "noob" act - sure enough. Thanks for
helping me see the obvious.
John
On 4/8/14 12:17 PM, Jon Anstey wrote:
> Try "features:install camel-jpa"
>
>
> On Tue, Apr 8, 2014 at 4:29 PM, John Dubchak <jo...@johndubchak.com> wrote:
>
>> Hi,
>>
>> I just downloaded a fresh copy of the SMX 5.0.0 deploy from the website
>> and started it up with:
>>
>> $ bin/servicemix
>>
>> Then I attempted to install camel-jpa and received the following error:
>>
>> karaf@root> osgi:install camel-jpa
>> Bundle IDs:
>> Error executing command: Error installing bundles:
>> Unable to install bundle camel-jpa
>>
>> Displaying log:display-exception:
>>
>> org.apache.karaf.shell.console.MultiException: Error installing bundles:
>> Unable to install bundle camel-jpa
>> at org.apache.karaf.shell.console.MultiException.
>> throwIf(MultiException.java:91)
>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>> InstallBundle.java:70)[39:org.apache.karaf.shell.osgi:2.3.4]
>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>> shell.console:2.3.4]
>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>> org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.karaf.shell.console.jline.Console.run(
>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>> Caused by: java.lang.Exception: Unable to install bundle camel-jpa
>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>> InstallBundle.java:45)[39:org.apache.karaf.shell.osgi:2.3.4]
>> ... 11 more
>> Caused by: org.osgi.framework.BundleException: Unable to cache bundle:
>> camel-jpa
>> at org.apache.felix.framework.Felix.installBundle(Felix.
>> java:2703)[org.apache.felix.framework-4.0.3.jar:]
>> at org.apache.felix.framework.BundleContextImpl.installBundle(
>> BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.jar:]
>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>> InstallBundle.java:43)[39:org.apache.karaf.shell.osgi:2.3.4]
>> ... 11 more
>> Caused by: java.net.MalformedURLException: no protocol: camel-jpa
>> at java.net.URL.<init>(URL.java:585)[:1.7.0_45]
>> at org.apache.felix.framework.util.SecureAction.createURL(
>> SecureAction.java:254)[org.apache.felix.framework-4.0.3.jar:]
>> at org.apache.felix.framework.cache.JarRevision.initialize(
>> JarRevision.java:148)[org.apache.felix.framework-4.0.3.jar:]
>> at org.apache.felix.framework.cache.JarRevision.<init>(
>> JarRevision.java:77)[org.apache.felix.framework-4.0.3.jar:]
>> at org.apache.felix.framework.cache.BundleArchive.
>> createRevisionFromLocation(BundleArchive.java:878)[org.
>> apache.felix.framework-4.0.3.jar:]
>> at org.apache.felix.framework.cache.BundleArchive.
>> reviseInternal(BundleArchive.java:550)[org.apache.felix.
>> framework-4.0.3.jar:]
>> at org.apache.felix.framework.cache.BundleArchive.<init>(
>> BundleArchive.java:153)[org.apache.felix.framework-4.0.3.jar:]
>> at org.apache.felix.framework.cache.BundleCache.create(
>> BundleCache.java:277)[org.apache.felix.framework-4.0.3.jar:]
>> at org.apache.felix.framework.Felix.installBundle(Felix.
>> java:2699)[org.apache.felix.framework-4.0.3.jar:]
>> ... 13 more
>>
>> Am I doing things in the correct order? I also notice that trying to
>> install the JNDI feature produces the following error as well:
>>
>> karaf@root> features:install jndi
>> Error executing command: Can not resolve feature:
>> Unsatisfied requirement(s):
>> ---------------------------
>> service:(service=org.apache.aries.proxy.ProxyManager)
>> Apache Karaf :: JNDI :: Core
>>
>> Exception for the above:
>>
>> at org.apache.karaf.features.obr.internal.ObrResolver.resolve(
>> ObrResolver.java:129)[34:org.apache.karaf.features.obr:2.3.4]
>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>> resolve(FeaturesServiceImpl.java:657)[26:org.apache.karaf.
>> features.core:2.3.4]
>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>> doInstallFeature(FeaturesServiceImpl.java:620)[
>> 26:org.apache.karaf.features.core:2.3.4]
>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>> installFeatures(FeaturesServiceImpl.java:417)[
>> 26:org.apache.karaf.features.core:2.3.4]
>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>> installFeature(FeaturesServiceImpl.java:405)[26:org.apache.karaf.features.
>> core:2.3.4]
>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>> installFeature(FeaturesServiceImpl.java:401)[26:org.apache.karaf.features.
>> core:2.3.4]
>> at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(
>> InstallFeatureCommand.java:62)[28:org.apache.karaf.features.command:2.3.4]
>> at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(
>> FeaturesCommandSupport.java:41)[28:org.apache.karaf.
>> features.command:2.3.4]
>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>> shell.console:2.3.4]
>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>> org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.karaf.shell.console.jline.Console.run(
>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>>
>> Any thoughts are appreciated.
>>
>> Thanks,
>> John
>>
>
>
>
Re: Feature Install Errors in SMX 5.0.0
Posted by Krzysztof Sobkowiak <kr...@gmail.com>.
Can you install jndi now?
On 08.04.2014 21:49, John Dubchak wrote:
> Thanks Krzysztof. I ended up removing feature openjpa 2.3.0 and
> installing version 2.2.2 and the issue disappeared. I'm not certain why.
>
> On 4/8/14 12:39 PM, Krzysztof Sobkowiak wrote:
>> I can reproduce the second problem too. But the service
>> org.apache.aries.proxy.ProxyManager is available in the registry.
>>
>> Apache Aries Proxy Service (13) provides:
>> -----------------------------------------
>> org.apache.aries.proxy.ProxyManager
>>
>> I have tested Karaf 2.3.4 and the jndi feature can be installed. The
>> problem must be ServiceMix specific.
>>
>> Regards
>> Krzysztof
>>
>>
>> On 08.04.2014 21:17, Jon Anstey wrote:
>>> Try "features:install camel-jpa"
>>>
>>>
>>> On Tue, Apr 8, 2014 at 4:29 PM, John Dubchak <jo...@johndubchak.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I just downloaded a fresh copy of the SMX 5.0.0 deploy from the
>>>> website
>>>> and started it up with:
>>>>
>>>> $ bin/servicemix
>>>>
>>>> Then I attempted to install camel-jpa and received the following
>>>> error:
>>>>
>>>> karaf@root> osgi:install camel-jpa
>>>> Bundle IDs:
>>>> Error executing command: Error installing bundles:
>>>> Unable to install bundle camel-jpa
>>>>
>>>> Displaying log:display-exception:
>>>>
>>>> org.apache.karaf.shell.console.MultiException: Error installing
>>>> bundles:
>>>> Unable to install bundle camel-jpa
>>>> at org.apache.karaf.shell.console.MultiException.
>>>> throwIf(MultiException.java:91)
>>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>>> InstallBundle.java:70)[39:org.apache.karaf.shell.osgi:2.3.4]
>>>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>>>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>>>> shell.console:2.3.4]
>>>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>>>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>>>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>>>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>>>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>>>> org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>>>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.karaf.shell.console.jline.Console.run(
>>>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>>>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>>>> Caused by: java.lang.Exception: Unable to install bundle camel-jpa
>>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>>> InstallBundle.java:45)[39:org.apache.karaf.shell.osgi:2.3.4]
>>>> ... 11 more
>>>> Caused by: org.osgi.framework.BundleException: Unable to cache bundle:
>>>> camel-jpa
>>>> at org.apache.felix.framework.Felix.installBundle(Felix.
>>>> java:2703)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.BundleContextImpl.installBundle(
>>>> BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>>> InstallBundle.java:43)[39:org.apache.karaf.shell.osgi:2.3.4]
>>>> ... 11 more
>>>> Caused by: java.net.MalformedURLException: no protocol: camel-jpa
>>>> at java.net.URL.<init>(URL.java:585)[:1.7.0_45]
>>>> at org.apache.felix.framework.util.SecureAction.createURL(
>>>> SecureAction.java:254)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.JarRevision.initialize(
>>>> JarRevision.java:148)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.JarRevision.<init>(
>>>> JarRevision.java:77)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.BundleArchive.
>>>> createRevisionFromLocation(BundleArchive.java:878)[org.
>>>> apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.BundleArchive.
>>>> reviseInternal(BundleArchive.java:550)[org.apache.felix.
>>>> framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.BundleArchive.<init>(
>>>> BundleArchive.java:153)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.BundleCache.create(
>>>> BundleCache.java:277)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.Felix.installBundle(Felix.
>>>> java:2699)[org.apache.felix.framework-4.0.3.jar:]
>>>> ... 13 more
>>>>
>>>> Am I doing things in the correct order? I also notice that trying to
>>>> install the JNDI feature produces the following error as well:
>>>>
>>>> karaf@root> features:install jndi
>>>> Error executing command: Can not resolve feature:
>>>> Unsatisfied requirement(s):
>>>> ---------------------------
>>>> service:(service=org.apache.aries.proxy.ProxyManager)
>>>> Apache Karaf :: JNDI :: Core
>>>>
>>>> Exception for the above:
>>>>
>>>> at org.apache.karaf.features.obr.internal.ObrResolver.resolve(
>>>> ObrResolver.java:129)[34:org.apache.karaf.features.obr:2.3.4]
>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>> resolve(FeaturesServiceImpl.java:657)[26:org.apache.karaf.
>>>> features.core:2.3.4]
>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>> doInstallFeature(FeaturesServiceImpl.java:620)[
>>>> 26:org.apache.karaf.features.core:2.3.4]
>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>> installFeatures(FeaturesServiceImpl.java:417)[
>>>> 26:org.apache.karaf.features.core:2.3.4]
>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>> installFeature(FeaturesServiceImpl.java:405)[26:org.apache.karaf.features.
>>>>
>>>> core:2.3.4]
>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>> installFeature(FeaturesServiceImpl.java:401)[26:org.apache.karaf.features.
>>>>
>>>> core:2.3.4]
>>>> at
>>>> org.apache.karaf.features.command.InstallFeatureCommand.doExecute(
>>>> InstallFeatureCommand.java:62)[28:org.apache.karaf.features.command:2.3.4]
>>>>
>>>> at
>>>> org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(
>>>> FeaturesCommandSupport.java:41)[28:org.apache.karaf.
>>>> features.command:2.3.4]
>>>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>>>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>>>> shell.console:2.3.4]
>>>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>>>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>>>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>>>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>>>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>>>> org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>>>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.karaf.shell.console.jline.Console.run(
>>>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>>>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>>>>
>>>> Any thoughts are appreciated.
>>>>
>>>> Thanks,
>>>> John
>>>>
>>>
>>>
>>
>>
>
--
Krzysztof Sobkowiak
JEE & OSS Architect | Technical Architect @ Capgemini
Capgemini <http://www.pl.capgemini.com/> | Software Solutions Center
<http://www.pl.capgemini-sdm.com/> | Wroclaw
e-mail: krzys.sobkowiak@gmail.com <ma...@gmail.com> |
Twitter: @KSobkowiak
Re: Feature Install Errors in SMX 5.0.0
Posted by John Dubchak <jo...@johndubchak.com>.
Thanks Krzysztof. I ended up removing feature openjpa 2.3.0 and
installing version 2.2.2 and the issue disappeared. I'm not certain why.
On 4/8/14 12:39 PM, Krzysztof Sobkowiak wrote:
> I can reproduce the second problem too. But the service
> org.apache.aries.proxy.ProxyManager is available in the registry.
>
> Apache Aries Proxy Service (13) provides:
> -----------------------------------------
> org.apache.aries.proxy.ProxyManager
>
> I have tested Karaf 2.3.4 and the jndi feature can be installed. The
> problem must be ServiceMix specific.
>
> Regards
> Krzysztof
>
>
> On 08.04.2014 21:17, Jon Anstey wrote:
>> Try "features:install camel-jpa"
>>
>>
>> On Tue, Apr 8, 2014 at 4:29 PM, John Dubchak <jo...@johndubchak.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I just downloaded a fresh copy of the SMX 5.0.0 deploy from the website
>>> and started it up with:
>>>
>>> $ bin/servicemix
>>>
>>> Then I attempted to install camel-jpa and received the following error:
>>>
>>> karaf@root> osgi:install camel-jpa
>>> Bundle IDs:
>>> Error executing command: Error installing bundles:
>>> Unable to install bundle camel-jpa
>>>
>>> Displaying log:display-exception:
>>>
>>> org.apache.karaf.shell.console.MultiException: Error installing
>>> bundles:
>>> Unable to install bundle camel-jpa
>>> at org.apache.karaf.shell.console.MultiException.
>>> throwIf(MultiException.java:91)
>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>> InstallBundle.java:70)[39:org.apache.karaf.shell.osgi:2.3.4]
>>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>>> shell.console:2.3.4]
>>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>>> org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.karaf.shell.console.jline.Console.run(
>>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>>> Caused by: java.lang.Exception: Unable to install bundle camel-jpa
>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>> InstallBundle.java:45)[39:org.apache.karaf.shell.osgi:2.3.4]
>>> ... 11 more
>>> Caused by: org.osgi.framework.BundleException: Unable to cache bundle:
>>> camel-jpa
>>> at org.apache.felix.framework.Felix.installBundle(Felix.
>>> java:2703)[org.apache.felix.framework-4.0.3.jar:]
>>> at org.apache.felix.framework.BundleContextImpl.installBundle(
>>> BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.jar:]
>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>> InstallBundle.java:43)[39:org.apache.karaf.shell.osgi:2.3.4]
>>> ... 11 more
>>> Caused by: java.net.MalformedURLException: no protocol: camel-jpa
>>> at java.net.URL.<init>(URL.java:585)[:1.7.0_45]
>>> at org.apache.felix.framework.util.SecureAction.createURL(
>>> SecureAction.java:254)[org.apache.felix.framework-4.0.3.jar:]
>>> at org.apache.felix.framework.cache.JarRevision.initialize(
>>> JarRevision.java:148)[org.apache.felix.framework-4.0.3.jar:]
>>> at org.apache.felix.framework.cache.JarRevision.<init>(
>>> JarRevision.java:77)[org.apache.felix.framework-4.0.3.jar:]
>>> at org.apache.felix.framework.cache.BundleArchive.
>>> createRevisionFromLocation(BundleArchive.java:878)[org.
>>> apache.felix.framework-4.0.3.jar:]
>>> at org.apache.felix.framework.cache.BundleArchive.
>>> reviseInternal(BundleArchive.java:550)[org.apache.felix.
>>> framework-4.0.3.jar:]
>>> at org.apache.felix.framework.cache.BundleArchive.<init>(
>>> BundleArchive.java:153)[org.apache.felix.framework-4.0.3.jar:]
>>> at org.apache.felix.framework.cache.BundleCache.create(
>>> BundleCache.java:277)[org.apache.felix.framework-4.0.3.jar:]
>>> at org.apache.felix.framework.Felix.installBundle(Felix.
>>> java:2699)[org.apache.felix.framework-4.0.3.jar:]
>>> ... 13 more
>>>
>>> Am I doing things in the correct order? I also notice that trying to
>>> install the JNDI feature produces the following error as well:
>>>
>>> karaf@root> features:install jndi
>>> Error executing command: Can not resolve feature:
>>> Unsatisfied requirement(s):
>>> ---------------------------
>>> service:(service=org.apache.aries.proxy.ProxyManager)
>>> Apache Karaf :: JNDI :: Core
>>>
>>> Exception for the above:
>>>
>>> at org.apache.karaf.features.obr.internal.ObrResolver.resolve(
>>> ObrResolver.java:129)[34:org.apache.karaf.features.obr:2.3.4]
>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>> resolve(FeaturesServiceImpl.java:657)[26:org.apache.karaf.
>>> features.core:2.3.4]
>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>> doInstallFeature(FeaturesServiceImpl.java:620)[
>>> 26:org.apache.karaf.features.core:2.3.4]
>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>> installFeatures(FeaturesServiceImpl.java:417)[
>>> 26:org.apache.karaf.features.core:2.3.4]
>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>> installFeature(FeaturesServiceImpl.java:405)[26:org.apache.karaf.features.
>>>
>>> core:2.3.4]
>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>> installFeature(FeaturesServiceImpl.java:401)[26:org.apache.karaf.features.
>>>
>>> core:2.3.4]
>>> at
>>> org.apache.karaf.features.command.InstallFeatureCommand.doExecute(
>>> InstallFeatureCommand.java:62)[28:org.apache.karaf.features.command:2.3.4]
>>>
>>> at
>>> org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(
>>> FeaturesCommandSupport.java:41)[28:org.apache.karaf.
>>> features.command:2.3.4]
>>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>>> shell.console:2.3.4]
>>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>>> org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.karaf.shell.console.jline.Console.run(
>>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>>>
>>> Any thoughts are appreciated.
>>>
>>> Thanks,
>>> John
>>>
>>
>>
>
>
Re: Feature Install Errors in SMX 5.0.0
Posted by "Sobkowiak, Krzysztof" <kr...@gmail.com>.
It was a workaround. If you still want to have the obr resolver enabled,
you don't need to remove the lines. But you have ti install the obr
feature before you can install the jndi feature.
Regards
Krzysztof
On 09.04.2014 07:44, John Dubchak wrote:
> Hi Krzysztof,
>
> Yes, removing the data directory (after removing the entries from the
> startup.properties file) allowed me to successfully install the jndi
> feature.
>
> Thanks, this gets me past a big obstacle.
>
> John
>
> On 4/8/14 10:04 PM, Sobkowiak, Krzysztof wrote:
>> Hi John
>>
>> Please remove the data directory or start ServiceMix using the clean
>> option
>>
>> servicemix clean
>>
>> Best regards
>> Krzysztof
>>
>>
>> On 09.04.2014 00:12, John Dubchak wrote:
>>> Hi Krzysztof,
>>>
>>> I was still unable to install the JNDI feature after stopping SMX,
>>> commenting out the 2 lines you mentioned in the etc/startup.properties
>>> file:
>>>
>>> karaf@root> features:install jndi
>>> Error executing command: Can not resolve feature:
>>> Unsatisfied requirement(s):
>>> ---------------------------
>>> service:(service=org.apache.aries.proxy.ProxyManager)
>>> Apache Karaf :: JNDI :: Core
>>>
>>> Thanks,
>>> John
>>>
>>
--
Krzysztof Sobkowiak
JEE & OSS Architect | Technical Architect @ Capgemini
Capgemini <http://www.pl.capgemini.com/> | Software Solutions Center |
Wroclaw
e-mail: krzys.sobkowiak@gmail.com <ma...@gmail.com> |
Twitter: @KSobkowiak
Re: Feature Install Errors in SMX 5.0.0
Posted by John Dubchak <jo...@johndubchak.com>.
Hi Krzysztof,
Yes, removing the data directory (after removing the entries from the
startup.properties file) allowed me to successfully install the jndi
feature.
Thanks, this gets me past a big obstacle.
John
On 4/8/14 10:04 PM, Sobkowiak, Krzysztof wrote:
> Hi John
>
> Please remove the data directory or start ServiceMix using the clean option
>
> servicemix clean
>
> Best regards
> Krzysztof
>
>
> On 09.04.2014 00:12, John Dubchak wrote:
>> Hi Krzysztof,
>>
>> I was still unable to install the JNDI feature after stopping SMX,
>> commenting out the 2 lines you mentioned in the etc/startup.properties
>> file:
>>
>> karaf@root> features:install jndi
>> Error executing command: Can not resolve feature:
>> Unsatisfied requirement(s):
>> ---------------------------
>> service:(service=org.apache.aries.proxy.ProxyManager)
>> Apache Karaf :: JNDI :: Core
>>
>> Thanks,
>> John
>>
>> On 4/8/14 1:10 PM, Krzysztof Sobkowiak wrote:
>>> I have removed following lines from etc/startup.properties and the jndi
>>> feature could be installed
>>>
>>> org/apache/felix/org.apache.felix.bundlerepository/1.6.6/org.apache.felix.bundlerepository-1.6.6.jar=10
>>>
>>>
>>> org/apache/karaf/features/org.apache.karaf.features.obr/2.3.4/org.apache.karaf.features.obr-2.3.4.jar=30
>>>
>>>
>>>
>>> These lines are added by maven-antrun-plugin
>>>
>>> <execution>
>>> <id>enable-obr</id>
>>> <phase>prepare-package</phase>
>>> <goals>
>>> <goal>run</goal>
>>> </goals>
>>> <configuration>
>>> <target name="enable-obr">
>>> <echo message="Updating
>>> etc/startup.properties in assembly" />
>>> <concat
>>> destfile="target/dependencies/unix/apache-karaf-${karaf.version}/etc/startup.properties"
>>>
>>> append="true">
>>> <string
>>> value="${line.separator}" />
>>> <fileset
>>> file="target/classes/startup-obr.properties" />
>>> </concat>
>>> </target>
>>> </configuration>
>>> </execution>
>>>
>>> Do we really need this?
>>>
>>> Regards
>>> Krzysztof
>>>
>>>
>>> On 08.04.2014 21:39, Krzysztof Sobkowiak wrote:
>>>> I can reproduce the second problem too. But the service
>>>> org.apache.aries.proxy.ProxyManager is available in the registry.
>>>>
>>>> Apache Aries Proxy Service (13) provides:
>>>> -----------------------------------------
>>>> org.apache.aries.proxy.ProxyManager
>>>>
>>>> I have tested Karaf 2.3.4 and the jndi feature can be installed. The
>>>> problem must be ServiceMix specific.
>>>>
>>>> Regards
>>>> Krzysztof
>>>>
>>>>
>>>> On 08.04.2014 21:17, Jon Anstey wrote:
>>>>> Try "features:install camel-jpa"
>>>>>
>>>>>
>>>>> On Tue, Apr 8, 2014 at 4:29 PM, John Dubchak<jo...@johndubchak.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I just downloaded a fresh copy of the SMX 5.0.0 deploy from the
>>>>>> website
>>>>>> and started it up with:
>>>>>>
>>>>>> $ bin/servicemix
>>>>>>
>>>>>> Then I attempted to install camel-jpa and received the following
>>>>>> error:
>>>>>>
>>>>>> karaf@root> osgi:install camel-jpa
>>>>>> Bundle IDs:
>>>>>> Error executing command: Error installing bundles:
>>>>>> Unable to install bundle camel-jpa
>>>>>>
>>>>>> Displaying log:display-exception:
>>>>>>
>>>>>> org.apache.karaf.shell.console.MultiException: Error installing
>>>>>> bundles:
>>>>>> Unable to install bundle camel-jpa
>>>>>> at org.apache.karaf.shell.console.MultiException.
>>>>>> throwIf(MultiException.java:91)
>>>>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>>>>> InstallBundle.java:70)[39:org.apache.karaf.shell.osgi:2.3.4]
>>>>>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>>>>>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>>>>>> shell.console:2.3.4]
>>>>>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>>>>>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>>>>>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>>>>>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>>>>>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>>>>>> org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>>>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>>>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>>>>>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.karaf.shell.console.jline.Console.run(
>>>>>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>>>>>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> Caused by: java.lang.Exception: Unable to install bundle camel-jpa
>>>>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>>>>> InstallBundle.java:45)[39:org.apache.karaf.shell.osgi:2.3.4]
>>>>>> ... 11 more
>>>>>> Caused by: org.osgi.framework.BundleException: Unable to cache
>>>>>> bundle:
>>>>>> camel-jpa
>>>>>> at org.apache.felix.framework.Felix.installBundle(Felix.
>>>>>> java:2703)[org.apache.felix.framework-4.0.3.jar:]
>>>>>> at org.apache.felix.framework.BundleContextImpl.installBundle(
>>>>>> BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.jar:]
>>>>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>>>>> InstallBundle.java:43)[39:org.apache.karaf.shell.osgi:2.3.4]
>>>>>> ... 11 more
>>>>>> Caused by: java.net.MalformedURLException: no protocol: camel-jpa
>>>>>> at java.net.URL.<init>(URL.java:585)[:1.7.0_45]
>>>>>> at org.apache.felix.framework.util.SecureAction.createURL(
>>>>>> SecureAction.java:254)[org.apache.felix.framework-4.0.3.jar:]
>>>>>> at org.apache.felix.framework.cache.JarRevision.initialize(
>>>>>> JarRevision.java:148)[org.apache.felix.framework-4.0.3.jar:]
>>>>>> at org.apache.felix.framework.cache.JarRevision.<init>(
>>>>>> JarRevision.java:77)[org.apache.felix.framework-4.0.3.jar:]
>>>>>> at org.apache.felix.framework.cache.BundleArchive.
>>>>>> createRevisionFromLocation(BundleArchive.java:878)[org.
>>>>>> apache.felix.framework-4.0.3.jar:]
>>>>>> at org.apache.felix.framework.cache.BundleArchive.
>>>>>> reviseInternal(BundleArchive.java:550)[org.apache.felix.
>>>>>> framework-4.0.3.jar:]
>>>>>> at org.apache.felix.framework.cache.BundleArchive.<init>(
>>>>>> BundleArchive.java:153)[org.apache.felix.framework-4.0.3.jar:]
>>>>>> at org.apache.felix.framework.cache.BundleCache.create(
>>>>>> BundleCache.java:277)[org.apache.felix.framework-4.0.3.jar:]
>>>>>> at org.apache.felix.framework.Felix.installBundle(Felix.
>>>>>> java:2699)[org.apache.felix.framework-4.0.3.jar:]
>>>>>> ... 13 more
>>>>>>
>>>>>> Am I doing things in the correct order? I also notice that trying to
>>>>>> install the JNDI feature produces the following error as well:
>>>>>>
>>>>>> karaf@root> features:install jndi
>>>>>> Error executing command: Can not resolve feature:
>>>>>> Unsatisfied requirement(s):
>>>>>> ---------------------------
>>>>>> service:(service=org.apache.aries.proxy.ProxyManager)
>>>>>> Apache Karaf :: JNDI :: Core
>>>>>>
>>>>>> Exception for the above:
>>>>>>
>>>>>> at org.apache.karaf.features.obr.internal.ObrResolver.resolve(
>>>>>> ObrResolver.java:129)[34:org.apache.karaf.features.obr:2.3.4]
>>>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>>>> resolve(FeaturesServiceImpl.java:657)[26:org.apache.karaf.
>>>>>> features.core:2.3.4]
>>>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>>>> doInstallFeature(FeaturesServiceImpl.java:620)[
>>>>>> 26:org.apache.karaf.features.core:2.3.4]
>>>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>>>> installFeatures(FeaturesServiceImpl.java:417)[
>>>>>> 26:org.apache.karaf.features.core:2.3.4]
>>>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>>>> installFeature(FeaturesServiceImpl.java:405)[26:org.apache.karaf.features.
>>>>>>
>>>>>>
>>>>>> core:2.3.4]
>>>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>>>> installFeature(FeaturesServiceImpl.java:401)[26:org.apache.karaf.features.
>>>>>>
>>>>>>
>>>>>> core:2.3.4]
>>>>>> at
>>>>>> org.apache.karaf.features.command.InstallFeatureCommand.doExecute(
>>>>>> InstallFeatureCommand.java:62)[28:org.apache.karaf.features.command:2.3.4]
>>>>>>
>>>>>>
>>>>>> at
>>>>>> org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(
>>>>>> FeaturesCommandSupport.java:41)[28:org.apache.karaf.
>>>>>> features.command:2.3.4]
>>>>>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>>>>>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>>>>>> shell.console:2.3.4]
>>>>>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>>>>>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>>>>>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>>>>>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>>>>>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>>>>>> org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>>>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>>>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>>>>>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.karaf.shell.console.jline.Console.run(
>>>>>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>>>>>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>>
>>>>>> Any thoughts are appreciated.
>>>>>>
>>>>>> Thanks,
>>>>>> John
>>>>>>
>>>
>
Re: Feature Install Errors in SMX 5.0.0
Posted by "Sobkowiak, Krzysztof" <kr...@gmail.com>.
Hi John
Please remove the data directory or start ServiceMix using the clean option
servicemix clean
Best regards
Krzysztof
On 09.04.2014 00:12, John Dubchak wrote:
> Hi Krzysztof,
>
> I was still unable to install the JNDI feature after stopping SMX,
> commenting out the 2 lines you mentioned in the etc/startup.properties
> file:
>
> karaf@root> features:install jndi
> Error executing command: Can not resolve feature:
> Unsatisfied requirement(s):
> ---------------------------
> service:(service=org.apache.aries.proxy.ProxyManager)
> Apache Karaf :: JNDI :: Core
>
> Thanks,
> John
>
> On 4/8/14 1:10 PM, Krzysztof Sobkowiak wrote:
>> I have removed following lines from etc/startup.properties and the jndi
>> feature could be installed
>>
>> org/apache/felix/org.apache.felix.bundlerepository/1.6.6/org.apache.felix.bundlerepository-1.6.6.jar=10
>>
>>
>> org/apache/karaf/features/org.apache.karaf.features.obr/2.3.4/org.apache.karaf.features.obr-2.3.4.jar=30
>>
>>
>>
>> These lines are added by maven-antrun-plugin
>>
>> <execution>
>> <id>enable-obr</id>
>> <phase>prepare-package</phase>
>> <goals>
>> <goal>run</goal>
>> </goals>
>> <configuration>
>> <target name="enable-obr">
>> <echo message="Updating
>> etc/startup.properties in assembly" />
>> <concat
>> destfile="target/dependencies/unix/apache-karaf-${karaf.version}/etc/startup.properties"
>>
>> append="true">
>> <string
>> value="${line.separator}" />
>> <fileset
>> file="target/classes/startup-obr.properties" />
>> </concat>
>> </target>
>> </configuration>
>> </execution>
>>
>> Do we really need this?
>>
>> Regards
>> Krzysztof
>>
>>
>> On 08.04.2014 21:39, Krzysztof Sobkowiak wrote:
>>> I can reproduce the second problem too. But the service
>>> org.apache.aries.proxy.ProxyManager is available in the registry.
>>>
>>> Apache Aries Proxy Service (13) provides:
>>> -----------------------------------------
>>> org.apache.aries.proxy.ProxyManager
>>>
>>> I have tested Karaf 2.3.4 and the jndi feature can be installed. The
>>> problem must be ServiceMix specific.
>>>
>>> Regards
>>> Krzysztof
>>>
>>>
>>> On 08.04.2014 21:17, Jon Anstey wrote:
>>>> Try "features:install camel-jpa"
>>>>
>>>>
>>>> On Tue, Apr 8, 2014 at 4:29 PM, John Dubchak<jo...@johndubchak.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I just downloaded a fresh copy of the SMX 5.0.0 deploy from the
>>>>> website
>>>>> and started it up with:
>>>>>
>>>>> $ bin/servicemix
>>>>>
>>>>> Then I attempted to install camel-jpa and received the following
>>>>> error:
>>>>>
>>>>> karaf@root> osgi:install camel-jpa
>>>>> Bundle IDs:
>>>>> Error executing command: Error installing bundles:
>>>>> Unable to install bundle camel-jpa
>>>>>
>>>>> Displaying log:display-exception:
>>>>>
>>>>> org.apache.karaf.shell.console.MultiException: Error installing
>>>>> bundles:
>>>>> Unable to install bundle camel-jpa
>>>>> at org.apache.karaf.shell.console.MultiException.
>>>>> throwIf(MultiException.java:91)
>>>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>>>> InstallBundle.java:70)[39:org.apache.karaf.shell.osgi:2.3.4]
>>>>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>>>>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>>>>> shell.console:2.3.4]
>>>>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>>>>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>>>>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>>>>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>>>>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>>>>> org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>>>>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.karaf.shell.console.jline.Console.run(
>>>>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>>>>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> Caused by: java.lang.Exception: Unable to install bundle camel-jpa
>>>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>>>> InstallBundle.java:45)[39:org.apache.karaf.shell.osgi:2.3.4]
>>>>> ... 11 more
>>>>> Caused by: org.osgi.framework.BundleException: Unable to cache
>>>>> bundle:
>>>>> camel-jpa
>>>>> at org.apache.felix.framework.Felix.installBundle(Felix.
>>>>> java:2703)[org.apache.felix.framework-4.0.3.jar:]
>>>>> at org.apache.felix.framework.BundleContextImpl.installBundle(
>>>>> BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.jar:]
>>>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>>>> InstallBundle.java:43)[39:org.apache.karaf.shell.osgi:2.3.4]
>>>>> ... 11 more
>>>>> Caused by: java.net.MalformedURLException: no protocol: camel-jpa
>>>>> at java.net.URL.<init>(URL.java:585)[:1.7.0_45]
>>>>> at org.apache.felix.framework.util.SecureAction.createURL(
>>>>> SecureAction.java:254)[org.apache.felix.framework-4.0.3.jar:]
>>>>> at org.apache.felix.framework.cache.JarRevision.initialize(
>>>>> JarRevision.java:148)[org.apache.felix.framework-4.0.3.jar:]
>>>>> at org.apache.felix.framework.cache.JarRevision.<init>(
>>>>> JarRevision.java:77)[org.apache.felix.framework-4.0.3.jar:]
>>>>> at org.apache.felix.framework.cache.BundleArchive.
>>>>> createRevisionFromLocation(BundleArchive.java:878)[org.
>>>>> apache.felix.framework-4.0.3.jar:]
>>>>> at org.apache.felix.framework.cache.BundleArchive.
>>>>> reviseInternal(BundleArchive.java:550)[org.apache.felix.
>>>>> framework-4.0.3.jar:]
>>>>> at org.apache.felix.framework.cache.BundleArchive.<init>(
>>>>> BundleArchive.java:153)[org.apache.felix.framework-4.0.3.jar:]
>>>>> at org.apache.felix.framework.cache.BundleCache.create(
>>>>> BundleCache.java:277)[org.apache.felix.framework-4.0.3.jar:]
>>>>> at org.apache.felix.framework.Felix.installBundle(Felix.
>>>>> java:2699)[org.apache.felix.framework-4.0.3.jar:]
>>>>> ... 13 more
>>>>>
>>>>> Am I doing things in the correct order? I also notice that trying to
>>>>> install the JNDI feature produces the following error as well:
>>>>>
>>>>> karaf@root> features:install jndi
>>>>> Error executing command: Can not resolve feature:
>>>>> Unsatisfied requirement(s):
>>>>> ---------------------------
>>>>> service:(service=org.apache.aries.proxy.ProxyManager)
>>>>> Apache Karaf :: JNDI :: Core
>>>>>
>>>>> Exception for the above:
>>>>>
>>>>> at org.apache.karaf.features.obr.internal.ObrResolver.resolve(
>>>>> ObrResolver.java:129)[34:org.apache.karaf.features.obr:2.3.4]
>>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>>> resolve(FeaturesServiceImpl.java:657)[26:org.apache.karaf.
>>>>> features.core:2.3.4]
>>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>>> doInstallFeature(FeaturesServiceImpl.java:620)[
>>>>> 26:org.apache.karaf.features.core:2.3.4]
>>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>>> installFeatures(FeaturesServiceImpl.java:417)[
>>>>> 26:org.apache.karaf.features.core:2.3.4]
>>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>>> installFeature(FeaturesServiceImpl.java:405)[26:org.apache.karaf.features.
>>>>>
>>>>>
>>>>> core:2.3.4]
>>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>>> installFeature(FeaturesServiceImpl.java:401)[26:org.apache.karaf.features.
>>>>>
>>>>>
>>>>> core:2.3.4]
>>>>> at
>>>>> org.apache.karaf.features.command.InstallFeatureCommand.doExecute(
>>>>> InstallFeatureCommand.java:62)[28:org.apache.karaf.features.command:2.3.4]
>>>>>
>>>>>
>>>>> at
>>>>> org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(
>>>>> FeaturesCommandSupport.java:41)[28:org.apache.karaf.
>>>>> features.command:2.3.4]
>>>>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>>>>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>>>>> shell.console:2.3.4]
>>>>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>>>>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>>>>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>>>>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>>>>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>>>>> org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>>>>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.karaf.shell.console.jline.Console.run(
>>>>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>>>>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>>>>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>>>>>
>>>>> Any thoughts are appreciated.
>>>>>
>>>>> Thanks,
>>>>> John
>>>>>
>>
--
Krzysztof Sobkowiak
JEE & OSS Architect | Technical Architect @ Capgemini
Capgemini <http://www.pl.capgemini.com/> | Software Solutions Center |
Wroclaw
e-mail: krzys.sobkowiak@gmail.com <ma...@gmail.com> |
Twitter: @KSobkowiak
Re: Feature Install Errors in SMX 5.0.0
Posted by John Dubchak <jo...@johndubchak.com>.
Hi Krzysztof,
I was still unable to install the JNDI feature after stopping SMX,
commenting out the 2 lines you mentioned in the etc/startup.properties file:
karaf@root> features:install jndi
Error executing command: Can not resolve feature:
Unsatisfied requirement(s):
---------------------------
service:(service=org.apache.aries.proxy.ProxyManager)
Apache Karaf :: JNDI :: Core
Thanks,
John
On 4/8/14 1:10 PM, Krzysztof Sobkowiak wrote:
> I have removed following lines from etc/startup.properties and the jndi
> feature could be installed
>
> org/apache/felix/org.apache.felix.bundlerepository/1.6.6/org.apache.felix.bundlerepository-1.6.6.jar=10
>
> org/apache/karaf/features/org.apache.karaf.features.obr/2.3.4/org.apache.karaf.features.obr-2.3.4.jar=30
>
>
> These lines are added by maven-antrun-plugin
>
> <execution>
> <id>enable-obr</id>
> <phase>prepare-package</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <target name="enable-obr">
> <echo message="Updating
> etc/startup.properties in assembly" />
> <concat
> destfile="target/dependencies/unix/apache-karaf-${karaf.version}/etc/startup.properties"
> append="true">
> <string value="${line.separator}" />
> <fileset
> file="target/classes/startup-obr.properties" />
> </concat>
> </target>
> </configuration>
> </execution>
>
> Do we really need this?
>
> Regards
> Krzysztof
>
>
> On 08.04.2014 21:39, Krzysztof Sobkowiak wrote:
>> I can reproduce the second problem too. But the service
>> org.apache.aries.proxy.ProxyManager is available in the registry.
>>
>> Apache Aries Proxy Service (13) provides:
>> -----------------------------------------
>> org.apache.aries.proxy.ProxyManager
>>
>> I have tested Karaf 2.3.4 and the jndi feature can be installed. The
>> problem must be ServiceMix specific.
>>
>> Regards
>> Krzysztof
>>
>>
>> On 08.04.2014 21:17, Jon Anstey wrote:
>>> Try "features:install camel-jpa"
>>>
>>>
>>> On Tue, Apr 8, 2014 at 4:29 PM, John Dubchak<jo...@johndubchak.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I just downloaded a fresh copy of the SMX 5.0.0 deploy from the website
>>>> and started it up with:
>>>>
>>>> $ bin/servicemix
>>>>
>>>> Then I attempted to install camel-jpa and received the following error:
>>>>
>>>> karaf@root> osgi:install camel-jpa
>>>> Bundle IDs:
>>>> Error executing command: Error installing bundles:
>>>> Unable to install bundle camel-jpa
>>>>
>>>> Displaying log:display-exception:
>>>>
>>>> org.apache.karaf.shell.console.MultiException: Error installing
>>>> bundles:
>>>> Unable to install bundle camel-jpa
>>>> at org.apache.karaf.shell.console.MultiException.
>>>> throwIf(MultiException.java:91)
>>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>>> InstallBundle.java:70)[39:org.apache.karaf.shell.osgi:2.3.4]
>>>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>>>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>>>> shell.console:2.3.4]
>>>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>>>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>>>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>>>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>>>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>>>> org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>>>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.karaf.shell.console.jline.Console.run(
>>>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>>>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>>>> Caused by: java.lang.Exception: Unable to install bundle camel-jpa
>>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>>> InstallBundle.java:45)[39:org.apache.karaf.shell.osgi:2.3.4]
>>>> ... 11 more
>>>> Caused by: org.osgi.framework.BundleException: Unable to cache bundle:
>>>> camel-jpa
>>>> at org.apache.felix.framework.Felix.installBundle(Felix.
>>>> java:2703)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.BundleContextImpl.installBundle(
>>>> BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>>> InstallBundle.java:43)[39:org.apache.karaf.shell.osgi:2.3.4]
>>>> ... 11 more
>>>> Caused by: java.net.MalformedURLException: no protocol: camel-jpa
>>>> at java.net.URL.<init>(URL.java:585)[:1.7.0_45]
>>>> at org.apache.felix.framework.util.SecureAction.createURL(
>>>> SecureAction.java:254)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.JarRevision.initialize(
>>>> JarRevision.java:148)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.JarRevision.<init>(
>>>> JarRevision.java:77)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.BundleArchive.
>>>> createRevisionFromLocation(BundleArchive.java:878)[org.
>>>> apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.BundleArchive.
>>>> reviseInternal(BundleArchive.java:550)[org.apache.felix.
>>>> framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.BundleArchive.<init>(
>>>> BundleArchive.java:153)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.BundleCache.create(
>>>> BundleCache.java:277)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.Felix.installBundle(Felix.
>>>> java:2699)[org.apache.felix.framework-4.0.3.jar:]
>>>> ... 13 more
>>>>
>>>> Am I doing things in the correct order? I also notice that trying to
>>>> install the JNDI feature produces the following error as well:
>>>>
>>>> karaf@root> features:install jndi
>>>> Error executing command: Can not resolve feature:
>>>> Unsatisfied requirement(s):
>>>> ---------------------------
>>>> service:(service=org.apache.aries.proxy.ProxyManager)
>>>> Apache Karaf :: JNDI :: Core
>>>>
>>>> Exception for the above:
>>>>
>>>> at org.apache.karaf.features.obr.internal.ObrResolver.resolve(
>>>> ObrResolver.java:129)[34:org.apache.karaf.features.obr:2.3.4]
>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>> resolve(FeaturesServiceImpl.java:657)[26:org.apache.karaf.
>>>> features.core:2.3.4]
>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>> doInstallFeature(FeaturesServiceImpl.java:620)[
>>>> 26:org.apache.karaf.features.core:2.3.4]
>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>> installFeatures(FeaturesServiceImpl.java:417)[
>>>> 26:org.apache.karaf.features.core:2.3.4]
>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>> installFeature(FeaturesServiceImpl.java:405)[26:org.apache.karaf.features.
>>>>
>>>> core:2.3.4]
>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>> installFeature(FeaturesServiceImpl.java:401)[26:org.apache.karaf.features.
>>>>
>>>> core:2.3.4]
>>>> at
>>>> org.apache.karaf.features.command.InstallFeatureCommand.doExecute(
>>>> InstallFeatureCommand.java:62)[28:org.apache.karaf.features.command:2.3.4]
>>>>
>>>> at
>>>> org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(
>>>> FeaturesCommandSupport.java:41)[28:org.apache.karaf.
>>>> features.command:2.3.4]
>>>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>>>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>>>> shell.console:2.3.4]
>>>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>>>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>>>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>>>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>>>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>>>> org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>>>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.karaf.shell.console.jline.Console.run(
>>>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>>>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>>>>
>>>> Any thoughts are appreciated.
>>>>
>>>> Thanks,
>>>> John
>>>>
>
Re: Feature Install Errors in SMX 5.0.0
Posted by Krzysztof Sobkowiak <kr...@gmail.com>.
I have started https://issues.apache.org/jira/browse/SM-2279 to track
this problem
On 08.04.2014 22:10, Krzysztof Sobkowiak wrote:
> I have removed following lines from etc/startup.properties and the
> jndi feature could be installed
>
> org/apache/felix/org.apache.felix.bundlerepository/1.6.6/org.apache.felix.bundlerepository-1.6.6.jar=10
> org/apache/karaf/features/org.apache.karaf.features.obr/2.3.4/org.apache.karaf.features.obr-2.3.4.jar=30
>
> These lines are added by maven-antrun-plugin
>
> <execution>
> <id>enable-obr</id>
> <phase>prepare-package</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <target name="enable-obr">
> <echo message="Updating
> etc/startup.properties in assembly" />
> <concat
> destfile="target/dependencies/unix/apache-karaf-${karaf.version}/etc/startup.properties"
> append="true">
> <string value="${line.separator}" />
> <fileset
> file="target/classes/startup-obr.properties" />
> </concat>
> </target>
> </configuration>
> </execution>
>
> Do we really need this?
>
> Regards
> Krzysztof
>
>
> On 08.04.2014 21:39, Krzysztof Sobkowiak wrote:
>> I can reproduce the second problem too. But the service
>> org.apache.aries.proxy.ProxyManager is available in the registry.
>>
>> Apache Aries Proxy Service (13) provides:
>> -----------------------------------------
>> org.apache.aries.proxy.ProxyManager
>>
>> I have tested Karaf 2.3.4 and the jndi feature can be installed. The
>> problem must be ServiceMix specific.
>>
>> Regards
>> Krzysztof
>>
>>
>> On 08.04.2014 21:17, Jon Anstey wrote:
>>> Try "features:install camel-jpa"
>>>
>>>
>>> On Tue, Apr 8, 2014 at 4:29 PM, John Dubchak<jo...@johndubchak.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I just downloaded a fresh copy of the SMX 5.0.0 deploy from the website
>>>> and started it up with:
>>>>
>>>> $ bin/servicemix
>>>>
>>>> Then I attempted to install camel-jpa and received the following error:
>>>>
>>>> karaf@root> osgi:install camel-jpa
>>>> Bundle IDs:
>>>> Error executing command: Error installing bundles:
>>>> Unable to install bundle camel-jpa
>>>>
>>>> Displaying log:display-exception:
>>>>
>>>> org.apache.karaf.shell.console.MultiException: Error installing bundles:
>>>> Unable to install bundle camel-jpa
>>>> at org.apache.karaf.shell.console.MultiException.
>>>> throwIf(MultiException.java:91)
>>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>>> InstallBundle.java:70)[39:org.apache.karaf.shell.osgi:2.3.4]
>>>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>>>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>>>> shell.console:2.3.4]
>>>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>>>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>>>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>>>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>>>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>>>> org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>>>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.karaf.shell.console.jline.Console.run(
>>>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>>>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>>>> Caused by: java.lang.Exception: Unable to install bundle camel-jpa
>>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>>> InstallBundle.java:45)[39:org.apache.karaf.shell.osgi:2.3.4]
>>>> ... 11 more
>>>> Caused by: org.osgi.framework.BundleException: Unable to cache bundle:
>>>> camel-jpa
>>>> at org.apache.felix.framework.Felix.installBundle(Felix.
>>>> java:2703)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.BundleContextImpl.installBundle(
>>>> BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>>> InstallBundle.java:43)[39:org.apache.karaf.shell.osgi:2.3.4]
>>>> ... 11 more
>>>> Caused by: java.net.MalformedURLException: no protocol: camel-jpa
>>>> at java.net.URL.<init>(URL.java:585)[:1.7.0_45]
>>>> at org.apache.felix.framework.util.SecureAction.createURL(
>>>> SecureAction.java:254)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.JarRevision.initialize(
>>>> JarRevision.java:148)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.JarRevision.<init>(
>>>> JarRevision.java:77)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.BundleArchive.
>>>> createRevisionFromLocation(BundleArchive.java:878)[org.
>>>> apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.BundleArchive.
>>>> reviseInternal(BundleArchive.java:550)[org.apache.felix.
>>>> framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.BundleArchive.<init>(
>>>> BundleArchive.java:153)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.cache.BundleCache.create(
>>>> BundleCache.java:277)[org.apache.felix.framework-4.0.3.jar:]
>>>> at org.apache.felix.framework.Felix.installBundle(Felix.
>>>> java:2699)[org.apache.felix.framework-4.0.3.jar:]
>>>> ... 13 more
>>>>
>>>> Am I doing things in the correct order? I also notice that trying to
>>>> install the JNDI feature produces the following error as well:
>>>>
>>>> karaf@root> features:install jndi
>>>> Error executing command: Can not resolve feature:
>>>> Unsatisfied requirement(s):
>>>> ---------------------------
>>>> service:(service=org.apache.aries.proxy.ProxyManager)
>>>> Apache Karaf :: JNDI :: Core
>>>>
>>>> Exception for the above:
>>>>
>>>> at org.apache.karaf.features.obr.internal.ObrResolver.resolve(
>>>> ObrResolver.java:129)[34:org.apache.karaf.features.obr:2.3.4]
>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>> resolve(FeaturesServiceImpl.java:657)[26:org.apache.karaf.
>>>> features.core:2.3.4]
>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>> doInstallFeature(FeaturesServiceImpl.java:620)[
>>>> 26:org.apache.karaf.features.core:2.3.4]
>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>> installFeatures(FeaturesServiceImpl.java:417)[
>>>> 26:org.apache.karaf.features.core:2.3.4]
>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>> installFeature(FeaturesServiceImpl.java:405)[26:org.apache.karaf.features.
>>>> core:2.3.4]
>>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>>> installFeature(FeaturesServiceImpl.java:401)[26:org.apache.karaf.features.
>>>> core:2.3.4]
>>>> at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(
>>>> InstallFeatureCommand.java:62)[28:org.apache.karaf.features.command:2.3.4]
>>>> at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(
>>>> FeaturesCommandSupport.java:41)[28:org.apache.karaf.
>>>> features.command:2.3.4]
>>>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>>>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>>>> shell.console:2.3.4]
>>>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>>>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>>>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>>>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>>>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>>>> org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>>>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.karaf.shell.console.jline.Console.run(
>>>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>>>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>>>>
--
Krzysztof Sobkowiak
JEE & OSS Architect | Technical Architect @ Capgemini
Capgemini <http://www.pl.capgemini.com/> | Software Solutions Center
<http://www.pl.capgemini-sdm.com/> | Wroclaw
e-mail: krzys.sobkowiak@gmail.com <ma...@gmail.com> |
Twitter: @KSobkowiak
Re: Feature Install Errors in SMX 5.0.0
Posted by Krzysztof Sobkowiak <kr...@gmail.com>.
I have removed following lines from etc/startup.properties and the jndi
feature could be installed
org/apache/felix/org.apache.felix.bundlerepository/1.6.6/org.apache.felix.bundlerepository-1.6.6.jar=10
org/apache/karaf/features/org.apache.karaf.features.obr/2.3.4/org.apache.karaf.features.obr-2.3.4.jar=30
These lines are added by maven-antrun-plugin
<execution>
<id>enable-obr</id>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="enable-obr">
<echo message="Updating
etc/startup.properties in assembly" />
<concat
destfile="target/dependencies/unix/apache-karaf-${karaf.version}/etc/startup.properties"
append="true">
<string value="${line.separator}" />
<fileset
file="target/classes/startup-obr.properties" />
</concat>
</target>
</configuration>
</execution>
Do we really need this?
Regards
Krzysztof
On 08.04.2014 21:39, Krzysztof Sobkowiak wrote:
> I can reproduce the second problem too. But the service
> org.apache.aries.proxy.ProxyManager is available in the registry.
>
> Apache Aries Proxy Service (13) provides:
> -----------------------------------------
> org.apache.aries.proxy.ProxyManager
>
> I have tested Karaf 2.3.4 and the jndi feature can be installed. The
> problem must be ServiceMix specific.
>
> Regards
> Krzysztof
>
>
> On 08.04.2014 21:17, Jon Anstey wrote:
>> Try "features:install camel-jpa"
>>
>>
>> On Tue, Apr 8, 2014 at 4:29 PM, John Dubchak<jo...@johndubchak.com> wrote:
>>
>>> Hi,
>>>
>>> I just downloaded a fresh copy of the SMX 5.0.0 deploy from the website
>>> and started it up with:
>>>
>>> $ bin/servicemix
>>>
>>> Then I attempted to install camel-jpa and received the following error:
>>>
>>> karaf@root> osgi:install camel-jpa
>>> Bundle IDs:
>>> Error executing command: Error installing bundles:
>>> Unable to install bundle camel-jpa
>>>
>>> Displaying log:display-exception:
>>>
>>> org.apache.karaf.shell.console.MultiException: Error installing bundles:
>>> Unable to install bundle camel-jpa
>>> at org.apache.karaf.shell.console.MultiException.
>>> throwIf(MultiException.java:91)
>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>> InstallBundle.java:70)[39:org.apache.karaf.shell.osgi:2.3.4]
>>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>>> shell.console:2.3.4]
>>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>>> org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.karaf.shell.console.jline.Console.run(
>>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>>> Caused by: java.lang.Exception: Unable to install bundle camel-jpa
>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>> InstallBundle.java:45)[39:org.apache.karaf.shell.osgi:2.3.4]
>>> ... 11 more
>>> Caused by: org.osgi.framework.BundleException: Unable to cache bundle:
>>> camel-jpa
>>> at org.apache.felix.framework.Felix.installBundle(Felix.
>>> java:2703)[org.apache.felix.framework-4.0.3.jar:]
>>> at org.apache.felix.framework.BundleContextImpl.installBundle(
>>> BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.jar:]
>>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>>> InstallBundle.java:43)[39:org.apache.karaf.shell.osgi:2.3.4]
>>> ... 11 more
>>> Caused by: java.net.MalformedURLException: no protocol: camel-jpa
>>> at java.net.URL.<init>(URL.java:585)[:1.7.0_45]
>>> at org.apache.felix.framework.util.SecureAction.createURL(
>>> SecureAction.java:254)[org.apache.felix.framework-4.0.3.jar:]
>>> at org.apache.felix.framework.cache.JarRevision.initialize(
>>> JarRevision.java:148)[org.apache.felix.framework-4.0.3.jar:]
>>> at org.apache.felix.framework.cache.JarRevision.<init>(
>>> JarRevision.java:77)[org.apache.felix.framework-4.0.3.jar:]
>>> at org.apache.felix.framework.cache.BundleArchive.
>>> createRevisionFromLocation(BundleArchive.java:878)[org.
>>> apache.felix.framework-4.0.3.jar:]
>>> at org.apache.felix.framework.cache.BundleArchive.
>>> reviseInternal(BundleArchive.java:550)[org.apache.felix.
>>> framework-4.0.3.jar:]
>>> at org.apache.felix.framework.cache.BundleArchive.<init>(
>>> BundleArchive.java:153)[org.apache.felix.framework-4.0.3.jar:]
>>> at org.apache.felix.framework.cache.BundleCache.create(
>>> BundleCache.java:277)[org.apache.felix.framework-4.0.3.jar:]
>>> at org.apache.felix.framework.Felix.installBundle(Felix.
>>> java:2699)[org.apache.felix.framework-4.0.3.jar:]
>>> ... 13 more
>>>
>>> Am I doing things in the correct order? I also notice that trying to
>>> install the JNDI feature produces the following error as well:
>>>
>>> karaf@root> features:install jndi
>>> Error executing command: Can not resolve feature:
>>> Unsatisfied requirement(s):
>>> ---------------------------
>>> service:(service=org.apache.aries.proxy.ProxyManager)
>>> Apache Karaf :: JNDI :: Core
>>>
>>> Exception for the above:
>>>
>>> at org.apache.karaf.features.obr.internal.ObrResolver.resolve(
>>> ObrResolver.java:129)[34:org.apache.karaf.features.obr:2.3.4]
>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>> resolve(FeaturesServiceImpl.java:657)[26:org.apache.karaf.
>>> features.core:2.3.4]
>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>> doInstallFeature(FeaturesServiceImpl.java:620)[
>>> 26:org.apache.karaf.features.core:2.3.4]
>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>> installFeatures(FeaturesServiceImpl.java:417)[
>>> 26:org.apache.karaf.features.core:2.3.4]
>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>> installFeature(FeaturesServiceImpl.java:405)[26:org.apache.karaf.features.
>>> core:2.3.4]
>>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>>> installFeature(FeaturesServiceImpl.java:401)[26:org.apache.karaf.features.
>>> core:2.3.4]
>>> at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(
>>> InstallFeatureCommand.java:62)[28:org.apache.karaf.features.command:2.3.4]
>>> at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(
>>> FeaturesCommandSupport.java:41)[28:org.apache.karaf.
>>> features.command:2.3.4]
>>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>>> shell.console:2.3.4]
>>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>>> org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.karaf.shell.console.jline.Console.run(
>>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>>>
>>> Any thoughts are appreciated.
>>>
>>> Thanks,
>>> John
>>>
--
Krzysztof Sobkowiak
JEE & OSS Architect | Technical Architect @ Capgemini
Capgemini <http://www.pl.capgemini.com/> | Software Solutions Center
<http://www.pl.capgemini-sdm.com/> | Wroclaw
e-mail: krzys.sobkowiak@gmail.com <ma...@gmail.com> |
Twitter: @KSobkowiak
Re: Feature Install Errors in SMX 5.0.0
Posted by Krzysztof Sobkowiak <kr...@gmail.com>.
I can reproduce the second problem too. But the service
org.apache.aries.proxy.ProxyManager is available in the registry.
Apache Aries Proxy Service (13) provides:
-----------------------------------------
org.apache.aries.proxy.ProxyManager
I have tested Karaf 2.3.4 and the jndi feature can be installed. The
problem must be ServiceMix specific.
Regards
Krzysztof
On 08.04.2014 21:17, Jon Anstey wrote:
> Try "features:install camel-jpa"
>
>
> On Tue, Apr 8, 2014 at 4:29 PM, John Dubchak <jo...@johndubchak.com> wrote:
>
>> Hi,
>>
>> I just downloaded a fresh copy of the SMX 5.0.0 deploy from the website
>> and started it up with:
>>
>> $ bin/servicemix
>>
>> Then I attempted to install camel-jpa and received the following error:
>>
>> karaf@root> osgi:install camel-jpa
>> Bundle IDs:
>> Error executing command: Error installing bundles:
>> Unable to install bundle camel-jpa
>>
>> Displaying log:display-exception:
>>
>> org.apache.karaf.shell.console.MultiException: Error installing bundles:
>> Unable to install bundle camel-jpa
>> at org.apache.karaf.shell.console.MultiException.
>> throwIf(MultiException.java:91)
>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>> InstallBundle.java:70)[39:org.apache.karaf.shell.osgi:2.3.4]
>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>> shell.console:2.3.4]
>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>> org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.karaf.shell.console.jline.Console.run(
>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>> Caused by: java.lang.Exception: Unable to install bundle camel-jpa
>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>> InstallBundle.java:45)[39:org.apache.karaf.shell.osgi:2.3.4]
>> ... 11 more
>> Caused by: org.osgi.framework.BundleException: Unable to cache bundle:
>> camel-jpa
>> at org.apache.felix.framework.Felix.installBundle(Felix.
>> java:2703)[org.apache.felix.framework-4.0.3.jar:]
>> at org.apache.felix.framework.BundleContextImpl.installBundle(
>> BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.jar:]
>> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
>> InstallBundle.java:43)[39:org.apache.karaf.shell.osgi:2.3.4]
>> ... 11 more
>> Caused by: java.net.MalformedURLException: no protocol: camel-jpa
>> at java.net.URL.<init>(URL.java:585)[:1.7.0_45]
>> at org.apache.felix.framework.util.SecureAction.createURL(
>> SecureAction.java:254)[org.apache.felix.framework-4.0.3.jar:]
>> at org.apache.felix.framework.cache.JarRevision.initialize(
>> JarRevision.java:148)[org.apache.felix.framework-4.0.3.jar:]
>> at org.apache.felix.framework.cache.JarRevision.<init>(
>> JarRevision.java:77)[org.apache.felix.framework-4.0.3.jar:]
>> at org.apache.felix.framework.cache.BundleArchive.
>> createRevisionFromLocation(BundleArchive.java:878)[org.
>> apache.felix.framework-4.0.3.jar:]
>> at org.apache.felix.framework.cache.BundleArchive.
>> reviseInternal(BundleArchive.java:550)[org.apache.felix.
>> framework-4.0.3.jar:]
>> at org.apache.felix.framework.cache.BundleArchive.<init>(
>> BundleArchive.java:153)[org.apache.felix.framework-4.0.3.jar:]
>> at org.apache.felix.framework.cache.BundleCache.create(
>> BundleCache.java:277)[org.apache.felix.framework-4.0.3.jar:]
>> at org.apache.felix.framework.Felix.installBundle(Felix.
>> java:2699)[org.apache.felix.framework-4.0.3.jar:]
>> ... 13 more
>>
>> Am I doing things in the correct order? I also notice that trying to
>> install the JNDI feature produces the following error as well:
>>
>> karaf@root> features:install jndi
>> Error executing command: Can not resolve feature:
>> Unsatisfied requirement(s):
>> ---------------------------
>> service:(service=org.apache.aries.proxy.ProxyManager)
>> Apache Karaf :: JNDI :: Core
>>
>> Exception for the above:
>>
>> at org.apache.karaf.features.obr.internal.ObrResolver.resolve(
>> ObrResolver.java:129)[34:org.apache.karaf.features.obr:2.3.4]
>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>> resolve(FeaturesServiceImpl.java:657)[26:org.apache.karaf.
>> features.core:2.3.4]
>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>> doInstallFeature(FeaturesServiceImpl.java:620)[
>> 26:org.apache.karaf.features.core:2.3.4]
>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>> installFeatures(FeaturesServiceImpl.java:417)[
>> 26:org.apache.karaf.features.core:2.3.4]
>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>> installFeature(FeaturesServiceImpl.java:405)[26:org.apache.karaf.features.
>> core:2.3.4]
>> at org.apache.karaf.features.internal.FeaturesServiceImpl.
>> installFeature(FeaturesServiceImpl.java:401)[26:org.apache.karaf.features.
>> core:2.3.4]
>> at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(
>> InstallFeatureCommand.java:62)[28:org.apache.karaf.features.command:2.3.4]
>> at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(
>> FeaturesCommandSupport.java:41)[28:org.apache.karaf.
>> features.command:2.3.4]
>> at org.apache.karaf.shell.console.OsgiCommandSupport.
>> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
>> shell.console:2.3.4]
>> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
>> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.CommandProxy.execute(
>> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
>> java:474)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Closure.executeStatement(
>> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
>> org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>> 183)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
>> 120)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
>> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.karaf.shell.console.jline.Console.run(
>> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
>> at org.apache.karaf.shell.console.jline.DelayedStarted.
>> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>>
>> Any thoughts are appreciated.
>>
>> Thanks,
>> John
>>
>
>
--
Krzysztof Sobkowiak
JEE & OSS Architect | Technical Architect @ Capgemini
Capgemini <http://www.pl.capgemini.com/> | Software Solutions Center
<http://www.pl.capgemini-sdm.com/> | Wroclaw
e-mail: krzys.sobkowiak@gmail.com <ma...@gmail.com> |
Twitter: @KSobkowiak
Re: Feature Install Errors in SMX 5.0.0
Posted by Jon Anstey <ja...@gmail.com>.
Try "features:install camel-jpa"
On Tue, Apr 8, 2014 at 4:29 PM, John Dubchak <jo...@johndubchak.com> wrote:
> Hi,
>
> I just downloaded a fresh copy of the SMX 5.0.0 deploy from the website
> and started it up with:
>
> $ bin/servicemix
>
> Then I attempted to install camel-jpa and received the following error:
>
> karaf@root> osgi:install camel-jpa
> Bundle IDs:
> Error executing command: Error installing bundles:
> Unable to install bundle camel-jpa
>
> Displaying log:display-exception:
>
> org.apache.karaf.shell.console.MultiException: Error installing bundles:
> Unable to install bundle camel-jpa
> at org.apache.karaf.shell.console.MultiException.
> throwIf(MultiException.java:91)
> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
> InstallBundle.java:70)[39:org.apache.karaf.shell.osgi:2.3.4]
> at org.apache.karaf.shell.console.OsgiCommandSupport.
> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
> shell.console:2.3.4]
> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
> at org.apache.felix.gogo.runtime.CommandProxy.execute(
> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
> java:474)[15:org.apache.karaf.shell.console:2.3.4]
> at org.apache.felix.gogo.runtime.Closure.executeStatement(
> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
> org.apache.karaf.shell.console:2.3.4]
> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
> 183)[15:org.apache.karaf.shell.console:2.3.4]
> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
> 120)[15:org.apache.karaf.shell.console:2.3.4]
> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
> at org.apache.karaf.shell.console.jline.Console.run(
> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
> at org.apache.karaf.shell.console.jline.DelayedStarted.
> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
> Caused by: java.lang.Exception: Unable to install bundle camel-jpa
> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
> InstallBundle.java:45)[39:org.apache.karaf.shell.osgi:2.3.4]
> ... 11 more
> Caused by: org.osgi.framework.BundleException: Unable to cache bundle:
> camel-jpa
> at org.apache.felix.framework.Felix.installBundle(Felix.
> java:2703)[org.apache.felix.framework-4.0.3.jar:]
> at org.apache.felix.framework.BundleContextImpl.installBundle(
> BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.jar:]
> at org.apache.karaf.shell.osgi.InstallBundle.doExecute(
> InstallBundle.java:43)[39:org.apache.karaf.shell.osgi:2.3.4]
> ... 11 more
> Caused by: java.net.MalformedURLException: no protocol: camel-jpa
> at java.net.URL.<init>(URL.java:585)[:1.7.0_45]
> at org.apache.felix.framework.util.SecureAction.createURL(
> SecureAction.java:254)[org.apache.felix.framework-4.0.3.jar:]
> at org.apache.felix.framework.cache.JarRevision.initialize(
> JarRevision.java:148)[org.apache.felix.framework-4.0.3.jar:]
> at org.apache.felix.framework.cache.JarRevision.<init>(
> JarRevision.java:77)[org.apache.felix.framework-4.0.3.jar:]
> at org.apache.felix.framework.cache.BundleArchive.
> createRevisionFromLocation(BundleArchive.java:878)[org.
> apache.felix.framework-4.0.3.jar:]
> at org.apache.felix.framework.cache.BundleArchive.
> reviseInternal(BundleArchive.java:550)[org.apache.felix.
> framework-4.0.3.jar:]
> at org.apache.felix.framework.cache.BundleArchive.<init>(
> BundleArchive.java:153)[org.apache.felix.framework-4.0.3.jar:]
> at org.apache.felix.framework.cache.BundleCache.create(
> BundleCache.java:277)[org.apache.felix.framework-4.0.3.jar:]
> at org.apache.felix.framework.Felix.installBundle(Felix.
> java:2699)[org.apache.felix.framework-4.0.3.jar:]
> ... 13 more
>
> Am I doing things in the correct order? I also notice that trying to
> install the JNDI feature produces the following error as well:
>
> karaf@root> features:install jndi
> Error executing command: Can not resolve feature:
> Unsatisfied requirement(s):
> ---------------------------
> service:(service=org.apache.aries.proxy.ProxyManager)
> Apache Karaf :: JNDI :: Core
>
> Exception for the above:
>
> at org.apache.karaf.features.obr.internal.ObrResolver.resolve(
> ObrResolver.java:129)[34:org.apache.karaf.features.obr:2.3.4]
> at org.apache.karaf.features.internal.FeaturesServiceImpl.
> resolve(FeaturesServiceImpl.java:657)[26:org.apache.karaf.
> features.core:2.3.4]
> at org.apache.karaf.features.internal.FeaturesServiceImpl.
> doInstallFeature(FeaturesServiceImpl.java:620)[
> 26:org.apache.karaf.features.core:2.3.4]
> at org.apache.karaf.features.internal.FeaturesServiceImpl.
> installFeatures(FeaturesServiceImpl.java:417)[
> 26:org.apache.karaf.features.core:2.3.4]
> at org.apache.karaf.features.internal.FeaturesServiceImpl.
> installFeature(FeaturesServiceImpl.java:405)[26:org.apache.karaf.features.
> core:2.3.4]
> at org.apache.karaf.features.internal.FeaturesServiceImpl.
> installFeature(FeaturesServiceImpl.java:401)[26:org.apache.karaf.features.
> core:2.3.4]
> at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(
> InstallFeatureCommand.java:62)[28:org.apache.karaf.features.command:2.3.4]
> at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(
> FeaturesCommandSupport.java:41)[28:org.apache.karaf.
> features.command:2.3.4]
> at org.apache.karaf.shell.console.OsgiCommandSupport.
> execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.
> shell.console:2.3.4]
> at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(
> AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.4]
> at org.apache.felix.gogo.runtime.CommandProxy.execute(
> CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.4]
> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.
> java:474)[15:org.apache.karaf.shell.console:2.3.4]
> at org.apache.felix.gogo.runtime.Closure.executeStatement(
> Closure.java:400)[15:org.apache.karaf.shell.console:2.3.4]
> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:
> org.apache.karaf.shell.console:2.3.4]
> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
> 183)[15:org.apache.karaf.shell.console:2.3.4]
> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:
> 120)[15:org.apache.karaf.shell.console:2.3.4]
> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(
> CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.4]
> at org.apache.karaf.shell.console.jline.Console.run(
> Console.java:183)[15:org.apache.karaf.shell.console:2.3.4]
> at org.apache.karaf.shell.console.jline.DelayedStarted.
> run(DelayedStarted.java:79)[15:org.apache.karaf.shell.console:2.3.4]
>
> Any thoughts are appreciated.
>
> Thanks,
> John
>
--
Cheers,
Jon
---------------
Red Hat, Inc.
Email: janstey@redhat.com
Web: http://redhat.com
Twitter: jon_anstey
Blog: http://janstey.blogspot.com
Author of Camel in Action: http://manning.com/ibsen