osgi

Can't instantiate class from installed extension when run via OSGI

佐手、 提交于 2019-12-06 09:30:08
So, I have an installed extension (see http://docs.oracle.com/javase/tutorial/ext/basics/index.html ) which I can see in Eclipse. I've written a simple rcp application that tries to create an instance of a class in this extension. However, although everything compiles ok, I'm getting a NoClassDefFoundError when creating the instance. I'm assuming this has something to do with OSGi because I can run a simple java application that creates the instance fine. Any suggestions would be really appreciated. Thanks I've found another solution which is to set the parent classloader to the 'ext'

How should I implement the OSGi console into a Bundle?

强颜欢笑 提交于 2019-12-06 09:14:59
I'm new on OSGi and I'm trying to implement the osgi console into a bundle. I need to manage the other bundles/services from my bundle. So I need to be able to use the "ss", "install" and "unistall" commands at least on other services already installed or not. All this commands must be managed without human interaction, so I must to implement this into my application. This program will be installed on a uPC without a continuous monitoring. I've googled the way to implement the OSGi console into a bundle but i cant found nothing relevant. I'm using OSGi 3.7.1 and trying to deply on an Equinox.

How to support osgi in android gradle plugin environment?

妖精的绣舞 提交于 2019-12-06 09:12:11
I want to use apk as an osgi bundle, and then load it in a host application. Now, it works ok. But I must manually do these things before push the osgi bundle to phone: Open osgi bundle apk file with WinRAR. Drag the built classes(in extension-a\build\intermediates\classes\debug\com) to the bundle file's root directory. Drag the modified MANIFEST.MF (including OSGI config info) to the bundle file's META-INFO/MANIFEST.MF . Sign the bundle apk at last. I want to know how to write some gradle scripts to do these things automatically? I use gradle 2.2.1, and 'com.android.tools.build:gradle:1.2.3'.

OSGi Declarative services filter references at runtime

自古美人都是妖i 提交于 2019-12-06 07:50:51
I've been trying some examples with OSGi Declarative Services (among other things, such as Blueprint) on Karaf. The problem I am trying to solve now, is how to get references to certain services at runtime (so annotations and/or XML are not really an option here) I will explain my use case: I am trying to design (so far only in my head, that's why I am still only experimenting with OSGi :) ) a system to control certain automation processes in industry. To communicate with devices, a special set of protocols is being used. To make the components as reusable as possible, I designed a

Java Unit Test: Replace a private method under test

萝らか妹 提交于 2019-12-06 07:49:27
问题 Is there any way of replacing the logic within a private method when running a JUnit test? A bit of background: we have some private methods which interact with bundles within an OSGi container. This is not available in the unit test therefore the methods will fail. We have looked at JMockIt but the method replace functionality seems to want to force you to replace all the methods in the class which call one another. The implementation would be something like this: public final doSomething()

semantic versioning of API bundle

一曲冷凌霜 提交于 2019-12-06 07:44:53
When starting with a package versioned at 1.0.0 in an API bundle, what should the new version be after adding a new interface to said package? The whitepaper makes this statement regarding compatibility: It should be obvious that binary compatibility plays an important role in backward compatibility. However, backward compatibility is also very dependent on the semantics. If the responsibility of an interface changes it could still be binary compatible but no longer be backward compatible. At the same time... 3.micro — A difference in the micro part does not signal any backward compatibility

Does Karaf support downloading of transitive dependencies from maven central?

旧时模样 提交于 2019-12-06 07:31:18
I am trying to use Karaf and I was wondering if it is possible to configure it to pull the transitive dependencies from the Apache Maven Central repository. Without having to use "embedded bundles" I already know you can pull explicit dependencies, the key part of the the question is the "transitive" ones. I also know you can use OBR to read from a repository.xml file in a deployed site, but I can't find one for Maven central. A possible answer to the question would be to add the URL, but I can't find it documented anywhere what the repository.xml URL is. At the moment, my work around is to

XPage Osgi plug in development

旧城冷巷雨未停 提交于 2019-12-06 07:06:41
问题 background I have designed many tools in the past year or so that is designed to help me program for XPages. These tools include primarily helper java classes, extended logging (making use of OpenLogger and my own stuff), and a few other things that I personally feel I cannot work without. It has been discussed with my employer, and we feel that it might be a good idea to start publishing these items to openNTF. Since these tools are made up of about 3 .nsfs, all designed to use the same java

Unresolved JavaFX packages in OSGi Felix Application

◇◆丶佛笑我妖孽 提交于 2019-12-06 06:12:40
问题 I develop a rich application based on JavaFX and the OSGi Felix container. When my JavaFX is started, an org.osgi.framework.BundleException is thrown indicating that the framwork could not wire my JavaFX packages : ERROR: Bundle app-impl-bundle [3] Error starting eclipse-project:T:\workspace\fast-osgi\app-impl-bundle\ (org.osgi.framework.BundleException: Unresolved constraint in bundle app-impl-bundle [3]: Unable to resolve 3.0: missing requirement [3.0] osgi.wiring.package; (&(osgi.wiring

Python自动化打包业务和认证平台

这一生的挚爱 提交于 2019-12-06 05:34:00
Python自动化打包业务和认证平台 1.文档摘要 Python 自动化打包业务和认证平台,本机只需执行脚本,远程即可自动部署。 2.更新日志 2014-11-28 文档版本为「1.0」,文档名为「Python自动化打包业务和认证平台 V1.0」,备注为「文档正式版,已测试通过」,By Robin。 3.版本信息 本机 XXX: 系统版本:Mac OS X 10.9.4 主机名:XXX IP:xxx.xxx.xxx.xxx Python:2.7.5 远程机 XXX: 系统版本:Debian 7.6 主机名:XXX IP:xxx.xxx.xxx.xxx Python:2.7.3 JDK:1.8.25 Maven:3.2.3 SVN:1.6.17 4.先决条件 本机安装软件: Python 2.7.5 sshpass 1.0.5 安装包如下: apt-get: python python-pip python-dev subversion subversion-tools pip: fabric 远程服务器安装软件: JDK:1.8.25 Maven:3.2.3 SVN:1.6.17 安装包如下: dos2unix subversion subversion-tools 5.脚本详解 5.1 软件概要 本软件包括两个Python脚本以及一个配置文件。目录结构如下: tree auto