apache-felix

Installing and running Web Management Console in Apache Felix OSGI

亡梦爱人 提交于 2019-12-19 04:52:08
问题 I 'm trying to install and run Apache Felix Web Management Console ( 4.2.0 ) in Apache Felix 4.2.1 but it does not work. I have installed Felix Http Jetty 2.2.1 bundle, Felic Configuration Admin Service 1.8.0 bundle, Log Service 1.0.1 bundle, EventAdmin 1.3.2 bundle and Felix Web Management Console 4.2.0 When I try to start the Web Management Console it says : org.osgi.framework.BundleException: The bundle "org.apache.felix.webconsole_4.2.0 [29]" could not be resolved. Reason: Missing

Android Activity in OSGI Bundle

痴心易碎 提交于 2019-12-18 17:38:25
问题 I am working on developing OSGI bundles that have a full support for android. So far, by my previous questions, I was able to use android API inside OSGI bundle. It works fine and I tried it. I am using Felix framework. However, I am stuck now at the mission of making an OSGI bundle to have an android activity and to start that activity. I also need these activities to be able to request permissions so I guess I will need an AndroidManifest.xml in the OSGI bundle. While doing a research, I

Run Apache Felix 4.0.2 in IntelliJ IDEA 11

≡放荡痞女 提交于 2019-12-18 16:52:10
问题 According to this post, IDEA uses Osmorc to run OSGi frameworks. It, in turn, uses Pax Runner to launch different framework implementations. The toolchain in IDEA 11 can only run Apache Felix up to 3.0.2, but I have to run version 4.0.2. Is it possible? Do other OSGi framework launchers exist for IDEA? 回答1: You can configure the OSGI frameworks that Osmorc uses from the plugin+ project settings. I use IntelliJ IDEA 11.1.2 and Osmorc 1.4.2. Here is a screenshot where I configure the OSGI

accessing command-line arguments from OSGi bundle

早过忘川 提交于 2019-12-18 13:23:09
问题 I have an application that runs as a collection of OSGi bundles. I start it using a very small wrapper that embeds the Felix framework. The necessity of that wrapper irks me a little, as does the fact that it depends on Felix (whereas the application itself could run just as well in, say, Equinox), so I want to get rid of it, and use the default Felix launcher. The only thing that the wrapper really does is passing the command line arguments into the launched OSGi framework, so that a bundle

What is the purpose behind building of Apache Sling, Felix, Jackrabbit projects

删除回忆录丶 提交于 2019-12-18 11:25:31
问题 I am asking a very basic question here. Question is I am using Apache Sling , Apache Jackrabbit, Apache Felix in my project as said by my instructor. I am trying to understand why these software is developed by Apache. I tried a lot on the internet,, but I didn't find any blog or wordpress blog, or any useful youtube video that explain all these projects. Can you explain me about these projects. Why these projects developed? What they do ? and more questions like this Previously I found the

OSGi: What are the differences between Apache Felix and Apache Karaf?

让人想犯罪 __ 提交于 2019-12-18 09:57:15
问题 Apache Karaf is a sub project of Apache Felix. It is defined as "a lightweight OSGi container". I don't understand when should I use the heavyweight and when to use the lightweight. Their site doesn't explain this too much. 回答1: The 'lightweight OSGi container' label is contrasting Karaf with more feature rich OSGi containers, not with Felix. To quote Guillaume Nodet (Karaf's author) from here: Felix is just the OSGi core runtime. Karaf provides a "distribution" based on Felix by adding other

Fatal signal 7 (SIGBUS) at 0x00000000 (code=2)

隐身守侯 提交于 2019-12-18 04:42:30
问题 While using a OSGi Platform on Android i got this errormsg: Fatal signal 7 (SIGBUS) at 0x595302e0 (code=2) I don't think that my app needs that much space in memory or need a lot of computation power. Its just the OSGi Platform with 20 Bundles. My app is always restarting after that. Any ideas ? 回答1: Even I too found a similar problem and happens to be (code=128) with about fault. Seems to be a data alignment error. To solve this issue, I tried putting a code something like this: *Data = (

Loading Resources with the Context Loader fails with a NullPointerException

百般思念 提交于 2019-12-14 03:49:28
问题 I'm just wondering why I cannot load a resource with the Thread context loader in Felix OSGi? Am I not supposed to touch the context loader, am I doing something wrong or is it a bug? I've a super simple bundle with a simple Activator: public class Activator implements BundleActivator { public void start(BundleContext context) throws Exception { System.out.println("Hello World!!"); String resourcePath = "META-INF/mySuperDuperResource.txt"; // works System.out.println(Activator.class

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<

OSGi (felix) ignores OSGI-INF

前提是你 提交于 2019-12-13 19:01:19
问题 I start felix framework myself. Everything is ok. But when I started with declarative services I see that felix ignores OSGI-INF/temp.xml. In manifest I added via maven Service-Component: OSGI-INF/temp.xml Even when I write wrong classes and interfaces in temp.xml I get no errors. Where is mistake or maybe I must enable something? 回答1: An OSGi framework does not process Service-Component header. That is processed by a Declarative Services implementation like Apache Felix SCR. Do you have that