apache-felix

Installing and running Web Management Console in Apache Felix OSGI

偶尔善良 提交于 2019-12-01 02:20:45
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 Constraint: Import-Package: org.apache.commons.fileupload; version="[1.2.0,2.0.0)" I'm using Java 1.6.0.26,

Android Activity in OSGI Bundle

独自空忆成欢 提交于 2019-11-30 15:52:11
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 was able to find only one person describing his experience in achieving this. Unfortunately, the steps he

OSGI missing requirement error

怎甘沉沦 提交于 2019-11-30 14:10:54
问题 I am new to OSGI and I am trying to figure out how I resolve errors such as the one below org.osgi.framework.BundleException: Unresolved constraint in bundle org.foo.serviceBundle [253]: Unable to resolve 253.0: missing requirement [253.0] package; (&(package=org.slf4j)(version>=1.6.0)(!(version>=2.0.0))) I used a maven archetype to generate a bundle and added some simple slf4j logging to my Activator class. I am also using the maven bundle plugin as follows: <plugin> <groupId>org.apache

accessing command-line arguments from OSGi bundle

心不动则不痛 提交于 2019-11-30 09:57:35
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 there can react upon them. Note that it does not actually parse the arguments, just pushes the String[]

OSGI missing requirement error

≡放荡痞女 提交于 2019-11-30 09:34:37
I am new to OSGI and I am trying to figure out how I resolve errors such as the one below org.osgi.framework.BundleException: Unresolved constraint in bundle org.foo.serviceBundle [253]: Unable to resolve 253.0: missing requirement [253.0] package; (&(package=org.slf4j)(version>=1.6.0)(!(version>=2.0.0))) I used a maven archetype to generate a bundle and added some simple slf4j logging to my Activator class. I am also using the maven bundle plugin as follows: <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>2.2.0</version> <extensions>true<

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

╄→尐↘猪︶ㄣ 提交于 2019-11-30 04:49:32
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 same doubt with Apache Hadoop, but all the material that I found on net is sufficient for me to get a

Why can't JAXB find my jaxb.index when running inside Apache Felix?

爱⌒轻易说出口 提交于 2019-11-29 19:57:32
It's right there, in the package that it should be indexing. Still, when I call JAXBContext jc = JAXBContext.newInstance("my.package.name"); I get a JAXBException saying that "my.package.name" doesnt contain ObjectFactory.class or jaxb.index although it does contain both. What does work, but isn't quite what I want, is JAXBContext jc = JAXBContext.newInstance(my.package.name.SomeClass.class); This question from various other people appears on quite some mailing lists and forums but seemingly doesn't get answers. I'm running this on OpenJDK 6, so I got the source packages and stepped my

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

前提是你 提交于 2019-11-29 18:55:45
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. 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 features such as a console, an SSH remoting mechanism, a file deployer and more. In this diagram of the

Starting Wicket web application with OSGi HTTP Service

余生长醉 提交于 2019-11-29 11:53:49
I'm trying to start a Wicket Application using Felix implementation of OSGi HTTP service, for that I just register the service using WicketServlet with applicationClassName parameter: props.put("applicationClassName", MainApplication.class.getName()); service = (HttpService)context.getService(httpReference); service.registerServlet("/", new WicketServlet(), props, null); I have also tried using Felix Whiteboard implementation and registering the web service as a Servlet one: props.put("alias", "/"); props.put("init.applicationClassName", MainApplication.class.getName()); registration = context

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

╄→尐↘猪︶ㄣ 提交于 2019-11-29 06:06:52
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 ? 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 = (*Data)(Temp+i) becomes Temp1 = *(Temp+i); *Data = Temp1; Before and into the function call and passed back the