Start equinox using jar [message #520505] |
Fri, 12 March 2010 16:23 |
Salim Erradey Messages: 4 Registered: March 2010 |
Junior Member |
|
|
I am working on an eclipse RAP application that deploys into Jetty into OSGI. I've successfully deployed the app with eclipse.exe and windows launcher but I want to make sure that can deploy in a multi-platform environment and so I tried to use the following command:
java -jar org.eclipse.osgi_3.5.2.R35x_v20100126.jar -console
I am getting errors with my configuration .ini file where osgi cannot find bundles. Here is my directory layout for both eclipse and jar version and the config.ini:
Eclipse version works fine and is layed out as follows:
cpb/configuration/config.ini
cpb/features/cpb.rap.osgi.feature_1.0.0.../feature.xml
cpb/plugins/ all the plugins and the osgi windows launcher
I run eclipse.exe -console under cpb and it works.
the config.ini has the following content:
#Normally the eclipse launcher expects an eclipse app
eclipse.ignoreApp=true
#Do not terminate idle OSGi runtime
osgi.noShutdown=true
#Jetty will use this property to determine the port
org.osgi.service.http.port=7070
#This is what shall be started
osgi.bundles=org.eclipse.equinox.common@2:start,\
org.eclipse.update.configurator@3:start,\
org.eclipse.rap.ui@4:start,\
cpb.rap.osgi.feature@4:start,\
org.eclipse.equinox.http.jetty@4:start,\
org.eclipse.equinox.http.registry@4:start
osgi.bundles.defaultStartLevel=4
The jar version does not work is layed out as follows:
cpb/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
cpb/org.eclipse.equinox.common_3.5.0.v20090520-1800.jar
cpb/org.eclipse.update.configurator_3.3.0.v20090312.jar
cpb/configuration/config.ini (same as eclipse version)
cpb/features/cpb.rap.osgi.feature_1.0.0.../feature.xml
cpb/plugins/ all the plugins except those under cpb
I run under cpb the following with no success:
java -jar org.eclipse.osgi_3.5.2.R35x_v20100126.jar -console
I get a log under the cpb/configuration that indicates that it cannot find bundles that I want to start.
What is the syntax in the config.ini to reference bundles to start that are not in the same directory as OSGI.
Your input is much appreciated.
Thanks in advance,
Salim.
[Updated on: Fri, 12 March 2010 16:39] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03788 seconds