Questions tagged [embedded-osgi]

23 questions
6
votes
1 answer

how does system bundle has access to system packages?

I'm exploring how OSGI is implemented for the last couple of weeks. I know that each bundle uses its own class loader to load its classes. As part of my investigation, I understood that parent of every bundle's class loader is null i.e boot class…
5
votes
2 answers

How to write an OSGI command-line application

I'm currently getting my feet wet with OSGI and decided to go for a slightly atypical OSGI use-case. I'd like to use it in a command-line application. I want a main(..) method that takes some flags and arguments, does something and shuts down again.…
sfussenegger
  • 35,575
  • 15
  • 95
  • 119
4
votes
0 answers

Refresh Package Bundles

I've stumbled upon a problem, that can be summarized as follows: I have an application which is embedded with OSGI. In this OSGI container, I have installed a bundle A of version v1 which registers that service object. This service object is used by…
imcat
  • 158
  • 6
4
votes
4 answers

Make maven dependency OSGi ready

Im trying to connect database in JFUSE project. I've included com.mysql.jdbc dependency in pom file and project build runs fine. But then I encounter this annoying problem. When I try to install the bundle to OSGi, installation failed with following…
Crawler
  • 1,988
  • 3
  • 21
  • 42
3
votes
3 answers

Embed OSGI in war

I am interested in adding an OSGI container into my WAR but I can't find a tutorial or a documentation on how to do this. I found some things that are not useful at all. I am interested in Felix implementation and Atlassian implementation. I am…
Alex
  • 2,126
  • 3
  • 25
  • 47
2
votes
2 answers

java.util.ServiceConfigurationError Provider not a subtype while using OSGi bundle

I'm creating a Liferay 7.1 OSGi bundle, which has some external dependencies in it. In consideration of time, we opted to embed the external JAR in our OSGi Bundle. I've managed to create a bnd file, which includes all of the ElasticSearch…
Kornelito Benito
  • 1,067
  • 1
  • 17
  • 38
2
votes
1 answer

How to manage bundles/dependencies in embedded OSGi application?

I'm currently developing a plugin system in which I embed apache felix in my application. The plugins itself are the OSGi bundles. So far deploying the bundles works just fine but I have trouble interacting with my bundles/plugins. I tried two…
Jotschi
  • 3,270
  • 3
  • 31
  • 52
2
votes
2 answers

How to add all third party jars(resolvable) in my OSGi bundle jar using 'bnd-maven-plugin'?

I am developing OSGi application using 'bnd-maven-plugin' https://github.com/bndtools/bnd/tree/master/maven/bnd-maven-plugin I have many third party jars in my project, referenced through maven. When I create jar bundle using 'maven install', I will…
Umesh Rajani
  • 139
  • 2
  • 13
2
votes
1 answer

JNDI lookup from OSGI equinox bundle deployed on tomcat (bridged mode)

I have my datasource configured in tomcat\context.xml. I have deployed a bridge.war provided by Eclipse to get servletbridge environment. I have developed another osgi bundle which contains servlet registation code and my aim is to do JNDI look up…
WillMcavoy
  • 1,795
  • 4
  • 22
  • 34
1
vote
1 answer

Embedding javassist dependency breaks OSGi bundle

I am trying an embedded Felix scenario. While loading a bundle from the embedded OSGi container (Apache Felix), I am getting the following error. org.osgi.framework.BundleException: Unable to resolve test.bundle-attempt [50](R 50.0): missing…
dknight
  • 1,243
  • 10
  • 23
1
vote
1 answer

java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.clientproxy AEM OSGi

I am trying to use the fuelsdk in an osgi environment in AEM. I am getting this error - java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy This is because OSGi loads the…
cqsapientuser
  • 65
  • 3
  • 12
1
vote
2 answers

Felix OSGI Embedded application issue

I was using Felix as a embedded application as explained in, How to start and use Apache Felix from code?. What I want to do is dynamically load jar files from my host application via OSGi and invoke methods of implementation classes. So I have…
lsc
  • 681
  • 3
  • 8
  • 26
1
vote
0 answers

servlet-listener and MIME type support for equinox

I have embedded equinox framework in tomcat 7.x using bridge.war and steps given at http://www.eclipse.org/equinox/server/http_in_container.php I have developed an osgi bundle which contains servlet registration code and as expected this servlet…
WillMcavoy
  • 1,795
  • 4
  • 22
  • 34
1
vote
1 answer

Apache Felix Servlet Bridge setup

I'm trying to make my servlet extendable with OSGI bundles: newly added bundles must be a servlets as well. There is a Servlet Bridge feature provided by Felix http://felix.apache.org/documentation/subprojects/apache-felix-http-service.html, looks…
Victor Bashurov
  • 370
  • 3
  • 12
0
votes
1 answer

Cannot start bundle programmatically

Note: In my case, I'm using Apache Felix implementation if that's matters. I have written bundle which I'm using as test. It's very simple "Hello World" bundle that do nothing more than print message to stdout when started/stopped: public class…
abc
  • 2,371
  • 3
  • 25
  • 36
1
2