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<[email protected]>
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


Reply via email to