equinox

Equinox config.ini generated

Hi there, I've got some osgi plugin development going on. I've created a launch configuration in my eclipse IDE, which adds all required bundles to my runtime. Is there any possibilty to export/convert the eclipse launch config to a config.ini which I can use on my standalone equinox env? ...

In Equinox Is it possible to to mark an OSGi bundle as started from its containing feature's p2.inf?

I have an Eclipse feature which includes several bundles. I want to tell p2 to mark one of those bundles as started when the feature is installed. This is possible using the bundles own META-INF/p2.inf like so, instructions.configure = markStarted(started: true) but I want to do this at the feature-level rather than the bundle-level (...

In Equinox is it possible to for one feature/bundle to obsolete another?

I have a Eclipse-based project (the Scala IDE for Eclipse) which has recently moved to a new home. I want to change the various feature ids, Bundle-SymbolicNames etc. to reflect the move (ie. so that they all have an org.scala-ide prefix) and restart the version numbering (previously it was tied to the corresponding Scala compiler releas...

Best solution for using AOP with OSGI?

I am using Equinox, so the Equinox Aspect project seems like a no-brainer, but that project appears to be inactive and has only one page of documentation that leaves me hanging at the end. Other than that project, I do not see many options for using AOP in OSGI. Let me know what you all think and what the possibilities are, thanks :) ...

OSGi equinox : Bundle stay always in the state "RESOLVED"

Hello, I've created one main bundle in wich one I've installed the equinox p2. Then I export it to obtain an executable. My executable works correctly. I've also created one other Bundle that interact witt the first one. In eclipse, if I create a product configuration with this 2 bundles and run the product, everything works. After tha...

EclipseLink : No Persistence provider for EntityManager named ...

Hi everybody, I'd like to create one Bundle that is able to use Java Persistence. To achieve this, I've created a plugin project within Eclipse. In my project, I've created a persistence.xml file into META-INF. I've aslo added in my MANIFEST.mf (into the depencies) those 3 packages : javax.persistence.jar org.eclipse.persistence.jar o...

intermittent java.lang.LinkageError in Eclipse RCP - Equinox

Dear all, I'm developing a project with Equinox execution environment and I'm using the cxf-dosgi-ri-singlebundle-distribution CXF bundle. I'm running my tests within Eclipse RCP (galileo). When I started the program for the first time with the newly added CXF bundle everything worked fine. But at the second try I got a java.lang.Linkage...

Starting OSGi bundle

I try to run OSGi plug in in Eclipse. It is empty bundle, but eclipse always send me errors There are my console messages http://pastebin.com/dqQfpQhd What is wrong? ...

OSGi bundle starting problem

I have a Java application. I created a OSGi bundle and in Activator.start i added MyMain Class.main() .Application started but it have a problem with DB connection. 'java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.' If i start my application as an application it works fine. What is wrong? Thanks a l...

Who framed the org.osgi.framework.* interfaces?

I understand that OSGI is just a specification and they don't event mandate that implementation be in Java. Then who/which guys have framed the "org.osgi.framework.x" packages. For e.g. where does the BundleContext.java class come from? Has this API provided by OSGIALliance itself? Note that I understand that the implementation of thes...

Eclipse RCP: Target platform - Eclipse vs. Equinox?

Hi, I'm just starting with OSGi and Eclipse RCP. Could someone explain to me the difference between "Eclipse" and "Equinox" as the target platform, when creating a new eclipse plugin project? I still know that Equinox is Eclipse's implementation of OSGi. I read in some articles that eclipse rcp is also based on Equinox. So where is the d...

How to use separate datbases for production and testing in an eclipse RCP app

I am writing an eclipse RCP app and I am trying to use a separate db for tests to prevent corrupting my production db. During the setup of the test db i need to execute an sql file to fill it with test data. Is there a way to tell the app to use a different db and execute a specific sql script (maybe via launch properties or maybe frag...

Is it possible to run MyFaces as OSGi Bundle with Equinox?

Hi all, i try to run JSF (MyFaces) Application as OSGi Bundle (Spring DM and Equinox).Is it possible at all? Are there any web resources with some examples? Thanx in advance ...

Equinox launcher

What is the big difference between launching Equinox via java -jar plugins/org.eclipse.osgi_3.6.0.v20100517.jar and using org.eclipse.equinox.launcher (basically, java -jar plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar)? I suppose that org.eclipse.equinox.launcher provides some added value, but what exactly? ...

maven : getting dependency details (Equinox)

Hello, New to maven and equinox. While going through a tutorial on OSGi, I issued the following commmand. pax-provision which gave the following error. -> Provision bundle [mvn:org.compass-project/compass/2.1.1, at default start level, bundle will be started, bundle will be loaded from the cache] -> Preparing framework [Equin...

JAX-WS with Equinox OSGi

We have created a web service using JAX-WS and ProSyst OSGi. Accessing the service with the following code works fine in a standalone Java application as well as in the ProSyst framework. this.service = new MyServicePortService( new URL("http://" + host + ":" + port + "/MyService?wsdl"), new QName("http://myser...

Integrating Equinox OSGi into Apache Tomcat web app

Is it possible to introduce osgi-equinox into existing java Apache Tomcat project? From my understanding OSGI must run inside some kind of "container". How would I integrate it? I am also using Jersey for RESTful resources. ...

How to set min/max heap size for equinox osgi container

Hi, does anyone know how to set the max heap size when starting equinox? I start the container from the command line as follows: java -jar org.eclipse.osgi_3.5.2.jar -console -Xmx1024M -Xms512M -XX:[MaxPermSize]=256M However, this has no effect on the max heap size and I end up with an OutOfMemoryException. I am trying to deploy a ...

Custom and flexible servlet container, or proven and relatively inflexible?

I am building a web application on top of a "custom" web framework. This framework is essentially the Equinox OSGi platform with Jetty sewn into a custom bundle (not the Equinox-supplied one, mind, as it is far too restrictive). This framework is being used to build a large Java web application, primarily using JSP. No other frameworks ...