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

Is it possible to have microservices with Spring boot

I'm confused about how I can use multiple micro services made with spring boot. When I read about Karaf, they always use Blueprint instead of Spring and I don't get the impression that it's possible to use it with Spring boot. Then I found Fabric8…
Marc
  • 16,170
  • 20
  • 76
  • 119
3
votes
0 answers

How to keep my web application active while redeploying a war or wab in karaf?

Currently i am working on a web project using GWT and i am using karaf as a container, i installed the karaf war feature and deployed my war successfully and it worked perfectly. But when ever i recompile my GWT project and create a new war to…
Ahmad Bawaneh
  • 1,014
  • 8
  • 23
3
votes
1 answer

Setting a heap memory above 4096MB on Karaf

I'm using a java application which requires a lot of memory, and I'd like to be able to set the maximum available memory for the JVM to a value above 4096MB, such as 8192MB. I tried using the following parameter: wrapper.java.maxmemory which seems…
slebyc
  • 33
  • 1
  • 4
3
votes
3 answers

Karaf - Kafka OSGI bundle - Producer issue

I am trying to create a simple bundle for Kafka producer in apache Karaf version 4.0.3 . Here is my Java code Properties props = new Properties(); props.put("bootstrap.servers", "localhost:9092"); props.put("acks", "all"); props.put("retries",…
user3619698
  • 125
  • 3
  • 13
3
votes
2 answers

Can i place third party jars in karaf (any specific folder) to resolve transitive dependencies?

I have various self made projects that have third party libraries dependencies. I am bundling them for OSGI container but unable to resolve deep dependencies in my projects. Now i am looking for karaf folder where i can place my libraries so bundles…
usman
  • 1,351
  • 5
  • 23
  • 47
3
votes
3 answers

How to install Hibernate 5 into Apache Karaf v4

I've installed Apache Karaf v4.03 and queried the list of available features for Hibernate, as listed below. Unfortunately, I am using Hibernate v5. hibernate | 3.3.2.GA | | Uninstalled | enterprise-4.0.3 …
Randy Leonard
  • 655
  • 7
  • 21
3
votes
3 answers

Accessing properties in Karaf cfg file from java?

I am using cm:property-placeholder in blueprint to load config file:
Viktor D
  • 136
  • 1
  • 7
3
votes
2 answers

command to clean apache-karaf cache

Is there any command to clean the karaf container? ie) I am trying to create a bundle and installing the bundle multiple times in apache-karaf-2.3.10. After certain number of tries karaf is not performing as expected. Sometimes names are not…
Shriram
  • 4,343
  • 8
  • 37
  • 64
3
votes
2 answers

Apache karaf how to easily install bundle from Maven repo

I am trying out Karaf and installed some bundle X. This bundle X complains about a missing requirement: Unresolved requirements ... osgi.wiring.package; (osgi.wiring.package=org.apache.commons.httpclient)] Hence, I tried to provide the…
user3612643
  • 5,096
  • 7
  • 34
  • 55
3
votes
2 answers

Activemq RedeliveryDelay from redeliveryPolicy is ignored

I got some issues with Camel and Activemq on a OSGI environment (Karaf). I would like that messages in the queue will be redelivered if it has failed! But i want to put a delay before retrying. I found the class org.apache.activemq.RedeliveryPolicy.…
j1704
  • 53
  • 5
3
votes
3 answers

Serving static files with jetty in karaf (outside of bundle)

we are struggling with the simple issue of serving static files from somewhere in the filesystem but outside of the web application, but we can't get it running. There are sever examples on how to do this, but none of them seem to work and so far we…
Florian
  • 53
  • 7
3
votes
2 answers

Unable to load cxf feature in Karaf 4.0

I am trying to use Karaf to host a REST service. I am using version 4.0.0 M2 (as I'm early on in my prototype). From what I have pieced together, in order to host a REST service, I can use Karaf Features to install the http and cxf features. What…
EdH
  • 4,918
  • 4
  • 24
  • 34
3
votes
2 answers

How to place bundle configuration/property file in /etc karaf folder

I want to deploy all the configuration files of the bundles deployed in karaf be placed in the karaf etc folder. I want that when the bundles conf files are change are notice by the karaf. I have a distribution which consist of several features an…
ender.an27
  • 703
  • 1
  • 13
  • 35
3
votes
2 answers

Apache Mesos + Docker + Karaf Cellar Cluster

I'm having a Mesos Cluster up and running (1 Master and 2 Slaves) with Marathon. I use docker as the container in Mesos/Marathon. I have a Karaf docker that will be launched in Marathon as a Cluster. I'm planning to use Cellar of Fabric as Karaf's…
Shan
  • 2,141
  • 2
  • 17
  • 32
3
votes
1 answer

org.apache.commons.discovery.DiscoveryException: No implementation defined for org.apache.commons.logging.LogFactory

I have a web service client running in my karaf when trying to start the osgi bundle the following error is thrown org.osgi.framework.BundleException: Activator start error in bundle wsdlclient [83]. at…
Kanmani
  • 131
  • 1
  • 2
  • 9
1 2
3
36 37