Questions tagged [apache-karaf]

Karaf is an enterprise grade OSGi runtime/container, with configurable framework implementation (Equinox, Felix). Originally the platform "kernel" for FuseSource ESB/ServiceMix it was added as an Apache top level project.

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 SSH 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.

It has all the benefits of OSGi; lightweight, dynamic, highly configurable, etc

Links:

  • website
  • users' mailing list: user@karaf.apache.org
  • developers' mailing list: dev@karaf.apache.org
  • nabble (archived mailing list content)
1282 questions
136
votes
3 answers

OSGi: What are the differences between Apache Felix and Apache Karaf?

Apache Karaf is a sub project of Apache Felix. It is defined as "a lightweight OSGi container". I don't understand when should I use the heavyweight and when to use the lightweight. Their site doesn't explain this too much.
GabiMe
  • 16,471
  • 25
  • 71
  • 106
68
votes
3 answers

What exactly is Apache Karaf?

I am a little bit confused about what Apache Karaf exactly is. Can you say that Apache Karaf includes, amongst other things: Apache Felix (which is an implementation of the OSGi 4.2 framework) Apache Aries (which is an implementation of the…
Frizz
  • 2,294
  • 6
  • 27
  • 42
32
votes
3 answers

Karaf / Maven - Unable to resolve: missing requirement osgi.wiring.package

I am unable to start a bundle in Karaf (version 3.0.1). The bundle is built using maven and it imports gson. I included gson in maven as required: com.google.code.gson gson
gc5
  • 8,206
  • 20
  • 76
  • 137
23
votes
4 answers

Apache Karaf vs. Servicemix

Is anyone using Karaf instead of Servicemix? If so, how did you come to this decision? I'm aware that Servicemix adds a layer of functionality around Karaf, just curious if Karaf is being used on its own and why...
Ben ODay
  • 19,926
  • 7
  • 41
  • 67
22
votes
1 answer

Using Spring Security on a JAX-RS bundle in Karaf

I have an OSGi bundle that uses JAX-RS to handle some REST services. This bundle is running in Karaf with Apache CXF. I need to apply basic http authentication to certain path/method combinations. I've been tinkering with Spring Security and it…
Jon7
  • 7,005
  • 2
  • 31
  • 39
19
votes
1 answer

How to work with frequent local snapshot bundle deployments on Karaf?

I decided to build an application on top of OSGI and Karaf - I really like this stuff. However, I'm struggling a bit with a daily deployment on my local, development machine. I mean.. I make a change and then I would like to test it on my local…
Michal Chudy
  • 1,843
  • 2
  • 20
  • 41
18
votes
1 answer

Apache Karaf root instance already running

I am new to apache karaf. When I start the apache karaf by executing bat file on my windows machine. It keeps giving me below error C:\karaf\apache-karaf-4.0.5\bin>karaf.bat There is a Root instance already running with name root and pid 1320 I…
Pranav Maniar
  • 1,435
  • 10
  • 20
16
votes
1 answer

What's the difference between features in Karaf and OBR

I am looking into ways to deploy and update an OSGI (Karaf, specifically) application. It seems that there are several options. One is to use The OSGi Bundle Repository (OBR), another is to use Features in Karaf, and the third is to use Karaf…
Oleksi
  • 12,583
  • 4
  • 51
  • 76
15
votes
4 answers

Efficient OSGi development workflow

I work on a product composed of many bundles running as features on top of karaf. Typically our developers work on one bundle at a time. Our normal development goes something like: code, compile, copy bundle to deploy folder, test. We've also found…
Jon7
  • 7,005
  • 2
  • 31
  • 39
14
votes
1 answer

OSGi and Transitive Dependencies

I’m using Felix Framework for my OSGi project, but I’ve came across a severe problem concerning third party dependencies. I’m using eclipse and maven-bundle-plugin to generate my bundles from the sources and the MANIFEST.MF from the POM.XML file. So…
PedroD
  • 4,310
  • 8
  • 38
  • 75
14
votes
2 answers

Tomcat and OSGi

I was wondering if it is possible to embed an OSGi container like Karaf inside a Tomcat instance. According to this SO question and a few others, it seems like its possible, but I can't seem to find any solid details on how to do this or what…
user1768830
14
votes
3 answers

Does OSGI JNDI allow coexistence with JNDI calls from non-OSGI code?

Chapter 126 of the OSGI Enterprise Release 5 specification mentions compatibility: "Support the traditional JNDI programming model used by Java SE and Java EE clients." and use of OSGI-unaware code: "Clients and JNDI Context providers that are…
mikewse
  • 437
  • 3
  • 11
13
votes
2 answers

How to setup a proxy for Apache Karaf

Simple one but unable to find anything solid on google. I am running Karaf and I am behind a proxy. I need to add some features to the container by executing the following command: features:addurl…
Namphibian
  • 11,288
  • 6
  • 43
  • 68
10
votes
6 answers

Kafka Producer - org.apache.kafka.common.serialization.StringSerializer could not be found

I have creating a simple Kafka Producer & Consumer.I am using kafka_2.11-0.9.0.0. Here is my Producer code. public class KafkaProducerTest { public static String topicName = "test-topic-2"; public static void main(String[] args) { // TODO…
10
votes
4 answers

Apache Camel conditional routing

I have a service which has two operations. RegisterUser UpdateUser I have a camel rout:
Paulius Matulionis
  • 21,481
  • 21
  • 97
  • 139
1
2 3
85 86