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

How will EAP start listening to server port in Camel Context XML?

OK, this might be a stupid question, How the will EAP/ Karaf listen to 8484. Do I need to configure all ports that I'm use in Server Configuration.
Naren Karanam
  • 61
  • 1
  • 3
  • 10
0
votes
1 answer

How to access a karaf container's JMX from a remote location

I run a karaf container on an AWS server. With a little Java program, I can locally access the JMX data of it via service URL service:jmx:rmi://127.0.0.1:44444/jndi/rmi://127.0.0.1:1099/karaf-root Login is secured with username and password But I…
Arne
  • 1
  • 1
0
votes
2 answers

Loading Property File from Filesystem in Jboss Fuse / Karaf throws Nullpointer

I try to load a property file in Java running on JBossFuse/karaf. The file is located at $[karaf.home]/etc/bean.properties The Code is able to load properties inside the bundle fine, but now I try to exclude the properties from the project itself…
Malte
  • 589
  • 5
  • 24
0
votes
0 answers

How can i connect JPA to remote JDBC in OSGi application?

I am not able to connect to the remote JDBC using JPA. my persistence.xml file is as follow, org.hibernate.jpa.HibernatePersistenceProvider
Hitesh Vaghani
  • 1,342
  • 12
  • 31
0
votes
0 answers

Multiple KARAF servers using same keystore.jks

We have KARAF server running in 2 different machines. Server A is hosting some modules in X machine and server B hosting some modules in Y machine. We are generating keystore.jks and copying to server A and B. Some modules in server A makes https…
satlearner
  • 335
  • 3
  • 14
0
votes
1 answer

How can I add bundle to karaf Custom Distribution?

I create karaf Custom Distribution
user5620472
  • 2,722
  • 8
  • 44
  • 97
0
votes
1 answer

Map multiple domains to single karaf instance

I have created a server in AWS with Ubuntu installation. I have 3 domains with me. Now I want to host all three domains in that same server in the same Karaf instance. Just like we can do it in Apache Tomcat using Host tag in some configuration XML…
Jayesh
  • 402
  • 1
  • 4
  • 22
0
votes
1 answer

OSGI Integration test in karaf container

I am new to Karaf IT testing within the karaf container. I created a small practice project Practice OSGI project. All the bundles are running fine as I am able to run them in karaf container(3.0.8) and able to make a rest hit to manually test it…
Jayesh
  • 402
  • 1
  • 4
  • 22
0
votes
0 answers

iText XFA Worker on OSGI (Karaf)

I'm currently trying to deploy an XFA form rendering solution to Karaf. All my code works nicely when testing locally (no OSGi), but when I try to deploy to Karaf I get various errors. I believe the root cause here is that thge XFAWorker jars are…
Greg Fullard
  • 365
  • 3
  • 15
0
votes
1 answer

Correct way to generate feature files for Karaf?

I am trying to create a Karaf assembly using Maven (and NetBeans). I create my bundles using declarative services, but I am having problems creating feature files. Part of my problem is the error messages that OSGi generates. But I have a more…
Stephen Winnall
  • 301
  • 3
  • 14
0
votes
1 answer

Scala.js with Karaf

I want to serve out a Scala.js application from OSGi/Karaf Jetty. It appears to me this could be done by packaging the Scala.js application as a WAR file. Or is there maybe a better way?
Max Spring
  • 1,111
  • 2
  • 11
  • 18
0
votes
1 answer

Docker - Karaf image with Mongo Image

I have created the karaf dockerfile from scratch and it works with my application. Now, the postgreSQL and the MongoDB containers need to be running on the same network as the karaf container for the final step. Essentially, what i have so far is…
0
votes
1 answer

Talend : modifying Webservice call timeout on a job

I have a job, using a tESBConsumer component to call a distant webservice. This webservice takes between 55-65s to answer : default timeout is set to 60s : I have sometimes read Timeout on this webservice call, I want to push it a bit. I am…
Corentin
  • 2,442
  • 1
  • 17
  • 28
0
votes
0 answers

Integrating Python package/project into apache KARAF

I am new to Apache Karaf. after spending 2 days on internet got some idea about what the KARAF is for. My requirement is to integrating some of the Python projects into the Apache Karaf container. Q1.) is it possible to integrate Python…
Ghost Rider
  • 688
  • 3
  • 17
  • 38
0
votes
1 answer

Application REST Client on Karaf

I'am writing a simple . application deploying on Karaf 4.1.0. It's role is sending a rest request to REST API. When I start my bundle I have an error: javax.ws.rs.ProcessingException: org.apache.cxf.interceptor.Fault: No message body writer has…
VANILKA
  • 634
  • 1
  • 13
  • 32