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

ClassFormatError when defining class in OSGI environment

I'm currently having problems with a little project I'm working on. In this project I'm trying to dynamically create Classes from a configuration String and load it into the JVM. When I do this in a "normal" environment (Unit Tests) everything…
htipk
  • 109
  • 3
  • 10
0
votes
1 answer

How to deploy jms jar to Karaf

I'm getting this error with Oracle jmscommon.jar but I this question could easily be extended to other non-OSGI bundle jars. According…
Ya.
  • 1,671
  • 4
  • 27
  • 53
0
votes
0 answers

Json-Schema-Validator in OSGI Environment

I was trying to use Json-schema-Validator in osgi (Equinox) environment and it was not successful. The bundles were up and running. I'm getting ClassDefNotFOundException. Exception in thread "[ACCESS_RUNTIME] ActivityInitialize-Thread-1" …
0
votes
1 answer

Error after converting org.pbjar library to OSGi bundle

I'm trying to convert org.pbjar.jxlayer library to an OSGi bundle, I already succeeded in that but when I try to install it in Karaf container, the container claims that there is a missing requirement needed by this bundle: Unable to resolve 312.0:…
user2075227
  • 7
  • 2
  • 4
0
votes
1 answer

Single OSGi bundle across multiple Cellar nodes

One basic question regarding OSGi. Can a single OSGi bundle be distributed across multiple Cellar nodes ? Say if I have an OSGi bundle created with Actors (Akka) can I distribute the bundle across multiple nodes so that I can leverage further on the…
user3364247
  • 1,477
  • 3
  • 14
  • 24
0
votes
1 answer

Apache Karaf stop order problems

we have a problem with the stopping sequece of Karaf ... is there any sequence? :) Like reverse order for my bundles start-level ... How can I control the start or the stop sequence of Karaf ... not programmatically, but over the config. My…
pan40
  • 317
  • 1
  • 5
  • 15
0
votes
1 answer

Exception while trying to lazy loading entities with Karaf container

I'm trying to load data from database using lazy loading method but an exception occurs, I'm using Karaf 3.0.0, Hibernate 4.2.2.Final and JPA 2. I tried also to open a transaction before making the request but the problem persists: EntityManager em…
user2075227
  • 7
  • 2
  • 4
0
votes
1 answer

connecting to PostgreSQL from OSGi application deployed in Karaf container

I'm using Hibernate to connect to PostgreSQL from a Karaf 2.3.4 container, when i deploy my bundle there is an exception saying javax.naming.NameNotFoundException osgi:service/javax.sql.DataSource/"(osgi.jndi.service.name=jdbc/postgresds). Here is…
user2075227
  • 7
  • 2
  • 4
0
votes
2 answers

Exception with Hibernate(4.2.7) JPA in Karaf(3.0) with Aries

I am using Karaf 3.0.0, Hibernate 4.2.7.Final, container-managed jpa. The persistence bundle moves to GracePeriod state on starting and then goes to Failure. Below is the error from Karaf logs when starting the bundle. 2014-04-07 16:46:01,716 |…
Anoop
  • 813
  • 2
  • 10
  • 24
0
votes
1 answer

Having problems with fabric8-maven-plugin

I have come to a problem which I'm not exactly sure how to resolve. Following the fabric8.io manual I have configured the maven plugin and placed every single configuration bit where it should be placed. However once I execute the mvn…
Tiho
  • 85
  • 1
  • 6
0
votes
0 answers

Apache Karaf OSGI app with large number of import dependencies

I've just deployed my first Karaf app, having converted it over from a Tomcat war file. What I've noticed is that there's a large number of dependencies for Karaf but a small number for Tomcat. In Karaf, how can I do away with the extra…
user447607
  • 5,149
  • 13
  • 33
  • 55
0
votes
2 answers

Trouble starting apache karaf.bat (Karaf 3.0.0)

I have properly set up JAVA_HOME, MAVEN_HOME to point to jdk home and maven installation homedirectory, and have also added JAVA_HOME/bin and MAVEN_HOME/bin in the PATH. But still when I execute karaf.bat I don't see any output as mentioned in the…
sanbhat
  • 17,522
  • 6
  • 48
  • 64
0
votes
2 answers

How do I stop cxf trying to take over the default implementation of javax.xml.ws.spi.Provider?

Karaf 2.3.2 As far as I am aware, I have no references to Apache cxf in my code or container configuration, however when I try to consume Exchange webservices, the jax implementation is being taken over by cxf giving this error as I don't have cxf…
user2641043
  • 405
  • 3
  • 12
0
votes
0 answers

Hazelcast instances as osgi services on karaf - avoiding overhead

we use karaf and hazelcast together. The hazelcast instance has a backing database map-store and is offered as a osgi service. In some deployments, for 2 groups of tables, the database map-store is the same for each group but in some cases…
Luis Matos
  • 347
  • 3
  • 14
0
votes
2 answers

Dynamic client using JaxWsDynamicClientFactory generates java.lang.IllegalArgumentException error

I am a one more noobie in web service programming who faced an unknown error: I am trying to use JaxWsDynamicClientFactory in order to invoke dynamically the requested service (the address of the service and its parameters are read from a file, but…
Artsiom
  • 1
  • 2
1 2 3
36
37