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

Karaf v4.0.8 : Multiple Blueprints cannot load configuration from same persistent-id

Update: It took a little time to realize for some reason but I see that configuration files are bundle PID specific and by trying to load the same cfg file in blueprint within two different bundles, I was creating a race condition. Make sure you use…
saycat
  • 11
  • 3
0
votes
2 answers

vertx hazelcast class serialization on OSGi karaf

I want to use vertx cluster with hazelcast on karaf. When I try to write messages to the bus (after cluster is formed) I am getting this serialization error. I was thinking about adding a class definition to hazelcast to tell it where to find the…
Gadi
  • 1,539
  • 22
  • 37
0
votes
2 answers

Error Using AWS Encryption Library in OSGI bundle

I'm trying to use AWS Encryption "DirectKmsMaterialProvider" in my karaf OSGI service but it is throwing classnotfound exception: Caused by: java.lang.ClassNotFoundException: com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMappingException…
0
votes
1 answer

how to sharing a karaf feature without a maven repository?

I need to share a feature with someone with whom I don't share a repository. Is it a good idea to just zip the maven artifact directory directory from my local maven repository and send it over ? the directory has feature xml pom and jars. Is there…
treefrog
  • 1,027
  • 1
  • 15
  • 30
0
votes
1 answer

Karaf unresolved constraint in bundle : !(version>=1.0.0)

I just added a new dependencie in my tata-core-provider-servlets pom.xml : "io.jsonwebtoken" in version "0.7.0". I can build my project in Eclipse but when I want to start the bundle in Karaf I have this error: Error executing command: Error…
Charly berthet
  • 1,178
  • 5
  • 15
  • 31
0
votes
1 answer

logging to ELK stack from karaf

I've been working on getting an ELK stack setup to have our logs centralized and easier to check, but I'm running into a bit of a snag. I've modified a few of our java programs to use the socket appender from log4j and it's worked great each time.…
Eric B
  • 217
  • 1
  • 14
0
votes
1 answer

Triggering jenkins build based on karaf feature metadata

We have a few aggregation jobs that produce distributables suitable for our delivery organizaton based on Apache Karaf feature files
0
votes
1 answer

How to manually create a Karaf kar file from features.xml and jars

I wish to manually create a Karaf kar file. Since I have a feature.xml file which works and jar files referenced by the feature.xml file I thought if I create a jar of this, rename it to filename.kar then it should work. However Karaf…
Phil
  • 46,436
  • 33
  • 110
  • 175
0
votes
1 answer

Feature / bundle list for JPA [2.1] for Karaf

I'm trying to migrate project from Eclipse OSGi runtime environment to Karaf, and I prepare install script for depenendecies. It is quite a hard way, for example, transaction API requires javax.enterprise.cdi-api, and this requires…
Danubian Sailor
  • 1
  • 38
  • 145
  • 223
0
votes
1 answer

How can I know what bundles I should not include in a Karaf features file?

In a Karaf features file if I include certain bundles then Karaf stops working correctly. How can I know what bundles I should not include in a features file? for example, if I added these bundles in the features file in Karaf on Windows, Karaf is…
Phil
  • 46,436
  • 33
  • 110
  • 175
0
votes
1 answer

Deploy Spring on Karaf error

I'm trying to run Spring on karaf. When I am trying to run this: public class SnifferActivator implements BundleActivator { @Override public void start(BundleContext bundleContext) throws Exception { …
VANILKA
  • 634
  • 1
  • 13
  • 32
0
votes
1 answer

Enable jmx monitor for EhCache in osgi env

I am working on OSGI based application which runs on Karaf. We use JPA and Hibernate to connect to mysql . Have enabled Level 2 cache using Ehcache. I want to enable JMX monitoring of Ehcache. I found an article which tells how to enable on JMX…
preetham
  • 36
  • 4
0
votes
1 answer

OSGi Spring Data JPA not working

I want to use Spring Data into my osgi karaf bundle.So i need to register jpa repository as osgi service and use it to another bundle. It is my configuration,
Sridhar
  • 89
  • 7
0
votes
1 answer

OSGi ClassNotFoundException while loading Database Driver

I know this is a common problem, but creating a new thread just in case if some one is stuck like me even after trying some of the options already explained in documentions. I have deployed an osgi bundle (Say Bundle B) which have all the code…
Sandy
  • 35
  • 1
  • 6
0
votes
1 answer

JBoss Fuse Specified service reference is null

I have two bundles, one is DB related and another one simple. DB bundle will export osgi service reference. Another one will get the service reference. It is working fine when installing one by one. The service reference is null when starting the…
Sridhar
  • 89
  • 7