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
4
votes
2 answers

Unresolved requirement: osgi.component

I'm trying to develop onto Karaf an OSGi WAB containing a REST API and a call from a custom-made service. However, for some weird reason, the OSGi framework complains about an unsatisfied capability, osgi.component. I would like to know: How can I…
Koldar
  • 1,317
  • 15
  • 35
4
votes
1 answer

Apache Karaf feature prerequisite

Karaf 4.0.3 I have the following pseudo-feature:
stromvap
  • 213
  • 1
  • 7
4
votes
0 answers

RMI NotBoundException using pax-exam karaf container

I am trying to use pax-exam-container-karaf for testing an OSGi bundle. When running the test, the test "hangs" for a few minutes then "dies" with the following exception: java.lang.RuntimeException: Cannot get the remote bundle context at…
Steve Ebersole
  • 9,339
  • 2
  • 48
  • 46
4
votes
2 answers

karaf log level for a bundle

How do I set a different log level for a specific bundle from karaf> prompt? log:set TRACE sets TRACE level logging for all. I want INFO/DEBUG for ROOT and TRACE level logging for a specific bundle.
RRM
  • 2,495
  • 29
  • 46
4
votes
1 answer

Maven + ODL osgi.wiring.package javax

I am currently working on an application on top of OpenDaylight. I want to use an ObjectDB. But I can not activate my bundle. opendaylight-user@root>bundle:diag ntf-impl (171) -------------- Status: Installed Unsatisfied…
TheBjoern
  • 45
  • 6
3
votes
0 answers

Karaf, ServiceMix weird instanceof behaviour

The JAXB RI source code contains: public void setProperty(String name, Object value) throws PropertyException { if( PREFIX_MAPPER.equals(name) ) { if(!(value instanceof NamespacePrefixMapper)) throw new PropertyException( …
JasonPlutext
  • 15,352
  • 4
  • 44
  • 84
3
votes
1 answer

Unable to login karaf after the exception: Caused by: java.lang.NoClassDefFoundError: Could not initialize class javax.xml.bind.DatatypeConverterImpl

We have created a karaf instance on which i am writing a sample bundle and successfully deployed. I am getting Runtime Error which is not reproducible. Strange thing is after this error i am not able to login to karaf which is asking credentials to…
Shriram
  • 4,343
  • 8
  • 37
  • 64
3
votes
1 answer

OpenDaylight Oxygen Deploy app built from opendaylight-startup-archetype

OpenDaylight Oxygen Maven 3.3.9 Ubuntu 16.04 karaf 4 ~/.m2/settings.xml - cp -n ~/.m2/settings.xml{,.orig} ; wget -q -O - https://raw.githubusercontent.com/opendaylight/odlparent/master/settings.xml > ~/.m2/settings.xml Process used to create…
Bobs Burgers
  • 761
  • 1
  • 5
  • 26
3
votes
3 answers

Not able to install the GUI package(odl-dlux-all) related to OpenDaylight Carbon version

I am not able to install the package odl-dlux-all on the Ubuntu 16.04 machine. Following is the error message Error executing command: Can't install feature odl-dlux-all/0.0.0: null VM : Ubuntu 16.04 Opendaylight version : Carbon What is the…
Prashant
  • 1,144
  • 8
  • 17
  • 28
3
votes
1 answer

Valid ways to interrupt an OSGi component from being activated

I have an OSGi component: @Component(immediate=true) public class SomeComponent implements SomeInterface {...} Note that the component is immediate. Also, since the component class is implementing an interface, I understand that a service will be…
medalik
  • 139
  • 1
  • 10
3
votes
0 answers

Karaf - Unable to resolve: missing requirement (osgi.wiring.package; (&(osgi.wiring.package=javax.jms)(version>=2.0.0)(!(version>=3.0.0)))])

I'm trying to install bundle on Karaf but but I keep getting the following error: Caused by: org.osgi.framework.BundleException: Unable to resolve axsjmsblueprintcaller [56](R 56.0): missing requirement [axsjmsblueprintcaller [56](R 56.0)]…
Teppei14
  • 83
  • 1
  • 3
  • 8
3
votes
1 answer

PAX Exam - Class not found error

I'm working on PAX integration tests for our project and I'm facing few issues with regards to class loading. I have deployed few bundles in PAX (used karaf container). Once the karaf is up, I could see my bundles and services are up and active.…
Rajasekar
  • 31
  • 1
3
votes
1 answer

How to share cxf:bus over multiple osgi bundles on karaf?

In my application, I have 2 bundles. Both are using cxf to create Restful server. In those bundles I load cxf via blueprint. I define cxf:bus on those bundles with the same id to expect that two bundle will share the same bus instance then I can…
user3444693
  • 464
  • 4
  • 7
3
votes
1 answer

What is the point of a features.xml if I have to install the bundles in it manually?

I have a features.xml with a few bundles listed. But they all need to be installed apparently. So all that the features.xml does is gather the dependencies in one spot.... Unless I am horribly mistaken. In which case how does one resolve a situation…
treefrog
  • 1,027
  • 1
  • 15
  • 30
3
votes
0 answers

Classloader castException with karaf CXF using blueprint

I have a problem to launch my bundle in karaf. I have installed the features cxf and http. But when i try to install my bundle in Karaf, i have this Exception : 2016-09-18 17:07:49,157 | ERROR | nsole user karaf | BlueprintContainerImpl |…
CoDel
  • 173
  • 2
  • 15
1
2
3
36 37