Questions tagged [osgi]

The OSGi (Open Service Gateway Initiative) framework is a module system and service platform for the Java programming language that implements a complete and dynamic component model.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Eclipse RCP with Gradle - bnd instruction Import-Package not working for org.eclipse.e4.core.di

I have an Eclipse RCP, dependencies managed with gradle. After updating to a newer Eclipse version with Java 11 I'm currently updating the dependencies. That's when I've encountered a problem. Caused ...
Sunny Onesotrue's user avatar
0 votes
0 answers
7 views

Getting Error injecting constructor, javax.json.JsonException: Provider org.glassfish.json.JsonProviderImpl not found

We're use javax.json for a while in a bundle in an osgi application. Everything worked fine with org.glassfish.javax.json 1.0.4 as the provider implementation. These days, we needed to update to 1.1.2 ...
Ralf Mollik's user avatar
0 votes
1 answer
33 views

OpenLiberty custom feature dataSource

I'd like my custom OSGi Liberty feature to inject/lookup JNDI datasource, the one that is already defined 'as usual'. Something like this: <server description="my-server"> <!-- I ...
Nikola's user avatar
  • 571
0 votes
1 answer
44 views

Jetty 10.0.15 error Could not configure SO_REUSEPORT to false on sun.nio.ch.ServerSocketChannelImpl[unbound]

We have upgrade jetty from 9.4.30 to 10.0.15. After Jetty upgrade RESTful services are not running getting below error org.eclipse.jetty.server.AbstractConnector - Could not configure SO_REUSEPORT to ...
nilesh vadar's user avatar
0 votes
0 answers
20 views

How to know which feature a bundle comes from ?

Knowing the name of a bundle, how to know which feature it came from ?
Bourbon_7's user avatar
  • 161
0 votes
0 answers
23 views

Eclipse OSGI Import-Package issue after upgrading

