Questions tagged [karaf]

Apache Karaf is a small OSGi based runtime which provides a lightweight container onto which various components and applications can be deployed. Use the apache-karaf tag. This tag is deprecated and should really be merged/removed.

Apache Karaf is a small based runtime which provides a lightweight container onto which various components and applications can be deployed.

The main features supported by Karaf are:

  • Hot deployment : Karaf supports hot deployment of OSGi bundles by monitoring files inside the [home]/deploy directory. Each time a jar is copied in this folder, it will be installed inside the runtime.
  • Dynamic configuration : Services are usually configured through the ConfigurationAdmin OSGi service. Such configuration can be defined in Karaf using property files inside the [home]/etc directory.
  • Logging System : using a centralized logging back end supported by Log4J, Karaf supports a number of different APIs
  • Provisioning : Provisioning of libraries or applications can be done through a number of different ways, by which they will be downloaded locally, installed and started.
  • Native OS integration : Karaf can be integrated into your own Operating System as a service so that the lifecycle will be bound to your Operating System.
  • Extensible Shell console : Karaf features a nice text console where you can manage the services, install new applications or libraries and manage their state. This shell is easily extensible by deploying new commands dynamically along with new features or applications.
  • Remote access : use any SSH client to connect to Karaf and issue commands in the console
  • Security framework : It provides a complete security framework (based on JAAS), and providing (Role-Based Access Control) mechanism for console and .
  • Managing instances : Karaf provides simple commands for managing multiple instances. You can easily create, delete, start and stop instances of Karaf through the console.

You should be using this tag if your question is related to the use of Karaf Framework.

549 questions
0
votes
2 answers

Solving dependency chain in karaf

I have Bundle A that depends on guava version 18 and bundle B that depends on services offered by bundle A plus guava version 19 . I have both guava version 18 and 19 bundles deployed . When i start bundle B , i face a dependency chain issue for…
user3619698
  • 125
  • 3
  • 13
0
votes
2 answers

State unsatisfied (reference) for service in Karaf - where is the mistake? (OSGi, declarative service, annotations)

I have a very simple service provider and consumer. For some reason I cannot solve the problem that my consumer would use provider's service. Here is the bundle source code for provider: package test; import…
neodix
  • 25
  • 7
0
votes
1 answer

Camel route with AMQP consumer runs ok in Eclipse, hangs in karaf

I am using Camel 2.17.3 and karaf 4.0.7 (also tried 4.0.1). I have a Camel route that runs fine in Eclipse when a junit test starts it, but hangs when deployed to karaf. If I change the amqp: 'from' component to timer: the route runs fine in…
Steve Huston
  • 1,432
  • 13
  • 20
0
votes
1 answer

Karaf 4.1 - ClassCastException from Apache Aries Proxy to Cassandra Entity Annotation

I have a big problem using datastax java-driver-mapping within karaf 4.1.0-SNAPSHOT, I need to get the annotation @Table from cassandra entity in this case: @Table(name = "clients") public class Client implements Serializable { @PartitionKey …
christmo
  • 351
  • 2
  • 18
0
votes
1 answer

opendaylight Boron crash when feature install odl-dlux-core

I am using distribution-karaf-0.5.0-Boron version of opendayligth controller on Windows 7 x64 and Java8 101 . When I run feature:install odl-dlux-core I got such error: opendaylight-user@root>feature:install odl-dlux-core Uncaught error from…
icehong
  • 11
  • 5
0
votes
0 answers

Getting sport.failover.FailoverTransport message (INFO) from karaf using ActiveMQ

I am using Talend 5.6.2 which has Karaf 2.3.9 and using ActiveMQ (not installed within Karaf) 5.10.2. The problem is for almost every milli second, I get logs as below. How to prevent this log from occuring as it eats up my logspace in no time.…
Hari R
  • 103
  • 2
  • 11
0
votes
0 answers

how to implement osgi configuration in karaf?

I've written a OSGi service factory. want to define configuration for each instances of the service in Karaf. Below are the questions I've. 1. Where to define bundle specific .cfg in Karaf? I've seen answers that it should be in /etc or can be…
0
votes
1 answer

Karaf: how to repeat previous command

How can I repeat previous command in apache karaf? I tried up and down arrows but I don't get previous commands.
Pavel_K
  • 10,748
  • 13
  • 73
  • 186
0
votes
1 answer

Karaf shell command

The Karaf 4 documentation mentions the ability to script: It’s possible to create objects to create commands "on the fly": karaf@root()> addcommand system (($.context bundle) loadClass java.lang.System) However this does not work, and displays…
ShawnE
  • 1
  • 1
0
votes
1 answer

using a Java blueprint service defintion

I can't get the blueprint right for using a service locally. The OSGi server (karaf) displays GracePeriod and eventually a timeout waiting on ILookupMfgService. If I remove the reference line the bundle starts and has an ILookupMfgService…
Timothy Vogel
  • 1,363
  • 2
  • 21
  • 39
0
votes
1 answer

how to create osgi bundle from jar

I am using MultipartbodyBuilder to send file and metadata from a REST web service client. To use In my pom file I have added org.apache.httpcomponents httpmime
Jose
  • 23
  • 1
  • 7
0
votes
2 answers

Karaf: Missing classes from my own jar

I created an OSGi bundle using the camel-archetype-blueprint maven archetype. I then tried to install this into Karaf, but the bundle is going into GracePeriod. After running diag, it's missing a dependency that is inside the jar file itself. Ok,…
Pete
  • 557
  • 1
  • 4
  • 18
0
votes
1 answer

Getting Exception while deplowing a web Spring web aplication in karaf

I am new to Spring and I am deploying a test Web application on karaf, the application only publishes a Spring rest service. During deployment I get the following exception. Hopefully some body can help me figure out what the problem is. …
0
votes
1 answer

Remote monitoring with java visualvm and JMX

I would like to monitor a remotely running java (spring boot) application with jvisualvm (or jconsole). When running locally, I can see the managed beans in both jvisualvm and jconsole. When running remotely I cannot connect. I tried it with several…
Vinoth
  • 7
  • 2
  • 10
0
votes
0 answers

Hibernate + Karaf: how to register my entity?

I get an exception java.lang.ClassNotFoundException: Could not load requested class : entity.CategoryEntity even though I exported package in my manifest file, what am I doing wrong here?
Alexey Galanov
  • 421
  • 4
  • 21