Use of plain old Eclipse Plugins with Virgo Tooling [message #872469] |
Wed, 16 May 2012 03:28  |
Eclipse User |
|
|
|
Hi,
I wonder if it is by some chance possible to use plain old eclipse plugin bundles within virgo tooling?
Background: I have an RCP application that communicates with a database via a server layer installed in a tomcat. I have some common code that is used on both sides, client and server. In order to run this code on RCP it is wrapped in a simple Eclipse plugin bundle.
Now I would like to OSGI-ify the server component and I need to run these eclipse plugin bundles as OSGI bundles in the Virgo server. Of course this works when I use a compiled bundle and drop it into the virgo repository. The problem arises when I try to use this bundle using virgo tooling from within eclipse.
I have tried to add the OSGI Bundle nature to the respective plugin project. This enables me to add the plugin to an OSGI Plan Bundle. But if I start the server I get an exception indicating that the manifest is not available.
[2012-05-16 08:52:55.420] TCP Connection(6)-127.0.0.1 <DE0002E> Installation of par 'TestWS.par' version '1.0.0' failed. java.lang.UnsupportedOperationException: Cannot open an input stream for 'C:\Programme_wa\virgo\virgo-tomcat-server-3.0.3.RELEASE\work\org.eclipse.virgo.kernel.deployer_3.0.3.RELEASE\staging\TestWS.par-1\bundle\TestWS.par-1-TestEclipsePlugin\0.0.0\TestEclipsePlugin.jar\META-INF\MANIFEST.MF' as it does not exist
I noticed that within the OSGI Bundles the META-INF/Manifest.mf is always part of a source folder whereas in eclispe plugins, the META-INF/Manifest is always located in the plugin-root. If I move the META-INF folder into a source folder, the bundle is started correctly in virgo but in that case the eclipse plugin is not recognized from the eclipse application launcher any more.
Has anybody a solution for this?
Regards,
Thorsten
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05710 seconds