I am working on upgrading an Eclipse RCP Plugin. Many of our imported plugins (such as org.eclipse.ui.workbench and org.eclipse.jface.text have "Import-Package: com.ibm.icu.text" or "...
chama's user avatar
  • 5,983
0 votes
0 answers
11 views

How to skip the test classes in OSGI integration test?

In the junit we can use the Assume.assumeTrue(false) to skip the execution of the test cases. @BeforeClass public static void beforeClass() { Assume.assumeTrue(booleanCondition()); } But in OSGI ...
Vasu. Tk's user avatar
1 vote
0 answers
35 views

Configurable filter for OSGi service reference in blueprint

I develop an OSGi-based application running in apache karaf. I have several OSGi-services, that implement the same interface. Each of them reads data from a different source. In many other bundles, I ...
tobi-he's user avatar
  • 13
1 vote
0 answers
45 views

There is an issue with the Apache Felix SCR implementation of OSGi DS

The OSGi DS Specification mentions : When the service is requested, if the service has the scope attribute set to bundle, SCR must create and activate a unique component configuration for each bundle ...
Bourbon_7's user avatar
  • 161
2 votes
0 answers
19 views

is it possible to add a modify a bundle classloader to add another bundles classloader in osgi

I have a usecase where I need to dynamically load classes from different bundles in an OSGI runtime. I cannot export the packages as the other bundles could have duplicate classes and packages. ...
biplob ghosh's user avatar
0 votes
0 answers
9 views

Multi platform "test.bndrun" file: define a required bundle (`-runrequires`) specifically for macOS

I am running tests using bnd (from the Bndtools project) with gradle I am writing a bundle that should have a runtime dependency when running on macOS to the bundle org.eclipse.jdt.launching.macosx ...
Jmini's user avatar
  • 9,209
1 vote
1 answer
27 views

How to specify multiple hosts in the manifest of an OSGI fragment bundle in apache karaf

According to the OSGI specification, a fragment bundle in OSGI can have multiple hosts. But in apache karaf it does not seem to work. I have tried the following. Fragment-Host: default_host;bundle-...
biplob ghosh's user avatar
0 votes
0 answers
31 views

PlaywrightJava: Failed to create driver when adding playwright via target Plattfrom

I added Playwright via Target Plattform -> m2e PDE Integration to my Plugin Project (Is there a better way of Integration?). Playwright.create() throws the error: Failed to create driver java.lang....
umpapa's user avatar
  • 65
0 votes
0 answers
21 views

OSGi : Change bundles cache algorithm

I am trying to figure out how to change OSGI bundles cache algorithm. I have a local repository which holds all the jars on NFS drive. When I am launching my application, OSGI bundles cache algorithm ...
Assaf M.'s user avatar
0 votes
0 answers
14 views

Using Spring @Scheduled annotation in OSGi

I am following this guide https://spring.io/guides/gs/scheduling-tasks/ to set up a scheduled function in my application. However, the guide assumes I have a main method in my application to put the @...
Toofast's user avatar
0 votes
1 answer
32 views

Unable to start container for blueprint bundle exception after Karaf restarting

I'm using Karaf 4.2.16. When I start Karaf for the first time, I have no issues and all works fine. If I restart Karaf and try to run for the second time, I got the following exception after Grace ...
Ubuntu Learner's user avatar
0 votes
0 answers
19 views

Create OSGI bundle from plain java maven project

I've got maven project (non Spring one), what should I change inside my pom.xml to build jar to be executable by SMX/OSGI container. I've used felix plugin for spring projects like this: <plugin&...
Maciej Kajetan Chrzanowski's user avatar
0 votes
0 answers
17 views

migrating osgi from bndlib to osgi r6 declrative services

We migrated our OSGi application from biz.aQute.bnd to osgi.org(r6 declarative services) and currently running through some issues. Even though the application is compiling with no errors, it is not ...
kaushik gopu's user avatar
0 votes
0 answers
31 views

Eclipse Target Platform loading different Jar

I am on Windows using eclipse rcp 2020-06 and I have different versions of Target Platforms that I get from a Software Vendor. Sometimes I get an error in eclipse because it seems that the Vendor ...
Skrelp's user avatar
  • 181
0 votes
1 answer
41 views

When do multiple distinct ServiceReferences refer to a same ServiceRegistration?

As documented in org.osgi.framework.ServiceReference : Every service registered in the Framework has a unique ServiceRegistration object and may have multiple, distinct ServiceReference objects ...
Bourbon_7's user avatar
  • 161
0 votes
1 answer
24 views

The org.apache.felix.gogo.commands missing requirement while installing a featue

I'm using Karaf 4.2.16. I want to install a feature: karaf@mst-ica()> feature:install my_feature.config and get the following error: Unable to resolve root: missing requirement [root] osgi....
Ubuntu Learner's user avatar
0 votes
0 answers
13 views

OSGi Confusion: Declarative Services with User-Interface Components and Controller-View pattern

I am confused. I am currently developing an application using OSGi declarative services (DS). I have an API for my application and the application works fine. Now I want to add a User Interface. So I ...
A7exSchin's user avatar
  • 382
0 votes
0 answers
37 views

JFrog Artifactory support for OSGi-Bundles & Tycho-Plugin

My task: I am in the process of migrating our repositories hosted on premise Nexus to JFrog Artifactory and i am stuck at support for OSGi-bundles (upload and dependency-resolution). Current situation:...
CPPC's user avatar
  • 1
0 votes
0 answers
20 views

What is the difference between DS reference scope "prototype" and "prototype_required"?

What is the difference between the two of them, as stated in the title ? The end result is the component references to services that uses the prototype service scope, isn't it ?
Bourbon_7's user avatar
  • 161
0 votes
0 answers
45 views

POI / Tika in Java OSGi

This looks like an age old problem. Wondering if there's an update. I'm trying to parse Excel in OSGi (Karaf). Apache POI or TIKA. I've tried tika-bundle.jar and I've tried a few of the POI uberjars. ...
djb's user avatar
  • 1,635
0 votes
0 answers
9 views

What is the maven command for build Apache Felix - OSGi - framework project?

In this Wiki it seems I can get answered my question but it seems not been updated since 2013 https://cwiki.apache.org/confluence/display/FELIX/Building+Felix They say: mvn -Dpackaging=plugins install&...
ededed1507's user avatar
0 votes
0 answers
37 views

JavaCV: jniavutil.dll - Cannot access the file. The file is being used by another process

I am trying to use JavaCV in a JavaFX running in OSGi container. The bundle that is using JavaCV as dependency is resolved correctly, but once started it creates an instance of org.bytedeco.javacv....
crowde's user avatar
  • 321
0 votes
1 answer
28 views

How to install camel-milo component in Apache Karaf 4.4.3?

I have some projects using Apache Camel 3.21.0 running on Apache Karaf 4.4.3 and currently need to start an OPC server there. I want to use the camel-milo component to achieve this. However I noticed ...
Tahmid Ekram's user avatar
0 votes
0 answers
22 views

Error when using Apache Felix and OSGi for dynamic module loading in Kotlin

am working on a server project in Kotlin where I need to dynamically load and unload modules during runtime. To achieve this, I decided to use the OSGi framework and Apache Felix as the OSGi library. ...
NirYudo's user avatar
  • 76
2 votes
1 answer
112 views

Log4j is unable to load OSGI services

After updating log4j from 2.17.1 to 2.20.0 for a RCP application (OSGI!) we are getting lot's of exeptions on start-up. For some years we were happily using the workrounds for OSGI mentioned in ...
BetaRide's user avatar
  • 16.3k
0 votes
1 answer
48 views

How to reference a service in a non-service class?

As the title suggests, I would like to reference a service in a non-service class, the way I can think of is as follows : @Component( immediate = true ) public class Foo { @Reference ...
Bourbon_7's user avatar
  • 161
0 votes
0 answers
10 views

Common Mark in Maven Pom

I added this in the core pom: <groupId>org.commonmark</groupId> <artifactId>commonmark</artifactId> <version>0.17.0</version> <...
Shaheena Sk's user avatar
1 vote
1 answer
33 views

OSGI can not find ServiceReference

I have a very simple program starting up an OSGI framework (Felix in this case): final Map configMap = new HashMap(); configMap.put(Constants.FRAMEWORK_STORAGE_CLEAN, "onFirstInit&...
Will Hartung's user avatar
0 votes
0 answers
110 views

Missing requirement: org.apache.cxf.cxf-rt-transports-http 3.6.0 requires 'java.package; java.net.http 0.0.0' but it could not be found

We are upgrading jetty from version 9.4.30 to 10.0.15 and cxf from version 3.3.7 to 3.6.0. After upgrade, while building the repo, we are getting below error: Missing requirement: org.apache.cxf.cxf-...
nilesh vadar's user avatar
0 votes
1 answer
85 views

XPages and order of execution of Bootstrap 4

I have developed an application with Bootstrap 4 and I am getting different results on different servers. I have tested this on many servers and most servers work fine but when putting it up on a ...
Thomas Adrian's user avatar
0 votes
1 answer
78 views

AEM6.5 Apache Sling Authentication Service configuration not work

I am running a AEM author service, in Apache Sling Authentication Service I didn't add /system/sling/junit/.html into Authentication Requirements, and Allow Anonymous Access is unchecked, but still ...
Zhang Ligao's user avatar
1 vote
1 answer
42 views

How to create multiple unique instance of an osgi component?

I have a component UrlManager. Whenever this binds in other components I need to get unique instance of UrlManager. How can I do it ? My DS version is 1.2. Note: Im using Osgi component annotations. ...
Karthikeyan V's user avatar
0 votes
0 answers
13 views

OpenStack4j Core on Karaf ConnectorNotFoundException

I have an OSGi (Karaf 4.2.1) application that uses OpenStack4j 3.10. To connect the application to OpenStack, I want to use the openstack4j-httpclient. For authentication, I use credentials as follows:...
Marcel Jahnke's user avatar
0 votes
0 answers
62 views

Apache karaf not starting as systemd service in RHEL

I have recently come across into an issue in which i have apache karaf osgi container with features , i have installed this apache karaf as systemd service, After starting and stoping the service ,the ...
user_vs's user avatar
  • 1,021
0 votes
0 answers
34 views

org.eclipse.jetty 9.4.30v plugins giving issue missing constraint import package javax.servlet version "[3.1.0,4.00)" in Java 11

-We are upgrading our application from java 8 to Java 11 For multiple jetty org.eclipse.jetty 9.4.30v plugins giving dependency issue missing constraint import package javax.servlet version "[3....
nilesh vadar's user avatar
0 votes
2 answers
21 views

Difference between servletcontainer.init(webconfig) vs servletcontainer.init() vs servletcontainer.init(filterconfig)

Want to know the Difference between servletcontainer.init(webconfig) vs servletcontainer.init() vs servletcontainer.init(filterconfig) in prespective of pax web whiteboard in karaf OSGI pls someone ...
Ganesh ram's user avatar
0 votes
1 answer
106 views

Servletcontainer.init() not invoked after upgrade karaf from 4.3.7 to 4..4.3

`We were upgrading from karaf 4.3.7 to 4.4.3 we were facing an issue like servletcontainer.init(webconfig) not invoked after upgraded to 4.4.3 . our class is below, `import static org.osgi.service....
Ganesh ram's user avatar
0 votes
1 answer
68 views

Implementing the Sling Servlet using GraphQl Java

I am trying to implement the Sling Servlet using GraphQl Java where I am referring to the Java-GraphQl documentation to implement it. I was able to print the sample code using the sling servlet ...
Prince Shivhare's user avatar
0 votes
1 answer
54 views

I want to override some methods of SearchResultsPortlet.java. Liferay/dxp-7.4.13-u76

I am trying to achieve this through liferay module fragment. Is it possible? I created a fragment and created the packages with exact names as they have in source code. I created a public class ...
John117's user avatar
  • 31
0 votes
0 answers
225 views

Maven POM Dependency issues #3210

I am working on an AEM-Java project and facing an issue with graphql-java dependency where I am trying to add it on a maven project having a BND plugin. but once I add the dependency and try to build ...
Prince Shivhare's user avatar
0 votes
1 answer
66 views

where does the journal log exists on AEM Cloud service

I am trying to understand how sling-distribution-journal works. As per the documentation, it says that persisted log is created. On real AEM Cloud service production environment, what is framework ...
Learner's user avatar
  • 101
0 votes
2 answers
111 views

SCR Reference Annotation Not Updating to OSGI Reference Annotation (says, "annotation type not applicable to this kind of declaration")

I have this component, package com.path.http.impl; import com.path.api.http.ClientManager; import com.path.http.ConnectionManager; import org.apache.felix.scr.annotations.Component; import org.apache....
Jaft's user avatar
  • 43
1 vote
1 answer
83 views

Camel stops taking messages off JMS queue

We are using Camel and ActiveMQ in a Karaf OSGI server. We have a route which takes messages off a JMS queue and passes them to an HTTPS endpoint. Here's the java code that builds the route: ...
DuncanKinnear's user avatar
0 votes
1 answer
60 views

Apache Karaf / Felix does not log System.out.println

I am trying to get started with OSGi and want to run a simple hello world app. I followed this tutorial here: https://www.baeldung.com/osgi. I am able to create a bundle in karaf and run it but ...
Tom Deng Long's user avatar
1 vote
1 answer
513 views

Using old eclipse version (2020-06), installing plugins fails

I have researched this error quite a bit already, but could not find a solution yet. Due to compatibility reasons with some software we are developing, we need to use Eclipse IDE version 2020-06. ...
Skrelp's user avatar
  • 181

1
2 3 4 5
125