osgi

Eclipse add plugin development

I have installed Eclipse Helios. how can i add to it plug-in development functionallity (to be able to create OSGi bundles) ...

Launch plugin as OSGi

I changed my Java SE (right button click on project Configure -> Convert to Plug-in Projects) to plug -in, but when i try to run it - it run as Eclipse application, how to start it as OSGi? Thanks! ...

How to debug an OSGi Bundle inside eclipse using maven structured project

Hi, I have a maven project which library should also be an OSGi bundle with an declarative service. I added the OSGI-INF folder with the service.xml inside src/java/resources which will be added to the jar. But: When I start the project as equinox project, where I want to check if the service is loaded, I get the error that the OSGI-INF...

Reading OSGI bundles in a maven project?

I have two projects: One "pure" maven project and another PDE project which I build with maven3/tycho. Now I would like to use some of the bundles that I build from the PDE project (using maven 3) in the pure maven project. My first idea was to use maven3 to deploy the bundles to a nexus server and then read them from the server with t...

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? ...

Does Fuse ESB 4.2 have features(group of bundles) in it??

when i see the avaliable commands on the karaf console.there is no "features:" commands. Are their only osgi bundles in 4.2 or did i download sumthing else @Claszen thank you for the answer but it did not work. i downloaded the 66.54 mb zip file meant for windows. and on running the servicemix.bat the following error's prop up before t...

Bundle's exported packages not visible.

I have a bunch of eclipse plugins that depend on a bundle that contains some third-party jar/dll resources, and exports the packages those resources contain. When I export and drop all this into eclipse/plugins, the plugins work perfectly. However, when I make a new plugin dependent on my resource bundle in this new workspace, I can't s...

ActiveMQ + OSGi XML xBean configuration problem

Hi folks, I've been having problems configuring an ActiveMQ broker through an xBean-parsed external XML file. At this point, ANY help, tips, pointers, hints or even cheering-up are appreciated. Here's my issue: I'm trying to use an external .xml file to configure a broker. I have the following code in my spring bundle context: <bean i...

Using Endpoint.publish() in OSGi to publish web service?

Is there a way to use Endpoint.publish() in an OSGi bundle to publish a web service? When I run the code from the command line it works, but the same code in a bundle activator produces the following exceptions: Caused by: com.sun.xml.internal.ws.server.ServerRtException: [failed to localize] cannot.load.wsdl(file:/C:/ws/project/org.pro...

Spring WS Osgi samples

We are currently researching OSGI at work and I need to provide a proof of concept on its use with spring dm and spring-ws in the appropriate application server(tomcat / jetty).Does anyone have a example or a tutorial or any links that can help in my research? I have for the past dew days been looking for some samples on how to implemen...

Package uses conflict: Import-Package: de.foo.bar; version="0.0.0"

Hi, I try to install a bundle in an OSGi environment (FUSE ESB) but do not manage to get it resolved. The error message is: The bundle could not be resolved. Reason: Package uses conflict: Import-Package: de.foo.bar; version="0.0.0" My bundle imports the package de.foo.bar. The bundle which exports the package de.foo.bar does this wi...

Installing several bundles from one source

I'm using Apache Karaf as an OSGi container. Karaf have url wrapper which can install bundles directly from maven repository > install mvn:com.farpost.billing/background-service/2.2-SNAPSHOT Bundle ID: 139 All works just fine. But I want to start several bundles from given source. This make sense if new bundle occasionally broke produ...

Question about loading DLL (using JNA) inside an OSGi bundle

Currently I have the DLL files (rfid.dll;cpl.dll;rfidtx.dll;) at the root of my bundle. I make a Utility Bundle to hold the jna.jar, and export com.sun.jna, com.sun.jna.ptr as services. The Manifest for the bundle in question looks something like this: Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: ServiceImpl Bundle-Sym...

Deserialization of arrays of custom type in OSGi

Hello, I'm trying to send objects from bundles over a dedicated communication bundle to an other framework. For communication I use Java standard serialization (with ObjectStreams) over TCP/IP. Communication flow is the following: A sender-bundle will pass serializable objects to a transmit-sender which will serialize the objects and ...

automating telnet with Groovy

I am doing a gradle/OSGi build.... I have the OSGi bundle building fine, but want to automate the bundle deployment. I don't think there is a gradle task for this, so this becomes a groovy question. To deploy to an osgi container you do the following: 1) telnet to the OSGi container port 2) send ss command to list the bundles 3) pars...

OSGI: Is it possible Import-package and add a visibility:=reexport ?

i would like to import a package rather than require bundle in a manifest and have all bundles that require the former package inherit the imported package. I am assuming that it is possible to set visibility: reexport, but Eclipse does not complain if i had this option... ...

Logging OSGi via JMX or other way

Hello everybody, I’m a beginner with the technologies OSGi and JMX, so I have some questions and I hope to have answers. I want to recover the OSGi Log object for display logs on my console eclipse and then display them on a jsp page. Haw can I access to Log OSGi bundle via the JMX’ Object MBeanServerConnection? Haw can I have LogEn...

Tutorial for ServiceMix 4.2

I try to figure out a start with Apache ServiceMix 4.2 Sadly the tutorials on the homesite seem pretty much outdated ... with 4.2 the services seem to be started out of the box and be configured with karaf, while the tutorials talk about copying files into a "hotdeploy" folder that doesn't exist anymore in 4.2 ... Can someone point me ...

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...

How do I change certain plugins under Eclipse 3.6 product export to deploy as exploded Jars?

I am using Eclipse 3.6 product export to build an Equinox-based OSGi application. I would like to be able to configure some of my plugins to deploy exploded instead of as JARs. Is there a way to do this? ...