osgi-bundle

Loading of OSGi bundle dynamically from a file system

安稳与你 提交于 2019-12-18 03:48:32
问题 I have a modular application which uses OSGi framework. Here I'm using org.eclipse.equinox.common_3.4.0 OSGi container. So now the application is already running with all the osgi bundles installed and active and I am displaying all the active OSGi bundles on the UI, by looping though a hash map, based on some action. Now the requirement is, while the application is already running, I want to instal a new OSGi bundle, from a file system, by giving this new bundle to the application's OSGi

java.util.NoSuchElementException while starting an OSGi framework programatically

眉间皱痕 提交于 2019-12-17 21:32:20
问题 I am trying to programatically start an OSGi framework (preferably Equinox) from Java and then load up any bundles. So I was going through this article which says how to do that. But I am getting java.util.NoSuchElementException everytime at the below line everytime ServiceLoader.load(FrameworkFactory.class).iterator().next(); Below is the code- import java.io.File; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import java.util.ServiceLoader; import java.util

Java classloader usage in OSGi

那年仲夏 提交于 2019-12-14 03:54:44
问题 I have a question about the usage of Java ClassLoader in OSGi. I wrote two OSGi bundles, namely server bundle and client bundle. In server bundle, I implemented BundleActivator like: public class Activator implements BundleActivator { public void start(BundleContext context) { System.out.println("[Server:Activator.java:26] " + Activator.class.getClassLoader()); context.registerService(HelloService.class, new HelloService(), null); } public void stop(BundleContext context) { System.out.println

Package Installed in AEM 6.0 Web Console Bundles (OSGi Bundles) is Not Installing Properly (Status Should be Active not Installed)

依然范特西╮ 提交于 2019-12-14 02:41:31
问题 Please help me on my concern wherein I tried to Install/Upload the recruitment-client-1.0.0.jar in AEM Web Console Bundles of AEM 6.0 and the status is just "Installed" that should be "Active" , so when I tried to click play under Actions column, status is still "Installed" and has an error in log file seen below. *FYI that it works before in CQ5 server instance. org.apache.felix.http.jetty %bundles.pluginTitle: Cannot start (org.osgi.framework.BundleException: Uses constraint violation.

Maven Web Project with Apache Felix Plugin

六月ゝ 毕业季﹏ 提交于 2019-12-14 02:27:58
问题 What's the best way to create a simple osgi (deploying into virgo server ) project using maven , to create a war structure with pom.xml maven descriptor? A Structure target is *.jsp *.html META-INF MANIFEST (OSGI-CONFIG) WEB-INF classes lib web.xml Then when I create a project This is my pom.xml project properties <groupId>com.aaaa</groupId> <artifactId>first-maven-virgo-project</artifactId> <version>1.0.0</version> <packaging>war</packaging> Felix Plugin <plugin> <groupId>org.apache.felix<

CQ5 OSGi bundle does not start:- Activator cannot be found

我与影子孤独终老i 提交于 2019-12-13 04:34:43
问题 I am working on a Mollom captcha implementation (as a component), for which I need an OSGI bundle created. I created one using eclipse (because it required a couple of more jars so as to compile correctly). Although the bundle was created without any errors, when I upload the jar onto the OSGi console, it just does not start. I opened up error.log and I find this:- 27.09.2013 12:10:33.264 *INFO* [pool-6-thread-34-com/day/cq/replication/job/publish(com/day/cq/replication/job/publish)] com.day

Importing an OSGI bundle into eclipse

▼魔方 西西 提交于 2019-12-13 02:14:40
问题 I try to import this OSGI bundle [2]enj-library into eclipse (after compiling it with Maven) , I used: "File > Import...> Plug-in Development > Plug-ins and fragments" and I imported the binary but I got the following unresolved dependencies: These dependencies were mentionned in pom.xml: <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>1.2.1</version> <extensions>true</extensions> <configuration> <manifestLocation>META-INF</manifestLocation>

Red Hat JBoss Fuse 6.2.1: Osgi Missing Requirement: Oracle JDBC Driver

送分小仙女□ 提交于 2019-12-12 04:19:08
问题 This is a problem that I am facing with Jboss fuse, where a dependency (Oracle JDBC JAR) is not found as an OSGI bundle. The source code works fine when run locally, but errors out when deployed on a Karaf container. A detailed explanation of the issue and associated source code is placed at: https://developer.jboss.org/message/948643 Any suggestions on this would be welcome. Thanks for your patience. Prabal 回答1: The Oracle JAR File that you are trying to deploying on the Fuse Server is not a

OSGi bundle compile error

我的未来我决定 提交于 2019-12-12 03:59:23
问题 When I build my bundle, maven throws the exception: [ERROR] Bundle com.onboard:com.onboard.service.security:bundle:3.0.0-SNAPSHOT : Exporting packages that are not on the Bundle-Classpath[Jar:dot]: [about_files, XXX] [ERROR] Error(s) found in bundle configuration I use maven-bundle-plugin to build my code: <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>2.3.7</version> <extensions>true</extensions> <configuration> <manifestLocation>src/main

Cannot build OSGi bundle for a Netbeans RCP application

喜欢而已 提交于 2019-12-12 03:44:45
问题 When I try to build an OSGi bundle of a Netbeans RCP application (for example: the provided sample Feed Reader Application), it gives the following error: [error] Exception in thread "main" /opt/developer/netbeans-8.0/harness/suite.xml:545: The following error occurred while executing this line: [error] /opt/developer/netbeans-8.0/harness/osgi.xml:63: Could not prescan /opt/developer/netbeans-8.0/platform/modules/org-netbeans-libs-javafx.jar: java.io.IOException: Unrecognized constant pool