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

Unable to import resources from src/main/resources of dependencies in osgi karaf

While migrating existing spring project to osgi karaf, we are facing the problem while import resource from the dependent bundle.Eg. Bundle A has the appcontxt-A.xml and Bundle B which has appcontext-B.xml. Here I am referring appcontxt-A.xml in…
PSTADU
  • 31
  • 5
0
votes
2 answers

Why does rollback not work with hibernate/osgi/karaf/JPA/mysql

I am using karaf 3.0.3 and the following Hibernate bundles: 161 | Active | 80 | 4.2.12.Final | hibernate-core 162 | Active | 80 | 4.2.12.Final | hibernate-entitymanager 172 | Active | 80 | 4.2.12.Final |…
david webber
  • 518
  • 1
  • 5
  • 13
0
votes
1 answer

In Apache Karaf, how can a KAR file instruct Karaf to install features?

I have a KAR file which I produced for Apache Karaf. Now to get my KAR to run in Karaf 2.4.1 I must manually type into Karaf console the following to allow declarative services to work. features:install scr Is there a way for my KAR file to…
Phil
  • 46,436
  • 33
  • 110
  • 175
0
votes
1 answer

Camel Proxy with Blueprint

I am trying to get a proxy working correctly with Blueprint inside OSGi (being done via Karaf), and being built via gradle. My blueprint file (names have been changed to protect the innocent):
Aaron Marcus
  • 153
  • 2
  • 13
0
votes
1 answer

Karaf custom appender starts with error: java.lang.NoClassDefFoundError: javax/crypto/SecretKey

I'd a custom log4j custom appender, it works in my testing environment like: C:\Log4jTest>java -cp . Log4jTest But when configuring it into Karaf, when starting it always throws…
0
votes
1 answer

How to remove a version of camel from Apache Karaf?

In Apache Karaf there is camel version 2.15.0, I wish to remove this version and install version 2.14.0. I believe this installed version 2.14.0 as when I do feature:list I see camel version 2.14.0 but I also see the 2.15.0 still there. How to make…
Phil
  • 46,436
  • 33
  • 110
  • 175
0
votes
1 answer

Unable to resolve 112.0: missing requirement [112.0] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.framework)(version>=1.8.0))

I am creating a simple Echo service bundle in apache Karaf 3.0.3, I have my Activator class, package com.company.activator; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; public class Activator implements…
Noushad
  • 384
  • 3
  • 11
0
votes
1 answer

Installing ActiveMQ in Karaf

I am trying to install ActiveMQ in Karaf. I did see one answer about an error and I did follow up with the answers for the question. I tried to add the "latest" version of ActiveMQ but no luck. karaf@root()> feature:install jms karaf@root()>…
Nirmal
  • 1,229
  • 1
  • 15
  • 31
0
votes
1 answer

Pax Exam how to start multiple containers

for a project i'm working on, we have the necessity to write PaxExam integration tests which run over multiple Karaf containers. The idea would be finding a way to extend/configure PaxExam to start-up a Karaf container (or more) and deploying there…
slux83
  • 686
  • 9
  • 20
0
votes
1 answer

Can or should a blueprint xml file be inside a Karaf KAR file?

In a Karaf .kar file, should the blueprint xml file be inside the jar contained in the kar file OR should it be within the kar file itself. Also, can a blueprint xml be inside a Karaf .kar file or must it be within the contained jar contained within…
Phil
  • 46,436
  • 33
  • 110
  • 175
0
votes
3 answers

How to get appdynamics to detect Apache Camel Business Transactions

has anybody gotten Appdynamics java agent to detect Apache Camel business transactions? Picking up files from a directory (polling) and then sending off to activemq. Another case is camel deployed on apache karaf, need to track outgoing http calls…
Theresia Sofia Snow
  • 599
  • 1
  • 5
  • 18
0
votes
1 answer

How to disable using rootLogger for cxf logging feature on karaf 3.0.3

I am using cxf logging feature in a osgi bundle within karaf 3.0.3. (cxf version is 3.0.3) In my blueprint I defined cxf logging feature
trayki
  • 1
  • 2
0
votes
1 answer

Issue with implementing ConditionalPermissionAdmin in Apache Karaf

I am facing issue while trying to implement a security policy management agent using ConditionalPermissionAdmin to check for custom permission I referred chapter-14 of OSGi in Action book. It was great help. Below is my setup and I am facing below…
0
votes
1 answer

Karaf 3.0.3: MalFormedURLException: Invalid syntax for instruction [Bundle-SymbolicName=

I am creating a simple Bundle in Eclipse Luna Java EE edition and am able to Run the bundle within Eclipse using Equinox framework. When I export this bundle (Export->Plug-in Development->Deployable Plug-ins and fragments) directly into…
0
votes
0 answers

Karaf 3.0.3 add system.properties --> karaf.lock.level, leads to java.lang.RuntimeException

When i add to apache-karaf-3.0.3\etc\system.properties the property karaf.lock.level=50 the following exception is thrown: java.lang.RuntimeException: Error installing bundle listed in startup.properties with url:…
jkp
  • 83
  • 1
  • 1
  • 4