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
3
votes
2 answers

OSGi Karaf Scala UnsupportedAudioFileException

this is my first post here. I'm currently working on a simple http audio servlet in Scala on Apache-Karaf 3.0.0. I'm deploying it as a feature from inside some bundles, which I've built using a maven project. I'm using the 'javax.sound.sampled'…
TCooper
  • 31
  • 2
3
votes
1 answer

How to get all Karaf logs?

I'm using Apache Karaf 2.3.2 and there is installed my web application. How to get all karaf logs to display ones on web page.
user3469618
  • 31
  • 1
  • 2
3
votes
2 answers

ClassNotFoundException during OSGI bundle startup

I have a problem which I just cannot seem to solve on my own. If have an OSGI Bundle which uses blueprint for instantiation of the Objects which should be deployed to Karaf 3.0.0. The problem is, that ClassNotFoundExceptions keep bothering me,…
htipk
  • 109
  • 3
  • 10
3
votes
1 answer

Problems with getting Apache httpcomponents HttpClient 4.3.x OSGi bundle to work on Apache Karaf 2.3.x

When trying to install the httpclient-osgi 4.3.2 bundle (org.apache.httpcomponents:httpclient-osgi:bundle:4.3.2 as specified on the HC Site) in an Apache Karaf OSGi container, I am getting the following error report: karaf@root> install…
JanRavn
  • 1,002
  • 8
  • 12
2
votes
0 answers

Unable to initialize bean cxf?

currently i'm working on karaf prject, i have deployed 3 bundle module-data, module-service and module-jaxrs with Active status, then when i configured karaf feature to automaticaly deploy jar's the status of module-jaxrs became failure beacause…
Hamza Khadhri
  • 207
  • 4
  • 19
2
votes
1 answer

How to fix: "Status: GracePeriod Blueprint Missing dependencies: (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)"

I built a bundle using camel-archetype-blueprint. But after deploy to ServiceMix, it has not run and stayed in GracePeriod state. There is no errors in log:display. Calling bundle:diag results in: "Status: GracePeriod Blueprint Missing…
J.Doe
  • 21
  • 2
2
votes
1 answer

Global servlet exception handling in OSGI. How?

Is there a way to somehow globally handle unchecked exceptions in osgi (karaf) that were thrown in servlets? What I mean is something like in Spring, where there is @ControllerAdvice where you can specify methods for each exception type and handle…
Jakub Kvba
  • 501
  • 1
  • 6
  • 14
2
votes
0 answers

Unable to deploy a Karaf kar file containing a ComponentFactory OSGi declarative service

I'm having hard time to get a simple PoC application to work in Karaf 4.2.1 and 4.0.9 (ServiceMix - 7.0.1). The application tries to create services using a org.osgi.service.component.ComponentFactory but during deployment time via Karaf's feature…
2
votes
0 answers

NullPointer Exception in Apache Camel

In one of my projects, I had an issue, which is not always reproducible but time and again creates problems. I will explain the important parts here: This project is being deployed in Apache Karaf. First…
cooshal
  • 758
  • 8
  • 21
2
votes
2 answers

featuresBoot not working in Fuse 7 (Karaf 4.2)

I'm migrating our code from Fuse 6 to to Fuse 7 (Developer editions). We spin up lots of instances, so I need to automate the features loading like in Fuse 6, and it's not working. I add the following to the…
djb
  • 1,635
  • 3
  • 26
  • 49
2
votes
1 answer

Migrating karaf from Legacy deployment to cloud with active-standby deployment

Currently we have karaf deployment like following Its active-standby Standby is there with startlevel as 50 so failover would be fast as system bundles are at start status and user bundles are at install status As soon as active goes down standby…
ImranRazaKhan
  • 1,955
  • 5
  • 33
  • 74
2
votes
0 answers

Apache Karaf Keycloak integration

I've created my minimal custom Karaf distribution: mvn archetype:generate \ -DarchetypeGroupId=org.apache.karaf.archetypes \ -DarchetypeArtifactId=karaf-assembly-archetype \ -DarchetypeVersion=4.1.4 \ -DgroupId=my.karaf \ …
2
votes
0 answers

Error executing command: Unable to resolve root: missing requirement [root] osgi.identity

when i try to install apache cellar (4.0.2) to apache karaf i get the follow error message: Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=cellar-hazelcas t; type=karaf.feature;…
Maurizio Rizzo
  • 561
  • 2
  • 6
  • 11
2
votes
0 answers

Get IllegalArgumentException and NullPointerException from karaf 3.0.1 running config:property-append

I have to use Karaf 3.0.1 to run some legacy code that requires some changes. I don't often use Karaf directly, but I usually use a much more recent version. I installed Karaf 3.0.1 from the archive site, set a couple of properties (KARAF_OPTS to…
David M. Karr
  • 14,317
  • 20
  • 94
  • 199
2
votes
1 answer

Execute fabric commands from Karaf terminal using ansible

In ansible how can we execute fabric commands in Karaf terminal. Actually in ansible we will execute shell commands, but there are some commands I need to execute with Karaf terminal. Is there any possibility to do. in generic, how to open other…
sasi
  • 4,192
  • 4
  • 28
  • 47