Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » error deploying first standalone osgi app
error deploying first standalone osgi app [message #84736] Thu, 22 March 2007 12:41 Go to next message
David Donohue is currently offline David DonohueFriend
Messages: 104
Registered: July 2009
Senior Member
Hello!
I have an Equinox app working & launching in Eclipse 3.2.2.

I am trying to get it working as a standalone app I can deploy.

I am following the Equinox QuickStart Guide
http://www.eclipse.org/equinox/documents/quickstart.php

Specifically my folder structure looks like this

EquinoxJettyApp
org.eclipse.osgi.jar
configuration/
config.ini
plugins/
org.eclipse.equinox.common/
org.eclipse.equinox.common_3.2.0.v20060603.jar
org.eclipse.update.configurator/
org.eclipse.update.configurator_3.2.2.R32x_v20070111.jar


When I run this
java -jar org.eclipse.osgi.jar -configuration configuration\config.ini -consoleLog -debug -clean

I get the below error.
!ENTRY org.eclipse.osgi 4 0 2007-03-22 07:20:33.403
!MESSAGE Error reading configuration: C:\workspace\EquinoxJettyApp\configuration\config.ini\org.ec lipse.osgi\.mana
er\.fileTableLock (The system cannot find the path specified)

Thanks for any suggestions!
David
Re: error deploying first standalone osgi app [message #84768 is a reply to message #84736] Thu, 22 March 2007 13:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

Why have you got the extra directory for org.eclipse.equinox.common/ in there? That isn't what you've got specified in your config.ini, and the update configurator just looks for plugins/* and not plugins/*/*

Change it to

plugins/org.eclipse.equinox.common_3.2.0.v20060603.jar

and it should work.

Alex.
Re: error deploying first standalone osgi app [message #84782 is a reply to message #84768] Thu, 22 March 2007 13:39 Go to previous messageGo to next message
David Donohue is currently offline David DonohueFriend
Messages: 104
Registered: July 2009
Senior Member
Alex,
Thanks for quick reply!

As you suggested, I changed my project to

org.eclipse.osgi.jar
configuration/
--config.ini
plugins/
--org.eclipse.equinox.common_3.2.0.v20060603.jar
--org.eclipse.update.configurator_3.2.2.R32x_v20070111.jar

and changed config.ini to

osgi.bundles=plugins/org.eclipse.equinox.common_3.2.0.v20060603.jar@2:start, plugins/org.eclipse.update.configurator_3.2.2.R32x_v20070111.jar@3:start
eclipse.ignoreApp=true

but I still get same error. I am wondering why the OSGI engine is looking inside a nonexistant folder at
configuration/config.ini/org.eclipse.osgi/

whereas it has created this folder structure (and should be looking in here I would think)
configuration/org.eclipse.osgi/

Thanks!
David
Re: error deploying first standalone osgi app [message #84797 is a reply to message #84782] Thu, 22 March 2007 13:57 Go to previous messageGo to next message
David Donohue is currently offline David DonohueFriend
Messages: 104
Registered: July 2009
Senior Member
Aha! If I change my run command to this


java -jar org.eclipse.osgi.jar -configuration configuration -consoleLog -debug -clean -dev

then it works! So the -configuration argument wants just the folder path to the config.ini file.

So looks like Equinox/OSGi is properly starting my 2 bundles.
Thanks!!
David
Re: error deploying first standalone osgi app [message #84812 is a reply to message #84782] Thu, 22 March 2007 13:58 Go to previous message
David Donohue is currently offline David DonohueFriend
Messages: 104
Registered: July 2009
Senior Member
Aha! If I change my run command to this


java -jar org.eclipse.osgi.jar -configuration configuration -consoleLog -debug -clean -dev

then it works! So the -configuration argument wants just the folder path to the config.ini file.

So looks like Equinox/OSGi is properly starting my 2 bundles.
Thanks!!
David
Previous Topic:[DS] Failure to activate a component does not reset already bound dependencies
Next Topic:Can features be bundled as JARs ?
Goto Forum:
  


Current Time: Fri Apr 26 03:48:17 GMT 2024

Powered by FUDForum. Page generated in 0.04242 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top