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

Failed to create route due to: No component found with scheme: activemq

Servicemix expert need some help. I have a web service deployed in apache servicemix. This web service I hit from web application that is deploying on tomcat on same machine. I want to send custom message from web service to activemq:queue. web…
ved
  • 909
  • 2
  • 17
  • 43
4
votes
1 answer

Installing a feature in servicemix

I am running Apache servicemix 4.5.2. I want to install a feature, i.e. a jar file. The feature I wanted is jtidy. The pom dependence is: jtidy jtidy
Luixv
  • 8,590
  • 21
  • 84
  • 121
4
votes
1 answer

Complete thread dumps in Karaf

When I use dev:create-dump, the thread stacks in the dump are incomplete. Is it possible to configure Karaf to: dump full stacks? detect deadlocks?
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
4
votes
1 answer

The way around using rpc/encoded style in CXF

I know that CXF does not support the rpc/encoded WSDL style and I am looking for a solution to get the way around this. I have to do the implementation of rpc/encoded style web service, the problem is that the service has to be deployed in Apache…
Paulius Matulionis
  • 23,085
  • 22
  • 103
  • 143
4
votes
2 answers

OSGi and Hibernate - not suitable driver

I got the following situation. I'm using Apache Felix as OSGi Service implementation and Apache Karaf as OSGi container. There is a bundle in karaf which should save some data via hibernate into a database, but I always get a SQLException: No…
Mirco
  • 2,940
  • 5
  • 34
  • 57
4
votes
2 answers

Moxy error with Karaf

I'm using MOXy under fuse ESB (based on karaf), I converted org.eclipse.persistence.jar to a bundle, I deployed this bundle under fuse ESB and I got this error Error : "org.apache.cxf.interceptor.Fault: property "eclipselink-oxm-xml" is not…
eman
  • 167
  • 3
  • 11
3
votes
1 answer

Apache Karaf and Apache Commons Bundles

Right so some really noob(this is my first deployment of a bundle to Karaf) questions for the Apache Karaf folks out there. I am deploying a bundle that uses a lot of the org.apache.commons.* bundles. When I deployed my bundle and then try to start…
Namphibian
  • 12,046
  • 7
  • 46
  • 76
3
votes
2 answers

How to make logback (a logging library) work with ServiceMix (Karaf + ops4j logging)

I am trying to make logback works with ServiceMix 4.3.0 (karaf 2.1.3) but not successful. Is there anybody already successfully make it work? (with any version of serviceMix + slf4j + logback) Here is my situation. I am able to make (Logback + slf4j…
David
  • 3,538
  • 9
  • 39
  • 50
3
votes
1 answer

How to start a bundle on boot in apache karaf

I want to start Camel and ActiveMQ during boot when I start karaf, What i've found is the etc/org.apache.karaf.features.cfg which lists features that should be started during boot.…
Tomas F
  • 7,226
  • 6
  • 27
  • 36
3
votes
4 answers

How do I programatically invoke a Felix/Karaf shell command?

I want to automatically invoke the Karaf "dev:watch" command if I detect that I'm running in a dev environment. I've considered adding dev:watch * directly to etc/shell.init.script but I don't want it to run unconditionally. So, I'm considering…
Chris Dolan
  • 8,905
  • 2
  • 35
  • 73
3
votes
3 answers

How do you debug CXF endpoint publishing?

Given the "cxf-osgi" example from fuse source's apache-servicemix-4.4.1-fuse-00-08, built with maven 3.0.3, when deploying it to apache karaf 2.2.4 and CXF 2.4.3 the web service is never published and never visible to the CXF servlet…
chugadie
  • 2,786
  • 1
  • 24
  • 33
3
votes
2 answers

OSGi SOAP web service client

I am trying to get a web service client working from OSGi, I am using Felix as my container. So far I have tried using Apache CXF. This would not work with my web service as it is RPC/encoded and not supported when I try to generate stubs. I…
broschb
  • 4,976
  • 4
  • 35
  • 52
3
votes
2 answers

NoClassDefFoundError in OSGi although it is exported and imported

I tried to create a basic virtual reality IDE based on Karaf. I have 3 maven-projects: VRServer who connect to a native-component for rendering. VR Component Toolkit for VR-HMI-Widgets (Having a VRFrame who extends from VRComponent) as a…
Grim
  • 1,938
  • 10
  • 56
  • 123
3
votes
1 answer

kubernetes-Ingress resource is not working as expected to expose 2 apps using subdomains

I want to have 2 apps running on kubernetes using a ingress resource to point to each app in the same port. I should be able to access app1 version in app1.localhost:8181/cxf, and app2 version in app2.localhost:8181/cxf Im using docker with…
3
votes
1 answer

Apache Karaf (4.2.6) shell: Unable to install webconsole

I'm trying to do a feature:install webconsole in Karaf, version 4.2.6, but on every machine I try setting Karaf up on, I get this error message: Error executing command: Error: Error downloading…