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)
1353 questions
4
votes
0 answers

How to generate a features.xml for Karaf that take into consideration the already available features

So I have some simple webservices done using Camel and Apache CXF to run on a JBoss Fuse 6.3 Karaf installation. I want to automatically generate a features.xml to reduce the risks of mistakes and make it overall simpler, but I don't want to have a…
4
votes
1 answer

"Unable to resolve root:" for uninstalled feature in karaf

I'm using karaf server to deploy and install features.I had install one feature "test-feature" and then I removed it from repository. While activating some other feature it is giving me exception as- org.osgi.service.resolver.ResolutionException:…
nik
  • 1,464
  • 4
  • 18
  • 32
4
votes
1 answer

Override Require-Capability in Maven-Bundle-Plugin

My question is similar to this one but I am using the Maven bundle plugin to achieve the same end result. I am building a bundle that contains a persistence.xml file and I have found that the maven-bundle-plugin automatically generates the following…
D-Dᴙum
  • 7,689
  • 8
  • 58
  • 97
4
votes
5 answers

OSGi feature uninstall works, but bundles are still installed

EDIT: updated this question with latest information... I'm having issues running back-to-back "features:uninstall" commands for dependent features. OSGi responds back with "State change in progress...", but by accepting other requests, we run into…
Ben ODay
  • 20,784
  • 9
  • 45
  • 68
4
votes
1 answer

Stopping a Camel route from outside the route

We have a data processing application that runs on Karaf 2.4.3 with Camel 2.15.3. In this application, we have a bunch of routes that import data. We have a management view that lists these routes and where each route can be started. Those routes do…
maxdev
  • 2,491
  • 1
  • 25
  • 50
4
votes
1 answer

Apache Karaf feature prerequisite

Karaf 4.0.3 I have the following pseudo-feature:
stromvap
  • 213
  • 1
  • 7
4
votes
2 answers

How to connect with hdfs via kerberos from OSGI bundles

We are trying to connect with the HDFS using kerberos, from Karaf container by OSGI bundle. We have already installed the hadoop client in karaf using apache servicemix bundles. org.apache.servicemix.bundles
Desanth pv
  • 351
  • 1
  • 4
  • 13
4
votes
1 answer

Apache camel soap request type conversion error

I'm trying to send a soap request in apache camel running on an osgi enviroment (karaf). Until now I got this code public void start(BundleContext context) throws Exception { LOGGER.log(Level.INFO, "START"); MyRouteBuilder routeBuilder =…
Milla
  • 403
  • 1
  • 5
  • 22
4
votes
1 answer

ClassNotFoundException when using anonymous class in Pax Exam test method

I'm getting a ClassNotFoundException when using an anonymous class in a Pax Exam test method. My test class: package com.bssys.ebpp.paxexam; import static org.ops4j.pax.exam.CoreOptions.maven; import static…
Peter Schura
  • 130
  • 2
  • 15
4
votes
1 answer

client-certificate authentication on jetty (karaf)

I need to do client authentication using certificate on jetty server. I have done this on Tomcat using:
HimanshuR
  • 1,390
  • 5
  • 16
  • 35
4
votes
0 answers

RMI NotBoundException using pax-exam karaf container

I am trying to use pax-exam-container-karaf for testing an OSGi bundle. When running the test, the test "hangs" for a few minutes then "dies" with the following exception: java.lang.RuntimeException: Cannot get the remote bundle context at…
Steve Ebersole
  • 9,339
  • 2
  • 48
  • 46
4
votes
2 answers

karaf log level for a bundle

How do I set a different log level for a specific bundle from karaf> prompt? log:set TRACE sets TRACE level logging for all. I want INFO/DEBUG for ROOT and TRACE level logging for a specific bundle.
RRM
  • 2,495
  • 29
  • 46
4
votes
3 answers

CXF web services with OSGI and Karaf

I am trying to create a simple web service with OSGI and Karaf. Here are the steps I proceeded: download apache karaf - 3.0.3 start karaf, the execute the following commands feature:repo-add cxf 3.0. feature:install http cxf Then created the…
Andrei G
  • 660
  • 5
  • 12
  • 20
4
votes
2 answers

How can I validate xsd using apache camel?

I'm using apacheservicemix and I try to validate a xml document with apache camel. I have this route called students_route.xml :
Dianna
  • 402
  • 1
  • 4
  • 15
4
votes
2 answers

Camel jdbc: How can I reset datasource if mysql connection gets closed

We have developed a Camel bundle (deployed in Karaf), which is expected to pull data from MySQL every 24 hour and push it to S3. But as MySQL internally close the connection if it is idle for 8 hours, hence on next scheduled execution it starts…
Hussain Bohra
  • 985
  • 9
  • 15