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

How many numbers can I put in a Maven project version

I am developing a bundle to be installed on a Karaf container. I tried to put a version based on six points (0.0.0.0.0.1-SNAPSHOT). Its gets installed and become actif and functionnal. But when I list the bundles installed I see my bundle with only…
0
votes
1 answer

how to use Aries DS JPA with entity manager factory builder

I would like to use Aries JPA on Karaf with DS (declarative service) but I need more control over the creation of EM. I would like to grab instance of the EntityManagerFacroty or Builder so I can create my own EM on the fly. The reason is I have a…
Gadi
  • 1,539
  • 22
  • 37
0
votes
1 answer

Karaf bundle doesn't work

I am working with a Core for SDN network and I have fails with Karaf module when I type this command: feature:install core Could not start bundle mvn:eu.netide.lib/netip/1.1.0-SNAPSHOT in feature(s) core-api-1.1.0-SNAPSHOT: Unresolved constraint…
0
votes
0 answers

OSGI - Export custom @interface service

I have a custom annotation: @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @Inherited @Documented public @interface Route { String module(); } One class is annotated with this @interface. @Route(module="cache") public class Cache…
jhamon
  • 3,603
  • 4
  • 26
  • 37
0
votes
2 answers
0
votes
1 answer

Kafka OSGI bundle - Producer initialization issue could not initialize class org.apache.kafka.clients.producer.ProducerConfig

I am trying to create a Kafka Producer in karaf 4.0.3. ClassLoader currentLoader; try{ currentLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(null); Properties props = new…
Sanjeev
  • 208
  • 1
  • 2
  • 10
0
votes
1 answer

how apache-karaf download required depnedencies by features.xml whithout my intervention in case modification

Please see the image first. i have multiple instance of apache-karaf, when i change something in my java-project i deploy the jar file inside deploy folder of karaf, and this not good because i have to do that for all instance. now i dont know very…
Caroline
  • 21
  • 5
0
votes
1 answer

Karaf 4.0.5 hibernate error

I have this class import org.hibernate.Session; import javax.persistence.EntityManager; import javax.persistence.TypedQuery; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery; import…
user5620472
  • 2,722
  • 8
  • 44
  • 97
0
votes
1 answer

Can you override the help option of an Apache Karaf command?

Is there anyway in Apache Karaf 3.0.x to override the default help message that's displayed when you type --help? I've browsed the documentation and couldn't find anything. I've looked through the source code and found in…
Hardy
  • 477
  • 9
  • 19
0
votes
1 answer

Opendaylight shows wrong topology

I' m working on an SDN lab, I have 3 interconnected switches (2NETFPGA+1Open Vswitch) with a host connected to each. I'm setting OpenDayLight as a controller but the problem is that I can not get the controller to see the topology: It just shows the…
Striker
  • 43
  • 1
  • 6
0
votes
3 answers

Will karaf work in java 6?

Will Karaf work in Java 6? Which version of Apache karaf does support Java 6 (jdk 1.6.21). I wanted to deploy my OSGI bundles in Karaf. Anyone who is aware of this information, please let me know. Apache karaf installation documents doesn't clear…
0
votes
1 answer

Starting a component in a Karaf feature

I'm trying to deploy a feature which has a dependency to a component named "utils" the component was added as a feature like this:
ender.an27
  • 703
  • 1
  • 13
  • 35
0
votes
1 answer

How to call karaf console command in Java

If I want to execute a karaf shell command in my plugin (java), how to do it? ex: opendaylight-user@root> snmp4sdn:printdb "org.apache.felix.service.command.CommandProcessor" can handle it ?
kevin5476
  • 5
  • 4
0
votes
1 answer

Executing Karaf commands in java

The below code executes karaf commands in the console, public class DummyCallable { @Inject protected SessionFactory sessionFactory; private Session session; private ExecutorService executor; private ByteArrayOutputStream…
kevin5476
  • 5
  • 4
0
votes
2 answers

Apache Karaf 4.0.4 blueprint ClassNotFoundException oracle.jdbc.pool.OracleDataSource

I have a blueprint file which I am deploying to deploy folder which creates datasource and registers it as a service . In the feature file I am wrapping ojdbc7 and ucp.jar (both versions 12.1.0.2) and deployin . I have another bundle which accesses…
behal
  • 1