osgi

Change Bundle level in felix?

寵の児 提交于 2019-12-11 23:52:57
问题 I know how to set an initial bundle level, for just to be deployed bundle: bundlelevel -i 5 But how do I change the level of an existing bundle? Help for bundlelevel says: bundlelevel - set bundle start level or initial bundle start level scope: felix flags: -i, --setinitial set the initial bundle start level -s, --setlevel set the bundle's start level parameters: int target level Bundle[] target identifiers bundlelevel - query bundle start level scope: felix parameters: Bundle bundle to

OSGI container identification Equinox / knopflerfish and relation ship between equinox osgi jar and core osgi jar

纵饮孤独 提交于 2019-12-11 23:50:15
问题 Question 1:- I am working on a project which heavily uses OSGI. I am a newbee to OSGI. In my project I see JARS for both equinox and knopflerfish / and or knopflerfish bundles. Question2:- How do I determine among Equinox and Knoplerfish, which container does the OSGI use in my project? I assume OSGI can not use both the containers at a time. Question 3:- This link mentions Equinox framework requires org.eclipse.osgi_<version>.jar to implement OSGI core. So does this mean it does not require

Wrap third party jar that imports from default package using bndtools

半世苍凉 提交于 2019-12-11 22:06:27
问题 I want to wrap a third party jar. Unfortunately the vendor placed one single class (a.class) with one single method into the default package. When I try to include the resource using Include-Resource: @lib/acme-8.0.jar , it results in the following error: The default package '.' is not permitted by the Import-Package syntax. This can be caused by compile errors in Eclipse because Eclipse creates valid class files regardless of compile errors. The following package(s) import from the default

e(fx)clipse equinox compilation error

Deadly 提交于 2019-12-11 19:55:18
问题 I'm developing an OSGI (Equinox) Based-System and i came across JavaFX, i was trying the e(fx)clipse {OSGI bundle project} and i wrote a simple test project, but it is giving me some compilation errors. i have a main class : import java.io.IOException; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.stage.Stage; public class main extends Application { private static main _main ; public main () { _main = this; } public static main

Wiring package exceptions in Fuse/Karaf

与世无争的帅哥 提交于 2019-12-11 19:43:22
问题 In many projects, I have came across this exception. What could be the reason for this exception ? According to my knowledge, it can be because of inconsistent version usage. What could be the other possible scenarios ? Is this because of the Camel version we are using in the project ?Please help. org.osgi.framework.BundleException: Unresolved constraint in bundle com.test.div.soa.module-notify[324]: Unable to resolve 324.0: missing requirement [324.0] osgi.wiring.package; (&(osgi.wiring

OSGI Bundle using Android API is showing “java.lang.RuntimeException: Stub! at android.util.Log.d”

安稳与你 提交于 2019-12-11 19:34:25
问题 In my eclipse plugin project, I am trying to use the Android API. I am only showing a message on the LogCat. In addition to adding Android.jar to my class path, I prepared Android.jar as a bundle by follwing this link. So I did the following: 1- Writing the MANIFEST.txt which contains the following: Manifest-Version: 1.0 Created-By: myself Bundle-ManifestVersion: 2 Bundle-Name: android Bundle-Description: Package android in an OSGi bundle Bundle-Version: 4.4.0 Bundle-ClassPath: .,android.jar

SWT plugin missing from 64 bit RCP build

房东的猫 提交于 2019-12-11 19:32:40
问题 I have set up a headless build environment to build our RCP products for windows 32 and 64 bit. My problem is that the 64 bit build is missing the SWT plugin and the application will not start until I manually copy in the SWT plugin. In the log files this exception can be found: Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError Looking in the plugin directory of the 64 bit build I found org.eclipse.swt_3.6.2.v3659c.jar which does not contain any class files but only the

Karaf Pax Exam fails with Unknown protocol: wrap

做~自己de王妃 提交于 2019-12-11 19:12:18
问题 Hi my pax exam fails with the error Unknown protocol: wrap org.apache.karaf.features.internal.util.MultiException: Error at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:84)[9:org.apache.karaf.features.core:4.0.4] at org.apache.karaf.features.internal.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:72)[9:org.apache.karaf.features.core:4.0.4] at org.apache.karaf.features.internal.region

Deploying OSGi Servlet to Domino (IBM presentation) - 404 error

浪尽此生 提交于 2019-12-11 18:28:52
问题 I´m trying to deploy an OSGi container in Domino using PDE tool with Equinox. I´m following the instruction in this IBM slideshow: http://www.slideshare.net/fiorep/domino-osgi-development?next_slideshow=1 However (as per slide #52) when I browse to http://localhost/simpledemo (after clicking Debug from Debug Configuration), I get a "404 file not found" error. "simpledemo" is the alias mapped in the puligin.xml file (slide 44). The servlet name is however SimpleServlet. Any ideas what is going

Using android API in APK Bundle gives: “Could not find class 'android.content.Context', referenced from method com.example.patient.Activator.start”

吃可爱长大的小学妹 提交于 2019-12-11 18:13:02
问题 I am embedding OSGI framework into Android application. Beside my android application, I have an APK bundle that I create using the following steps: Create a regular APK, for example by creating Eclipse Android Project. Make your bundle use the same OSGI framework library used by your application by: Build Path->Configure Build Path->Projects, and then add your application project that will load the bundle. Your application project should contain the OSGI framework jar file in its build path,