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
0
votes
1 answer

None of the policy alternatives can be satisfied

I have a problem with setting up basic authentication to my OSGi bundle. Bundle is deployed in Apache Karaf. Here I have policy statement in my WSDL:
Paulius Matulionis
  • 23,085
  • 22
  • 103
  • 143
0
votes
1 answer

Apache Ace feature for Apache Karaf

I would like to install Apache Ace on an Apache Karaf instance but I can't find the feature needed. I can see the feature on the trunk but not inside the released distributions. Where can I find the features.xml required to install the Ace feature…
manash
  • 6,985
  • 12
  • 65
  • 125
0
votes
2 answers

Redirecting INTO a Java program?

In a project, I'm trying to set up an automated build system for Apache Karaf (there are several commands I need to run in Karaf to set up a working environment on a fresh install). Karaf contains a batch/script file that sets several parameters,…
Cornstalks
  • 37,137
  • 18
  • 79
  • 144
0
votes
1 answer

Pax Exam Karaf: mavenBundle configuration option works, bundle with file: URL doesn't

This works with Pax Exam native container (Pax Exam 2.3.1), but not with Pax Exam Karaf container (0.5.2) for me: @Configuration public Option[] config() { return options( // karafDistributionConfiguration() //…
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
0
votes
1 answer

Issue with STOMP on ActiveMQ being used on OSGI (KARAF)

I have installed Karaf (2.2.5) on Ubuntu Linux 10.04. Installed ActiveMQ as a feature on top of Karaf. Created a custom broker with stomp connector. Now when I try to connect to this stomp broker from Java client, I get…
-1
votes
1 answer

Importing Apache Commons dbcp2 in Apache Karaf

I have imported my Apache Camel blueprint xml bundle into Apache Karaf. When I try to start the bundle, it is complaining about dbcp2. I've tried to bundle it into my Apache Karaf but still no luck. The error I am getting: Error executing command:…
Pouissante
  • 56
  • 1
  • 5
  • 25
-1
votes
1 answer

How can I script an update to a servicemix system bundle using karaf's client.bat?

How can I script out a update to a servicemix system bundle using karaf's client.bat? When I try to run ./client.bat "update 111" -p through powershell I get a java.lang.NullPointerException. I believe it is because updating this bundle…
-1
votes
2 answers

Example on using Apache Karaf etc/.cfg files to store custom properties and use them in a Camel Java DSL route

I'd like to use custom properties defined in a custom config file under $KARAF_HOME/etc/ and use those properties in my Apache Camel Java DSL route. Could someone help me with detailed steps with an example? At Karaf end, configuration details are…
-1
votes
1 answer

Error in production: "GC overhead limit exceeded"

I need an hint or maybe an tool,to try to get the optimization of 80.000 records. Most importantly of this issue is to try to understand an manner of simulating ,because the problem is getting in production and i dont have ,or better saying till now…
E.jman21
  • 1
  • 1
  • 3
-1
votes
2 answers

Not able to configure JMS 2.0, ActiveMQ 5.x, and Karaf

I have been trying to setup pax-jms with ActiveMQ in Apache karaf. Following are the respective versions, that I have installed: activemq-osgi: 5.15.3 OPS4J Pax JMS * : 1.0.3 Karaf: 4.2.0 JMS API: 2.0.1 These are the features that I had…
cooshal
  • 758
  • 8
  • 21
-1
votes
1 answer

Do we have any (Eclipse ) opensource IDE support for Karaf +Camel Development

We are using Build: Gradle OSGI: Karaf + felix Frameworks: Camel, Bleuprint We are facing lot of issues with Camel+Blueprint+Karaf Development. Can any body suggest how to run from eclipse ? Do we have any plugins for Eclipse? how to run…
Slok
  • 576
  • 1
  • 12
  • 27
-1
votes
1 answer

Karaf jdbc - jdbc:query: too many arguments specified

I have a problem with the Karaf jdbc:query command. When I execute the following: karaf@root()> jdbc:query mysql-ds "select * from test" The console always returns: Error executing command jdbc:query: too many arguments specified. Actually, I'm…
-1
votes
1 answer

How can I get entityManager in BaseDao in Karaf 4.0.5?

I use karaf 4.0.5 and hibernate 4.2.15 And I want get EntityManager in my BaseDao class. If I tried get EntityManager in my service
user5620472
  • 2,722
  • 8
  • 44
  • 97
-1
votes
1 answer

bundles get installed on both Karaf instances

I want to make a "communication" between two Karaf instances and I decided to use Karaf Cellar in order to do that. I, now, have two bundles each one is installed on a Karaf container. They are identified by an address and port provided in…
-1
votes
1 answer

How to get the jms quickstart packaged with JBoss-Fuse-6.1.0.redhat-355 to work?

The Karaf output is as under : JBossFuse:karaf@root> features:addurl mvn:org.jboss.quickstarts.fuse/jms/6.1.0.redhat-355/xml/features JBossFuse:karaf@root> features:install quickstart-jms [Fatal Error] :6:3: The element type "hr" must be terminated…
ZeroGraviti
  • 1,047
  • 2
  • 12
  • 28