Home » Archived » Eclipse Communications Framework (ECF) » Starting ECF Server from Equinox Console
|
Re: Starting ECF Server from Equinox Console [message #619026 is a reply to message #619025] |
Thu, 23 August 2007 03:25 |
Scott Lewis Messages: 1038 Registered: July 2009 |
Senior Member |
|
|
Hi Kent,
kent wrote:
> argh. I am trying to start an ecf server from a headless linux sever.On
> windows I can get it to work with the eclipse.exe but nothing seems to
> work in linux.
>
> The first thing I tried in linux was to start it from eclipse like this:
> ./eclipse -nosplash -consolelog -application
> org.eclipse.ecf.provider.AppGenericServer
>
> but no dice because eclipse is looking for gtk dependencies:
> ./eclipse: error while loading shared libraries: libgtk-x11-2.0.so.0:
> cannot open shared object file: No such file or directory
Hmmm. I wouldn't expect this as the AppGenericServer doesn't have any
non-console UI itself...so I wouldn't expect libgtk to need to be
loaded...but maybe there is something in eclipse linux impl that
loads/needs this library regardless.
>
> ok so I try with osgi. But I can`t even get that to work on windows.
> I downloaded equinox and kick start osgi so:
> java -Declipse.application.registerDescriptors=true
> -Declipse.ignoreApp=false -jar org.eclipse.osgi_3.3.0.v20070530.jar
> -console -noExit
>
> osgi starts up but in the log it tells me:
> java.lang.IllegalStateException: Unable to acquire application service.
> Ensure that the org.eclipse.core.runtime bundle is resolved and started
> (see config.ini).
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:72)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.main(Eclipse Starter.java:149)
This seems the same stack trace as Equinox bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=193596
I see that the bug above has been fixed in 3.3.1, are you in a position
to try that? (it's not actually been released yet so you would have to
get integration builds).
Are you seeing something different than what's described here?
http://wiki.eclipse.org/ECF_Servers#Starting_from_Equinox_Co nsole
If you are, then please let us know and file a bug report and we'll help
diagnose further.
>
>
> so i naively copy the runtime plugins from eclipse plugins directory
> into the equinox plugins directory and try again, but still no dice.
>
> in the osgi window when I issue this command:
> startApp org.eclipse.ecf.provider.GenericServer 3333 it pops up with the
> menu of valid commands, as if to say startApp is not valid.
That's really surprising. Unfortunately I don't have any insight about
this...as it's fully equinox territory.
>
> Lastly how do I update equinox with the ecf plugins? I suppose I
> download the sdk and copy the plugins over, but this is not doucmented.
> In other words I merge the plugins from the ecf sdk into the equinox
> plugins directory (and the features directory).
>
> Any help would be grand.
Here it describes how to setup ECF Generic Server with Equinox:
http://wiki.eclipse.org/ECF_Servers#Setting_up_an_ECF_Generi c_Server_with_Equinox
In summary, what's needed is
1) Equinox base distribution
2) The Jobs bundle (from Eclipse)
3) ECF SDK bundles
But the problems you describe above have mostly to do with Equinox not
working as expected (bug, startApp problems, etc).
Please let us know if this is not helpful, and we will help further.
Scott
|
|
|
Re: Starting ECF Server from Equinox Console [message #619029 is a reply to message #619026] |
Thu, 23 August 2007 20:25 |
kent gibson Messages: 114 Registered: July 2009 |
Senior Member |
|
|
cool, I got it to work (with equinox)!
I was doing a couple of stupid things.
Namely the config.ini was not there. I never saw one in the equinox download
so I didn't realize it was important. I updated the wiki a bit with my setup
that works on a linux headless build. Also I am using 3.3.1. I will probably
add some more details later to the wiki when I feel a bit more confident.
I spoke to my colleague about the gtk problem. He reckons that something
else is throwing up an error and eclipse wants to bring up a dialog ( gtk is
a widget libary for linux.), much like the jvm crash dialog. I played with
it a bit but I never got it working with an eclipse linux build.
thanks again for the help.
"Scott Lewis" <slewis@composent.com> schrieb im Newsbeitrag
news:46CCFE0E.4090801@composent.com...
> Hi Kent,
>
> kent wrote:
>> argh. I am trying to start an ecf server from a headless linux sever.On
>> windows I can get it to work with the eclipse.exe but nothing seems to
>> work in linux.
>>
>> The first thing I tried in linux was to start it from eclipse like this:
>> ./eclipse -nosplash -consolelog -application
>> org.eclipse.ecf.provider.AppGenericServer
>>
>> but no dice because eclipse is looking for gtk dependencies:
>> ./eclipse: error while loading shared libraries: libgtk-x11-2.0.so.0:
>> cannot open shared object file: No such file or directory
>
> Hmmm. I wouldn't expect this as the AppGenericServer doesn't have any
> non-console UI itself...so I wouldn't expect libgtk to need to be
> loaded...but maybe there is something in eclipse linux impl that
> loads/needs this library regardless.
>
>>
>> ok so I try with osgi. But I can`t even get that to work on windows.
>> I downloaded equinox and kick start osgi so:
>> java -Declipse.application.registerDescriptors=true -Declipse.ignoreApp=false
>> -jar org.eclipse.osgi_3.3.0.v20070530.jar -console -noExit
>>
>> osgi starts up but in the log it tells me:
>> java.lang.IllegalStateException: Unable to acquire application service.
>> Ensure that the org.eclipse.core.runtime bundle is resolved and started
>> (see config.ini).
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:72)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.main(Eclipse Starter.java:149)
>
> This seems the same stack trace as Equinox bug:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=193596
>
> I see that the bug above has been fixed in 3.3.1, are you in a position to
> try that? (it's not actually been released yet so you would have to get
> integration builds).
>
> Are you seeing something different than what's described here?
>
> http://wiki.eclipse.org/ECF_Servers#Starting_from_Equinox_Co nsole
>
> If you are, then please let us know and file a bug report and we'll help
> diagnose further.
>
>>
>>
>> so i naively copy the runtime plugins from eclipse plugins directory into
>> the equinox plugins directory and try again, but still no dice.
>>
>> in the osgi window when I issue this command:
>> startApp org.eclipse.ecf.provider.GenericServer 3333 it pops up with the
>> menu of valid commands, as if to say startApp is not valid.
>
>
> That's really surprising. Unfortunately I don't have any insight about
> this...as it's fully equinox territory.
>
>
>>
>> Lastly how do I update equinox with the ecf plugins? I suppose I
>> download the sdk and copy the plugins over, but this is not doucmented.
>> In other words I merge the plugins from the ecf sdk into the equinox
>> plugins directory (and the features directory).
>>
>> Any help would be grand.
>
> Here it describes how to setup ECF Generic Server with Equinox:
>
> http://wiki.eclipse.org/ECF_Servers#Setting_up_an_ECF_Generi c_Server_with_Equinox
>
> In summary, what's needed is
>
> 1) Equinox base distribution
> 2) The Jobs bundle (from Eclipse)
> 3) ECF SDK bundles
>
> But the problems you describe above have mostly to do with Equinox not
> working as expected (bug, startApp problems, etc).
>
> Please let us know if this is not helpful, and we will help further.
>
> Scott
|
|
| | | |
Re: Starting ECF Server from Equinox Console [message #619573 is a reply to message #619041] |
Mon, 10 September 2007 20:33 |
kent gibson Messages: 114 Registered: July 2009 |
Senior Member |
|
|
cool thanks, got it working.
"Scott Lewis" <slewis@composent.com> schrieb im Newsbeitrag
news:46D5B590.3060106@composent.com...
> Hi Kent,
>
> kent wrote:
>> thanks for the info.
>>
>> Sorry to sound dumb but it seems I need some help with some basics.
>>
>> Let me outline what I need to do.
>> I have a generic ecf server.
>> I have an rcp application.
>> I want to use the Collaboration Connect Wizard & the Collaboration Chat
>> View.
>> To keep it simple I suppose I would like to kick start the Collaboration
>> Connect Wizard with an action.
>>
>> Unless I missed a document I can't find something that covers this.
>
> There's not any docs, because the org.eclipse.ecf.example.collab pre-dates
> a lot of the ECF APIs now in existence (e.g. datashare, shared object API,
> others) and really should/will be extensively refactored
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=160633
>
> But if you would like to use the Collaboration Connect Wizard you can do
> so by referring to the class
> org.eclipse.ecf.internal.example.collab.actions.JoinGroupWiz ardAction. For
> example, the below markup is from the plugin.xml in
> org.eclipse.ecf.example.collab plugin:
>
> <extension
> point="org.eclipse.ui.actionSets">
> <actionSet
> id="org.eclipse.ecf.example.collab.ui.actionSet"
> label="Communications"
> visible="false">
> <action
>
> class=" org.eclipse.ecf.internal.example.collab.actions.JoinGroupWiz ardAction "
> icon="icons/collaboration.gif"
> id="org.eclipse.ecf.example.collab.action2"
> label="Connect Workspace to Collaboration Group..."
> style="push"
> toolbarPath="org.eclipse.ecf.ui.collaboration"
> tooltip="Connect Workspace to Collaboration Group">
> </action>
> </actionSet>
> </extension>
>
> This isn't recommended, however, because the class(es) are in an internal
> package (org.eclipse.ecf.internal.*), and are likely to change given the
> above refactoring bug.
>
> Scott
|
|
|
Re: Starting ECF Server from Equinox Console [message #624002 is a reply to message #619025] |
Wed, 30 July 2008 15:40 |
Cyril Lakech Messages: 4 Registered: July 2009 |
Junior Member |
|
|
Hi,
I'm trying to get a standalone Equinox-ECF server. But i need help.
Please could someone provide a config.ini file that works ?
This is mine, but i get errors :
osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@3:start
eclipse.ignoreApp=true
osgi.noShutdown=true
errors :
!SESSION 2008-07-30 17:34:45.753 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Framework arguments: -application org.eclipse.ecf.provider.AppGenericServer
Command-line arguments: -os win32 -ws win32 -arch x86 -debug -consoleLog -console -application org.eclipse.ecf.provider.AppGenericServer
!ENTRY org.eclipse.osgi 2 0 2008-07-30 17:34:47.113
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-07-30 17:34:47.113
!MESSAGE Bundle update@plugins/org.eclipse.core.runtime_3.4.0.v20080512.jar was not resolved.
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-07-30 17:34:47.113
!MESSAGE Missing required bundle org.eclipse.core.contenttype_[3.3.0,4.0.0).
!ENTRY org.eclipse.osgi 2 0 2008-07-30 17:34:47.129
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-07-30 17:34:47.129
!MESSAGE Bundle update@plugins/org.eclipse.core.runtime_3.4.0.v20080512.jar [9] was not resolved.
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-07-30 17:34:47.129
!MESSAGE Missing required bundle org.eclipse.core.contenttype_[3.3.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-07-30 17:34:47.129
!MESSAGE Missing optionally required bundle org.eclipse.core.runtime.compatibility.auth_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-07-30 17:34:47.129
!MESSAGE Missing imported package org.eclipse.core.internal.runtime.auth_0.0.0.
Thanks a lot
|
|
|
Re: Starting ECF Server from Equinox Console [message #624005 is a reply to message #624002] |
Thu, 31 July 2008 16:36 |
Scott Lewis Messages: 1038 Registered: July 2009 |
Senior Member |
|
|
Hi Gattino,
From your error messages below, it seems that although your config.ini
is probably ok, you don't have some necessary dependent bundles
available in the server plugins directory (org.eclipse.osgi,
org.eclipse.core.runtime, org.eclipse.core.contenttype).
One way to get an accurate list of plugins required for a given ECF
server is within Eclipse:
Open Run->Run Configurations...
Create a new OSGi Framework
Uncheck all bundles
Check Necessary ECF bundles (and needed providers) via Bundles tab
Choose Add Required Bundles
Then you can consult the list of bundles selected and get these from the
appropriate location (or use the PDE export facilities).
Thanks,
Scott
Gattino wrote:
> Hi,
>
> I'm trying to get a standalone Equinox-ECF server. But i need help.
>
> Please could someone provide a config.ini file that works ?
>
>
> This is mine, but i get errors :
> osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@3:start
> eclipse.ignoreApp=true
> osgi.noShutdown=true
>
> errors :
>
> !SESSION 2008-07-30 17:34:45.753 -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.4.2_05
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
> Framework arguments: -application org.eclipse.ecf.provider.AppGenericServer
> Command-line arguments: -os win32 -ws win32 -arch x86 -debug -consoleLog -console -application org.eclipse.ecf.provider.AppGenericServer
>
> !ENTRY org.eclipse.osgi 2 0 2008-07-30 17:34:47.113
> !MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
> !SUBENTRY 1 org.eclipse.osgi 2 0 2008-07-30 17:34:47.113
> !MESSAGE Bundle update@plugins/org.eclipse.core.runtime_3.4.0.v20080512.jar was not resolved.
> !SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-07-30 17:34:47.113
> !MESSAGE Missing required bundle org.eclipse.core.contenttype_[3.3.0,4.0.0).
>
> !ENTRY org.eclipse.osgi 2 0 2008-07-30 17:34:47.129
> !MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
> !SUBENTRY 1 org.eclipse.osgi 2 0 2008-07-30 17:34:47.129
> !MESSAGE Bundle update@plugins/org.eclipse.core.runtime_3.4.0.v20080512.jar [9] was not resolved.
> !SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-07-30 17:34:47.129
> !MESSAGE Missing required bundle org.eclipse.core.contenttype_[3.3.0,4.0.0).
> !SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-07-30 17:34:47.129
> !MESSAGE Missing optionally required bundle org.eclipse.core.runtime.compatibility.auth_[3.2.0,4.0.0).
> !SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-07-30 17:34:47.129
> !MESSAGE Missing imported package org.eclipse.core.internal.runtime.auth_0.0.0.
>
>
> Thanks a lot
|
|
|
|
|
Goto Forum:
Current Time: Wed Sep 25 19:07:14 GMT 2024
Powered by FUDForum. Page generated in 0.04872 seconds
|