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

Zero public exponent in RSA

I am developing an OSGi plugin (bundle) which performs encryption on Strings. The Strings themselves are encrypted using AES. I am encrypting the AES key with RSA. All works perfectly in my unit tests. When I deploy the plugin into Karaf (haven't…
Phasmid
  • 923
  • 7
  • 19
0
votes
0 answers

Fabric8 container-create-child always times out

I have been testing fabric8-karaf-1.1.0.CR5 on both macosx and linux. I would like to deploy a java container with a camel application under development. I have creates mvn archetypes and deployed quickstart projects for both spring boot webmvc and…
eceppda
  • 237
  • 2
  • 7
0
votes
0 answers

jbpm6 - osgi/karaf - running externalized process - Error importing

I am trying to load an external bmpn2 file and run it in Apache Karaf environment. Here's the bmpn2 file
sanbhat
  • 17,522
  • 6
  • 48
  • 64
0
votes
1 answer

How to create configuration for Managed Service Factory with Karaf features?

I'm trying to create a simple configuration for Amdatu's MongoDB component. When I create a file named org.amdatu.mongo-kairos.cfg with following line inside dbName=kairos and put it into the deploy folder - everything works OK. However, when I'm…
Michal Chudy
  • 1,883
  • 2
  • 21
  • 41
0
votes
1 answer

Karaf - How to check whether the application is running?

I have an application build using OSGI with a maven build converted the application into jar The jar i've installed by placing it in deploy folder of karaf When I use list command it shows me that the application is Active , Its a service…
Kanmani
  • 131
  • 1
  • 2
  • 9
0
votes
2 answers

Karaf 3.0.x config:update command does not create .cfg file in /etc

I am using karaf 3.0.1 with my bundle (https://github.com/johanlelan/camel-cxfrs-blueprint-example). I want to manage properties at runtime but I see that config:update does not create file on /etc, why?
Johan Le Lan
  • 47
  • 1
  • 8
0
votes
2 answers

Karaf out of memory error

I am using Karaf 2.3.0 for deploying my OSGi activator bundles and exposing my remote services as rest enabled. Thigs are working fine. Only once I got an out of memory error on the karaf logs (attaching the logs), after which I was not able to…
0
votes
1 answer

I get 404 Not found | Install war project in Karaf 3 from userguide

I can install a war but not to test it , why ???? From Karaf tuto I have done : karaf@root()> bundle:install -s "webbundle:http://tomcat.apache.org/tomcat-7.0-doc/appdev/sample/sample.war?Bundle-SymbolicName=tomcat-sample&Web-ContextPath=/sample"…
user3817924
  • 11
  • 1
  • 3
0
votes
1 answer

Karaf missing classes in bundles

I am deploying httpclient-4.3.4.jar in deploy folder of karaf. In terminal when I use command find-class HttpClients, nothing is getting listed. When use keyword find-class HttpClient, I get only follwing classes loaded for httpclient bundle. Since…
om39a
  • 1,406
  • 4
  • 20
  • 39
0
votes
2 answers

OSGI JavaMail Service

I have problems to declare an e-mail session as an OSGI service. I am using Apache Karaf 3.0.1 as container, Apache Aries for the blueprint JPA and JNDI enhancement.
perbellinio
  • 682
  • 5
  • 14
0
votes
1 answer

Trouble getting 3rd party jar as OSGI bundle in Karaf

I have a 3rd party jar, no source, that is used to connect to a proprietary database system. I believe the jar is actually an Eclipse plugin; it was taken from one of the lib folders of the Eclipse-based editor for that system. Anyway, I'm trying…
Peter Tirrell
  • 2,962
  • 4
  • 29
  • 52
0
votes
0 answers

karaf 3.0.1 not starting up

I'm trying to start karaf 3.0.1 in a solaris box (without internet) but getting the following error: karaf: Ignoring predefined value for KARAF_HOME Could not resolve mvn:org.eclipse/org.eclipse.osgi/3.8.2.v20130124-134944 and in karaf.log: Jun…
Rima
  • 457
  • 2
  • 7
  • 18
0
votes
2 answers

Apache Camel, DirectConsumerNotAvailableException while runing cxf on fabric8(karaf), though local runs fine

I have two routs into two contexts first one gets the http (jetty) request and sends it to direct:/{{sms.endpoint.name}} and the second one gets the pojo from cxf cxf:bean:smsCxfEndpoint and works with it.. The cxf endpoint looks…
soul away
  • 7
  • 1
  • 4
0
votes
1 answer

SessionFactory loads wrong config file in karaf

I'm trying to create 3 bundles: BundleA: use unmanaged-native hibernate to access database 1. BundleB: also use unmanaged-native hibernate but access database 2. BundleC: imports BundleA and BundleB. I expect that bundleA and bundleB will get…
0
votes
0 answers

Package dependency issues in Apache Karaf 3.x with Spring 3.2.x Spring-dm 1.2.1

I am trying to deploy a camel bundle in karaf 3.0.1 which uses spring dm. When bundle is deployed, it is not getting resolved due to spring package dependency. Following are more details, please help me to resolve this issue. Do I need to revert…
Dilunika
  • 163
  • 3
  • 10