Hi all:
Environment:
Apache Maven 2.2.0 (r788681; 2009-06-26 06:04:01-0700)
Java version: 1.6.0_07
Java home: C:\Program Files\Java\jdk1.6.0_07\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
I downloaded apache-felix-karaf-1.0.0 and was unable to add "features"
and listed the steps to reproduce the issue. I made the following change
in config.properties to switch to Equinox instead of the default Felix
container.
1) <KARAF_HOME>/etc/config.properties
karaf.framework=equinox
2) The system bundle is Equinox
ka...@root> osgi:list
START LEVEL 100
ID State Blueprint Level Name
[ 0] [Active ] [ ] [ 0] OSGi System Bundle
(3.5.0.v20090520)
[ 1] [Active ] [Created ] [ 30] Apache Felix Karaf :: Shell
Various Commands (1.0.0)
[ 2] [Active ] [ ] [ 30] Apache MINA Core (2.0.0.M6)
[ 3] [Active ] [Created ] [ 30] Apache Felix Karaf :: Shell
PackageAdmin Commands (1.0.0)
[ 4] [Active ] [Created ] [ 30] Apache Felix Karaf :: JAAS
Modules (1.0.0)
[ 5] [Active ] [Created ] [ 30] Apache Felix Karaf :: JAAS
Config (1.0.0)
[ 6] [Active ] [Created ] [ 30] Apache Felix Karaf ::
Blueprint Deployer (1.0.0)
[ 7] [Active ] [Created ] [ 30] Apache Felix Karaf :: Shell
Admin (1.0.0)
[ 8] [Active ] [Created ] [ 30] Apache Felix Karaf :: Shell
Log Commands (1.0.0)
[ 9] [Active ] [Created ] [ 30] Apache Felix Karaf ::
Features Command (1.0.0)
[ 10] [Active ] [Created ] [ 30] Apache Felix Karaf :: Shell
SSH (1.0.0)
[ 11] [Active ] [ ] [ 30] Apache Mina SSHD :: Core
(0.2.0)
[ 12] [Active ] [ ] [ 30] Apache Felix Gogo Shell
Runtime (0.2.0)
[ 13] [Active ] [Created ] [ 30] Apache Felix Karaf ::
Features Core (1.0.0)
[ 14] [Active ] [Created ] [ 30] Apache Felix Karaf ::
Management (1.0.0)
[ 15] [Active ] [ ] [ 30] org.osgi.impl.bundle.jmx
(4.2.0.200907080519)
[ 16] [Active ] [Created ] [ 30] Apache Felix Karaf :: Shell
Console (1.0.0)
[ 17] [Active ] [Created ] [ 30] Apache Felix Karaf :: Shell
OSGi Commands (1.0.0)
[ 18] [Active ] [Created ] [ 30] Apache Felix Karaf ::
Features Management (1.0.0)
[ 19] [Active ] [Created ] [ 30] Apache Felix Karaf :: Spring
Deployer (1.0.0)
[ 20] [Active ] [Created ] [ 30] Apache Felix Karaf ::
Features Deployer (1.0.0)
[ 21] [Active ] [Created ] [ 30] Apache Felix Karaf :: Shell
ConfigAdmin Commands (1.0.0)
[ 22] [Active ] [ ] [ 10] Apache Felix File Install
(2.0.0)
[ 23] [Active ] [ ] [ 10] Apache Felix Prefrences
Service (1.0.2)
[ 24] [Active ] [ ] [ 10] Apache Felix Configuration
Admin Service (1.2.4)
[ 25] [Active ] [ ] [ 8] OPS4J Pax Logging - API
(1.4)
[ 26] [Active ] [ ] [ 8] OPS4J Pax Logging - Service
(1.4)
[ 27] [Active ] [ ] [ 5] OPS4J Pax Url - mvn: (1.0.0)
[ 28] [Active ] [ ] [ 5] OPS4J Pax Url - wrap:
(1.0.0)
[ 29] [Active ] [Created ] [ 20] Apache Geronimo Blueprint
Bundle (1.0.0)
3) I wanted to install Camel through "features" provided through
fusesource.com. The mvn:url is valid as it works in the Fuse-ESB4.1.0.2
ka...@root> features:addUrl
mvn:org.apache.servicemix.camel/org.apache.servicemix.camel.features/4.1
.0.2-fuse/xml/features
java.lang.RuntimeException: URL
[mvn:org.apache.servicemix.camel/org.apache.servicemix.camel.features/4.
1.0.2-fuse/xml/features] could not
be resolved.
at
org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java
:195)
at
org.apache.felix.karaf.features.internal.RepositoryImpl.load(RepositoryI
mpl.java:89)
at
org.apache.felix.karaf.features.internal.FeaturesServiceImpl.internalAdd
Repository(FeaturesServiceImpl.java:153)
at
org.apache.felix.karaf.features.internal.FeaturesServiceImpl.addReposito
ry(FeaturesServiceImpl.java:146)
at
org.apache.felix.karaf.features.command.AddUrlCommand.doExecute(AddUrlCo
mmand.java:34)
at
org.apache.felix.karaf.features.command.FeaturesCommandSupport.doExecute
(FeaturesCommandSupport.java:39)
at
org.apache.felix.karaf.shell.console.OsgiCommandSupport.execute(OsgiComm
andSupport.java:41)
at
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCom
mand.java:34)
at
org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.ja
va:45)
at
org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:211)
at
org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.jav
a:146)
at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:91)
at
org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:75)
at
org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSe
ssionImpl.java:71)
at
org.apache.felix.karaf.shell.console.jline.Console.run(Console.java:115)
at java.lang.Thread.run(Thread.java:619)
4) I tried the same through through
<KARAF_HOME>/etc/org.apache.felix.karaf.features.cfg to load the bundles
on boot. But even after specifying the above Camel features, the
features:listUrl didn't show the url. I think it's because of the issue
3) or what am I missing ?
Any help would be much appreciated and Karaf is awesome !
Regards,
Madhu
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]