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
0 answers

Not able to record events for karaf service using Java flight recorder(JFR) in JMC

I'm getting message like "this flight recording has no recording settings events" while recording events for karaf service. Can any one please help me for this issue. I put the setting in service script under Karaf Arugs: like …
Brahmakumar M
  • 1,009
  • 1
  • 8
  • 6
0
votes
2 answers

Karaf cannot install war feature

Recently I need to deploy something on Karaf. I use Karaf 3.0.2 and event try 4.0.0M1. Both are not able to install war feature. Once I type feature:install war in console after Karaf start-up. 3.0.2 gives me: Error executing command: Error…
crazy_develerper
  • 107
  • 1
  • 1
  • 8
0
votes
1 answer

Create date in karaf shell

I'm trying to create a date object from a long (timestamp) in a karaf shell (karaf version=2.4) It should be as simple as new java.util.Date 0 but it returns Error executing command: Error when instantiating object of class java.util.Date The…
carlTEJ
  • 35
  • 3
0
votes
1 answer

Command not found: dev:watch

According to the Karaf 3.0.3 user guide there is the dev:watch command: The following command: karaf@root> dev:watch * will monitore all bundles that have a location matching mvn:* and having '-SNAPSHOT' in their URL. When I enter dev:watch *,…
kapex
  • 28,903
  • 6
  • 107
  • 121
0
votes
1 answer

What is the difference between karaf running as a service via wrapper and running from console as same user?

I'm running a set of applications on Karaf 3.0.1, on Windows Server 2008. I'm running into a problem with a 3rd party library one of my services depends on. The karaf installation is running as a dedicated Active Directory service user account. …
Peter Tirrell
  • 2,962
  • 4
  • 29
  • 52
0
votes
1 answer

Apache Karaf Runs Slower on Intel Board

We are working on a IoT project, where we deployed our bundles first on a windows machine followed by a linux machine. This works fine. Now we are using Intel Socx1000 board (embedded). We have deployed the same bundles along with Karaf in that…
0
votes
2 answers

Apache Karaf dependency on network

I am using Apache Karaf 2.3.0, and deploying my bundles as Activator bundles. At some place ver rarely I face a problem where my karaf does not start up the bundles. But I see that when i start the container on such boxes with the network(on my…
Akhil A
  • 1
  • 1
0
votes
0 answers

There is no Session Expired notification in Vaadin 7.3.2

I'm using Vaadin 7.3.2 in OSGI, all vaadin bundles are active. When server is off, there is no session expired notification in page. so could you help me please...
eabyshev
  • 703
  • 2
  • 8
  • 16
0
votes
1 answer

vaadin-server, vaadin-shared bundles are installed in OSGI (karaf 3.0.2)

I'm struggling with this problem. I have vaadin 7 in OSGI (karaf 3.0.2). In list of installed bundles vaadin-server and vaadin-shared status is INSTALLED. although other bundles of Vaadin:…
eabyshev
  • 703
  • 2
  • 8
  • 16
0
votes
1 answer

Karaf and Eclipse Equinox OSGI services

In a series of blogs on Java webframeworks, which should play nicely in OSGI, I am taking a close look at Karaf. My test case is pretty straight-forward, deploy a Servlet on Karaf. There are different HTTPService implementations for OSGI, I am…
Christophe Bouhier
  • 224
  • 1
  • 5
  • 14
0
votes
1 answer

Karaf: how to configure virtual hosts

How to set virtual hosts in Karaf? Karaf has embedded Jetty, so i made context.xml with below content and have put this to /etc folder: /
WildDev
  • 2,250
  • 5
  • 35
  • 67
0
votes
1 answer

Python pexpect - spawn takes time to establish

Does pexpect.spawn take time to return to its calling Python script? I'm writing a script to manage a Karaf container, using pexpect to inject commands. If Karaf isn't running, I've noticed that I cannot always reliably use isalive() unless I…
Jeremy Gooch
  • 939
  • 4
  • 16
  • 28
0
votes
1 answer

Quartz in Karaf

How can I access my OSGi services in a quartz trigger? Below, my service companyDao is null when the timer is triggered. Do I need to give the bundle context to the scheduler or the job? if so, how? @Service @Component(immediate = true, specVersion…
user2641043
  • 405
  • 3
  • 12
0
votes
1 answer

Block starting of OSGi service until property appears

Lets say I have a bundle with just the following class: class FullName { String firstName String lastName public FullName (String firstName, String lastName){ this.firstName = firstName; this.lastName = lastName; } } I will…
The Governor
  • 1,152
  • 1
  • 12
  • 28
0
votes
2 answers

Get relative path to a folder inside OSGI Bundle

I've developed a sample OSGI bundle and deployed it into Karaf, and the bundle contains a folder on the same level as the source. My class needs to load data from this folder, but I got an error each time: java.lang.IllegalArgumentException: No…
issamux
  • 1,336
  • 1
  • 19
  • 35