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

How Karaf and Fabric containers are related?

I have installed jboss-fuse-karaf-6.3.0 and created a project in developer studio. I'm not able to figure out certain concepts around it. In Apache Fuse how Karaf and Fabric containers are related ? What I understood is Karaf provides runtime…
Habin
  • 792
  • 1
  • 11
  • 21
0
votes
0 answers

Install Hawtio with Apache Karaf

I try to install Hawtio in Karaf by adding this line in karaf console: feature:repo-add hawtio 1.4.67 But i got this message error : Error executing cammand: java.lang.NoClassDefFoundError: com/sun/xml/bind/unmarshaller/DOMScanner Haw can i fix…
zied123456
  • 71
  • 10
0
votes
1 answer

How do deploy third party bundles that depend on sun internal classes in karaf-with felix?

I am trying to generate a feature.xml with a third party bundle. When I attempt to install this feature, this third party bundle indicates that it needs sun.reflect to be resolved. I am using karaf maven plugin features generator goal this is my…
treefrog
  • 1,027
  • 1
  • 15
  • 30
0
votes
1 answer

feature-install results in missing requirement message in karaf 4.0.7

This is a simple feature.xml(v1.4.0) and all I did was specify feature:install my-feature Hence the error: Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=my-feature; type=karaf.feature;…
treefrog
  • 1,027
  • 1
  • 15
  • 30
0
votes
1 answer

What is the recommended usage pattern for karaf-maven-plugin?

I have a bunch of java classes and a bundle activator class that I need to deploy to karaf. I see that the karat-maven-plugin has kar packaging and karaf-assembly. Also it generates features.xml I can generate features.xml directly and it generates…
treefrog
  • 1,027
  • 1
  • 15
  • 30
0
votes
1 answer

How to append to properties in config.properties in Karaf in the /etc/config.properties file?

In Karaf there are two files in /etc/config, they are config.properties and custom.properties. As I read in config.properties I should override values in custom.properties. I wish to append to the org.osgi.framework.system.packages.extra…
Phil
  • 46,436
  • 33
  • 110
  • 175
0
votes
1 answer

What maven plugin should be used for generating karaf features.xml?

google tells me about a couple of different plugins. features-maven-plugin, karaf-maven-plugin. I am not sure which of these should be used and what versions. Is this dependent on the karaf version ?
treefrog
  • 1,027
  • 1
  • 15
  • 30
0
votes
1 answer

Need help loading Script Engine into Karaf

Has anyone had any luck loading script engines into Karaf. I've seen some old links regarding loading script engines into OSGi containers: - https://devnotesblog.wordpress.com/2011/09/07/scripting-using-jsr-223-in-an-osgi-environment/ - Is OSGi…
mkwyche
  • 183
  • 2
  • 6
0
votes
0 answers

How to send monitoring data of Apache Karaf Decanter to a remote JM Broker?

I'm using Apache Karaf for some projects and I would like to collect several monitoring data. I saw that it is possible through the Apache Karaf Decanter and I deployed a working solution with Elasticsearch as a data appender. However, now I would…
Ugo Giordano
  • 373
  • 3
  • 11
0
votes
1 answer

required or requisite jaas LDAPLoginModule not throwing FailedLoginException when user fails authentication

TL;DR: Why does the LDAPLoginModule (apparently) not throw a FailedLoginException when a user fails to be authenticated? I have overridden the default "karaf" jaas realm in jboss fuse 6.2.[0|1]. My configuration has 2 modules: an instance of…
Hans.Loven.work
  • 108
  • 1
  • 6
0
votes
1 answer

Package javax.smartcardio as an OSGI Bundle

I am building an Karaf OSGI application which uses javax.smartcardio library. when I deploy it, it is giving me the following error: Unable to resolve 249.0: missing requirement [249.0] osgi.wiring.package; (osgi.wiring.package=javax.smartcardio) …
0
votes
1 answer

StartupFeatures with karaf-maven-plugin

I'm trying to create my own karaf distribution, right now i'm able to assembly my features without any problem, but i'm not being able to register them to the startup.properties using the recommended tag. foo This…
Cλstor
  • 445
  • 3
  • 11
0
votes
0 answers
0
votes
1 answer

What exactly will PaxExam do if multiple methods are annotated with @Configuration?

The PaxExam documentation says the following: The test class may contain one or more methods annotated by @Configuration, returning a list of options for configuring the test container. If there is more than one configuration method, each test…
David M. Karr
  • 14,317
  • 20
  • 94
  • 199
0
votes
2 answers

Karaf camel:route-list shows only Blueprint routes, not Java routes

I'm busy coming to grips with Camel and Karaf. I've built a project with two bundles: Bundle A contains a Blueprint Camel route Bundle B contains a pure Java route I followed the instructions from Jamie Goodyear's Karaf Cookbook Both routes are…
Greg Fullard
  • 365
  • 3
  • 15