Questions tagged [karaf-maven-plugin]
24 questions
9
votes
1 answer
How to deploy easily to Karaf Osgi container with maven project
I'm developing an OSGI bundle for parsing a PDF file using PDFBox library. I use maven to build the project and Karaf as the OSGI container. The PDFBox library is OSGI compatible so I thought this would be easy. But I just can't get the deployment…

palto
- 3,523
- 5
- 32
- 38
2
votes
0 answers
Error executing command: Unable to resolve root: missing requirement [root] osgi.identity
when i try to install apache cellar (4.0.2) to apache karaf i get the follow error message:
Error executing command: Unable to resolve root: missing requirement
[root] osgi.identity; osgi.identity=cellar-hazelcas t;
type=karaf.feature;…

Maurizio Rizzo
- 561
- 2
- 6
- 11
1
vote
0 answers
ClassNotFoundException for Project Dependency Maven or karaf-maven-plugin Exception
I have a multimodule project with Project A being a dependency of Project B.
When I run a Junit test for Project B, Project A classes are successfully imported and methods called. However, when I run mvn clean install for Project B,…

1288Meow
- 319
- 2
- 7
1
vote
1 answer
Source code of the full OpenDaylight Integration Distribution Bundle
My team is using OpenDaylight 0.11.0 as the basis for a SDN controller. I am wondering how that .tar.gz is built?
I.e., is there a base project on github and a maven command that creates that .tar.gz file?
I am finding so many different opendaylight…

E.S.
- 2,733
- 6
- 36
- 71
1
vote
1 answer
org.springframework cannot resolve in karaf
some below error is showing afterthe jar was deploy in karaf and this bundle was not able to start.
Exported Packages org.apache.karaf.examples.command,version=1.0.0
Imported Packages org.apache.karaf.examples.command.api,version=[1.0,2) from…

zz10
- 67
- 1
- 10
1
vote
2 answers
Karaf OSGi config throws ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity;
I am creating a Spring Boot app that will run on Karaf. I am trying to expose the project configuration properties in Karaf in order to be able to change the properties using config:property-set without the need to redeploy the app.
So I have…

NikosDim
- 1,398
- 2
- 21
- 40
1
vote
1 answer
How to exclude a bundle from Karaf Feature programatically
In my project, there is Karaf feature XML file contains all OSGi bundles. Now, this is used as dependency in other maven project's pom.xml file.
a.b.c
dummyfeature
xml
…

Anshul Singhal
- 1,983
- 20
- 25
1
vote
1 answer
Apache Karaf WAR file deploy not working. 404-Not found on webbrowser
I am creating SpringMVC application with maven in IntelliJ. I referred this link for creating SpringMVC maven application. here, is a code of
pom.xml

Zankhna
- 4,570
- 9
- 62
- 103
1
vote
1 answer
Hot deployment in karaf
How to setup karaf so that i don't need to build my project and restart karaf again and again for the updates in code?
I am unable to achieve this in my current project. I have tried placing features.xml in /deploy folder but no use, it is flushed…

Sanket Shirode
- 57
- 1
- 9
1
vote
0 answers
Karaf 4 : Missing dependencies: NamespaceHandler - jpa/v1.1.0
when trying example "Chap7-Recipe3-JPA-Only" from karafCookbook (see https://github.com/jgoodyear/ApacheKarafCookbook) in karaf 3.0.X to 4.1.1 i'm getting the folowing error :
Missing…

Patrice
- 1,404
- 1
- 14
- 27
1
vote
2 answers
Using declarative services in Karaf 4.1.0
I'm trying to develop a Karaf 4.1.0 application using NetBeans 8.2, Maven 3.3.9 and declarative services. Really simple services work, but as soon as I try to do something vaguely useful I get the dreaded osgi.component missing requirement…

Stephen Winnall
- 301
- 3
- 14
0
votes
1 answer
How to make Karaf server run code before bundles
I have file in Karaf server which is deleted after some time I don't know why.
So I decide to run code to create the file before running the bundles that depends on it.
is that possible?
I have the code but I don't know where I can put it to run…

deem sameer
- 21
- 5
0
votes
1 answer
How to get Bundle Activator Instance to call a method after all bundles are activated
I need to call a method with bundle activator instance after every bundle is started. I have five bundles. How do I get the bundle activator instance?
Requirement: Call a method only with the activator instance.
0
votes
1 answer
Feature repo add in KARAF Error Resolving Artifact : Could not read from local repo
Error executing command: Error resolving artifact
com.sample:features:xml:features:4.1.4-SNAPSHOT:
\[Could not find artifact com.sample:features:xml:features:4.1.4-SNAPSHOT in default
local (file:/C:{/Users}.m2/repository/),
Could not find…
0
votes
0 answers
Karaf 4.3.6 Unresolved requirements:&(osgi.wiring.package=org.apache.felix.cm.json)(version>=1.0.0)(!(version>=2.0.0)))
Getting bundle exception with karaf 4.3.6.
ERROR Events.Framework - FrameworkEvent ERROR
org.osgi.framework.BundleException: Unable to resolve org.apache.karaf.features.core [10](R 10.0): missing requirement…

mohit patidar
- 1
- 1