equinox

How do I compute equinox/solstice moments?

What algorithms or formulas are available for computing the equinoxes and solstices? I found one of these a few years ago and implemented it, but the precision was not great: the time of day seemed to be assumed at 00:00, 06:00, 12:00, and 18:00 UTC depending on which equinox or solstice was computed. Wikipedia gives these computed out...

How to configure Log4J when deploying an OSGi app with the Equinox Servle Bridge to Tomcat?

When deploying my OSGi web application using the equinox servlet bridge i get the following: log4j:WARN No appenders could be found for logger (org.springframework.osgi.extender.internal.activator.ContextLoaderListener). log4j:WARN Please initialize the log4j system properly. I tried several ways of supplying the necessary "log4j.prop...

Jasper in Equinox - does not resolve jstl core uri

I'm currently researching OSGi with Spring, and working through a couple of examples from Pro Spring Dynamic Modules for OSGi. My example web-app has a single controller like: @Controller public class HelloWorldController { private HelloWorldService helloWorldService; @RequestMapping(method = RequestMethod.GET) @ModelAttri...

[Equinox/OSGi] dynamic plug-ins management /Updated

I mean if one plugin will [download and] copy other plugin in apropriate folder or make a link file, can it dynamically integrate it with platform without restart? So, it looks like it is possible to build an always-up server, that evolves in time, without being restarted. Is it a demanded(not sure about this word, English isn't my na...

OSGi and legacy libraries

I've been looking into OSGi for a while and I'm wondering about the best way to deal with "legacy" libraries (that are released as plain JARs, not as OSGi bundles). What do you think is the best way to handle these? Modifying their manifest file and adding the minimal bundle-specific information, then repackaging them is what I do at th...

Persistence.xml and OSGi (Equinox)

I am currently testing out using OSGi. I am running this through Eclipse. I want to have my DAO layer as part of an OSGi solution, but my first stumbling block is this error: Jun 29, 2009 6:12:37 PM org.hibernate.cfg.annotations.Version <clinit> INFO: Hibernate Annotations 3.3.0.GA Jun 29, 2009 6:12:37 PM org.hibernate.ejb.Version <cl...

Remoting and OSGi

Is there an elegant way to use Services across or between OSGi containers? Is it even possible? For instance, lets say I have a service interface on my local machine. What methodologies/technologies can I use to get that service interface accessible through a remote OSGi container's BundleContext? ...

OSGI Declarative Services (DS): What is a good way of using service component instances

I am just getting started with OSGI and Declarative Services (DS) using Equinox and Eclipse PDE. I have 2 Bundles, A and B. Bundle A exposes a component which is consumed by Bundle B. Both bundles also expose this service to the OSGI Service registry again. Everything works fine so far and Equinox is wireing the components together, ...

Equinox (OSGi) and JPA/Hibernate - Finding Entities

I am trying to use Hibernate/Spring in an OSGi (Equinox) environment. It works great if I explicitly point it to the Entity classes in the Persistence.xml: <class>com.es.t.eee.domain.StuffSource</class> <class>com.es.t.eee.domain.PostalAddress</class> What I want is for Hibernate to "find" all of the Entity classes just as it does ...

Configure Equinox to modify the management of the "local bundle cache"

Relating to a previous question, how let OSGi to reuse your configuration via Config Admin, I am still trying to solve this problem in the Equinox Framework. Pavol Juhos wrote: Equinox Config Admin (org.eclipse.equinox.cm) stores the configuration data in the persistent storage area provided by the Framework. And that happens to be ...

Including additional resources with OSGi bundles

I'm working on an OSGi bundle which implements a service as a wrapper around a native executable. That is, the service runs the executable with ProcessBuilder, feeds it some data, and retrieves the result. My question is about the best way to package this bundle. The native executable includes a number of dependent data files which all m...

How to setup bundle development environment (Eclipse Equinox Maven)

Hi, I'am trying to setup eclipse environment to develop bundles (With maven-bundle-plugin-bnd) and run & debug that bundles equinox from eclipse I created sample bundles with org.apache.felix maven-bundle-plugin and can install and start that bundles from eclipse equinox, but every time i need to run "install file:C:\path\bundle1.ja...

Who loads javax.swing.* classes in Equinox osgi container?

I read some equinox code and doc. I came to understand that, at present, only class loading for java.* packages are delegated to the parent classloader(given that i have not modified org.osgi.bootdelegation property, which by the way seems to be null). Then who is loading the javax.swing.* classes. I have not mentioned it anywhere in the...

Equinox Bundle import conflict

1) Bundle A reexports package com.X, which it gets from bundle C 2) Bundle B exports package com.X 3) Now bunlde D has dependency on both A and B. From where will the bundle D get the package com.X from? ...

Can we contribute a new plugin.xml to ExtensionRegistry

I have a some additional xml files(containing standard eclipse extensions) that lie outside the bundle. Is there a way that I could contribute the extns/extnpoints in those files to the platform's extension registry? I tried `Platform.getExtensionRegistry.addContribution(..)` But the method takes a masterToken object, which I dont h...

How to change value of 'Read timeout' of Eclipse's Update Manager?

How to change value of 'Read timeout' of Eclipse's Update Manager? I have slow internet connection and I cannot install any plugin, because Eclipse's Update manager throws me exception: Transfer Exception java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStr...

Split away Selection Service from o.e.ui.workbench bundle

I want to use Selection Service feature from the eclipse RCP in my swing project. Currently the o.e.ui.workbench bundle which contains the related interface is around 3.7 MB, that's way too huge for our requirement Is there any way to split it the workbench to get only the selection service Are there distros already for this Is it leag...

How to get classloader for a bundle in equinox?

How can I get the classloader for a osgi bundle in eclipse equinox setup. Thanks, Suraj ...

Equinox p2 for an arbitrary OSGi application?

Hello. I am designing a software system which I think I am going to implement on an OSGi platform. It is going to be a software system running on self-service terminals. OSGi idea suits well for my demands of managing devices and end-user related functionality. I think I am going to use Equinox as the OSGi implementation. So I came up w...

Adding extra system properties to an Eclipse programmatic restart

I have a plugin that forces a restart of Eclipse by using: Workbench.getInstance().restart(); However, I need this restart to include a new environment variable: eclipse.refreshBundles=true Is there any way to add such an environment variable for this next restart of Eclipse only? ...