Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] run CDO Server in OSGI
[CDO] run CDO Server in OSGI [message #557950] Thu, 09 September 2010 14:52 Go to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi Eike,

From my previous post, I asked about exporting
org.eclipse.emf.cdo.server and running it from the commandline outside
eclipse.

Now, my question would be, how to make the cdo.server auto-start as an
OSGI bundle?

I see that "org.eclipse.emf.cdo.server" declares this:

Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)

I believe the required import for OSGI would have to be:

Import-Package: org.osgi.framework;version="1.3.0"


This would avoid the eclipseStarter which complains for an Application
to be defined.... Hence the need to make it OSGI.

I could perhaps contribute such an OSGI/Equinox bundle, but I see there
is a lot of classes defined in .cdo server, so not sure about potential
duplication...

Cheers Christophe
Re: [CDO] run CDO Server in OSGI [message #558100 is a reply to message #557950] Fri, 10 September 2010 08:02 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020002070108050201050404
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Christophe,

Comments below...

Cheers
/Eike

Contact: http://www.esc-net.de Blogger <http://thegordian.blogspot.com>Twitter <http://twitter.com/eikestepper>Linkedin <http://de.linkedin.com/in/eikestepper>Xing <http://www.xing.com/profile/Eike_Stepper>
Article: What exactly is inside that p2 repository? < http://thegordian.blogspot.com/2010/05/what-exactly-is-insid e-that-p2.html>

I'm going to Eclipse Summit Europe 2010 <http://www.eclipsesummit.org/>



Am 09.09.2010 16:52, schrieb Christophe Bouhier:
> Hi Eike,
>
> From my previous post, I asked about exporting org.eclipse.emf.cdo.server and running it from the commandline outside eclipse.
You mean OSGi without Eclipse?

>
> Now, my question would be, how to make the cdo.server auto-start as an OSGI bundle?
I have no clue whether auto-start for bundles exists in pure OSGi or how it would have to be configured. I use to declare an IApplication to have an entry point for my code.

>
> I see that "org.eclipse.emf.cdo.server" declares this:
>
> Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)
In what version of CDO? I rather see this:

Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)";_*resolution:=optional*_,

>
> I believe the required import for OSGI would have to be:
>
> Import-Package: org.osgi.framework;version="1.3.0"
>
>
> This would avoid the eclipseStarter
What is that?

> which complains for an Application to be defined.... Hence the need to make it OSGI.
"it" == what?

>
> I could perhaps contribute such an OSGI/Equinox bundle
I'm confused. What would that bundle be good for?


> , but I see there is a lot of classes defined in .cdo server, so not sure about potential duplication...
>
> Cheers Christophe
>
>
>

--------------020002070108050201050404
Content-Type: multipart/related;
boundary="------------050002020507010508060407"


--------------050002020507010508060407
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hi Christophe,<br>
<br>
Comments below...<br>
<br>
<!--WISESTAMP_SIG_76785_START--><span style="color: black;">
<div dir="ltr">
<div>Cheers<br>
/Eike<br>
<br>
</div>
<div style="padding: 5px 0pt; font-family: arial,sans-serif;
font-size: 13.3px;"><span style="color: gray;">Contact: <a
href="http://www.esc-net.de">http://www.esc-net.de</a></span>
<a href="http://thegordian.blogspot.com" style="padding: 0pt
2px; color: blue; font-size: 10pt;" _service=""><img
src="cid:part1.08090507.02080500@esc-net.de" alt="Blogger"
style="vertical-align: middle; padding-bottom: 5px;"
border="0" height="16" width="16"></a><a
href="http://twitter.com/eikestepper" style="padding: 0pt
2px; color: blue; font-size: 10pt;" _service=""><img
src="cid:part2.06090007.09050005@esc-net.de" alt="Twitter"
style="vertical-align: middle; padding-bottom: 5px;"
border="0" height="16" width="16"></a><a
href="http://de.linkedin.com/in/eikestepper" style="padding:
0pt 2px; color: blue; font-size: 10pt;" _service=""><img
src="cid:part3.06090506.07040405@esc-net.de"
alt="Linkedin" style="vertical-align: middle;
padding-bottom: 5px;" border="0" height="16" width="16"></a><a
href="http://www.xing.com/profile/Eike_Stepper"
style="padding: 0pt 2px; color: blue; font-size: 10pt;"
_service=""><img
src="cid:part4.08090305.03080901@esc-net.de" alt="Xing"
style="vertical-align: middle; padding-bottom: 5px;"
border="0" height="16" width="16"></a></div>
<div style="color: gray; font-size: 13.3px; padding-bottom:
5px;">Article: <span style="color: blue; text-decoration:
underline;"><a
href=" http://thegordian.blogspot.com/2010/05/what-exactly-is-insid e-that-p2.html"
undefined="">What exactly is inside that p2 repository?</a></span></div>
<div><br>
<a href="http://www.eclipsesummit.org/"><img
src="cid:part5.05040407.00040104@esc-net.de" alt="I'm
going to Eclipse Summit Europe 2010" border="0"
height="100" width="130"></a>
<br>
<br>
</div>
</div>
</span><!--WISESTAMP_SIG_76785_END--><br>
<br>
Am 09.09.2010 16:52, schrieb Christophe Bouhier:
<blockquote cite="mid:i6asbc$lk3$1@build.eclipse.org" type="cite">Hi
Eike,
<br>
<br>
From my previous post, I asked about exporting
org.eclipse.emf.cdo.server and running it from the commandline
outside eclipse.
<br>
</blockquote>
You mean OSGi without Eclipse?<br>
<br>
<blockquote cite="mid:i6asbc$lk3$1@build.eclipse.org" type="cite">
<br>
Now, my question would be, how to make the cdo.server auto-start
as an OSGI bundle?
<br>
</blockquote>
I have no clue whether auto-start for bundles exists in pure OSGi or
how it would have to be configured. I use to declare an IApplication
to have an entry point for my code.<br>
<br>
<blockquote cite="mid:i6asbc$lk3$1@build.eclipse.org" type="cite">
<br>
I see that "org.eclipse.emf.cdo.server" declares this:
<br>
<br>
Require-Bundle:
org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)
<br>
</blockquote>
In what version of CDO? I rather see this:<br>
<br>
Require-Bundle:
org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)";<font
color="#ff0000"><u><b>resolution:=optional</b></u></font >,<br>
<br>
<blockquote cite="mid:i6asbc$lk3$1@build.eclipse.org" type="cite">
<br>
I believe the required import for OSGI would have to be:
<br>
<br>
Import-Package: org.osgi.framework;version="1.3.0"
<br>
<br>
<br>
This would avoid the eclipseStarter </blockquote>
What is that?<br>
<br>
<blockquote cite="mid:i6asbc$lk3$1@build.eclipse.org" type="cite">which
complains for an Application to be defined.... Hence the need to
make it OSGI.
<br>
</blockquote>
"it" == what?<br>
<br>
<blockquote cite="mid:i6asbc$lk3$1@build.eclipse.org" type="cite">
<br>
I could perhaps contribute such an OSGI/Equinox bundle</blockquote>
I'm confused. What would that bundle be good for?<br>
<br>
<br>
<blockquote cite="mid:i6asbc$lk3$1@build.eclipse.org" type="cite">,
but I see there is a lot of classes defined in .cdo server, so not
sure about potential duplication...
<br>
<br>
Cheers Christophe
<br>
<br>
<br>
<br>
</blockquote>
</body>
</html>

--------------050002020507010508060407
Content-Type: image/png;
name="blogger.png"
Content-Transfer-Encoding: base64
Content-ID: <part1.08090507.02080500@esc-net.de>
Content-Disposition: inline;
filename="blogger.png"

iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/I NwWK6QAAABl0
RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAADkUExURf9xEv9m AP////9lAP+Q
SP9kAP9jAP9fAP9nAf9vD//x5/9hAP/iz/9iAP9eAP/s4P9vEP9yEv9qAP9q B/+LRP+we/90
I/+RSP/z6/+jZv/y6P+8kP/59f5yE//awf/Ttv9hAf9nAv/17v+4if9sC/9o BP+bWP/r3v/k
0v+wfP+QRv/o2f9gAP+OQ/93HP/l0/+0gv/Rsv/9/P/j0P+pcP+0hf/dx//D m//+/v+td/9o
AP+NQv/Yvf+zgv/x6P/q2/9xG//p2f9pAP/s3//8+fxxE//ex/+AK/9oCP/j 0f/Uuv///4Xw
StcAAABMdFJOU/////////////////////////////////////////////// ////////////
/////////////////////////////////////////wCejeTMAAAAsklEQVR4 2kSP1w6DMBAE
7cMGQg0hvffee++d//+f2IaIeTlppNXtIo88UAjxEIlhjCUG5lwJQuwoulqh FuUGcWGSiTF7
bt40EEoXBKtyIPQS5PffFqyHlhCS2obTK5kDmJ8lXxgA0zsPXer0L3zSUVmI D9ip3SC+hKwQ
2CxCtXYYL25gu1S8bf4jib5fTM+MNE079jom/+KwJUojwnAVifcQ46jM4M23 BHmkEK53iPcT
YACE/Q4KzoVQVwAAAABJRU5ErkJggg==
--------------050002020507010508060407
Content-Type: image/png;
name="twitter.png"
Content-Transfer-Encoding: base64
Content-ID: <part2.06090007.09050005@esc-net.de>
Content-Disposition: inline;
filename="twitter.png"

iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/ AP+gvaeTAAAA
CXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAQAAAAEABcxq3DAAABxUlE QVQ4y4WTMW4U
QRBFX3X3zoy8FgZphTCYAEg4gAPEYbgBJEgEXIALkHMfAjIwItnAAfLK2JYB r3dmuj7BzI5m
2WBLqqzq//q/fxt9NTmrzo7MCIhgRpWSsaMSgEta5czcjYtWTKPxfALZXTEE 2wmAxLXD11VL
BZy2MAuJB/iuA3oAoJb4lUUCVkAGTM5t06gjATMjBiPFaFsADvx1MTFoBd/q zHkMeLcLgCEe
JqjbrCJ1IAkghGDz20Z/XEzMMMTnZTsSYANMAl7fq7YlZOBaUCCk4WowwyRA mBmL7CxcmwDu
rh+rzKU71YhQ/dnr8VbiaRF4MgmbAAZkxJU7lRk3Wby5W3FcJlbSICAjZjFS jJ42rSXWgoWL
fYPfLvaCMTVxJ0XoJTmQ/stF6GPABDhzcepi7uJ74yQDuXcDErjjGhkwNvHx xCjMOMkCg3eX
S85zyVEMtGt24GWVxvsM5yi3+nBV8/7iBmJv0gaZQMZhNL4cHXBYdDkY7HQL vD0oebVfQuud
a8FGHSAaP1vnpMmbHgDEECwafLq/x8fZlGfJKCVKiapvXLyoEsdl3JYwBMpd uW1YEjlz4aMh
AY+iURiU/Vf/B6EE4kjfs5YLAAAAAElFTkSuQmCC
--------------050002020507010508060407
Content-Type: image/png;
name="linkedin.png"
Content-Transfer-Encoding: base64
Content-ID: <part3.06090506.07040405@esc-net.de>
Content-Disposition: inline;
filename="linkedin.png"

iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/ AP+gvaeTAAAA
CXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAQAAAAEABcxq3DAAACGklE QVQ4y6WTO2sU
URTHf3dmdp0kTnZJzErSrPjKYqNY2GljodhoLRLB1sLCD2DrZxAsfCAE/AaC grY+SBQSFTSC
xizGzZ3MTiYz92UxY5KNYuOBP+eew/3/73lwxfWHT9yjuR8YL0CwyxygAAPo Cqr0ntFcvjBB
cH++x8WzJzm8v/EnWVdks0PEgNWO95/XePD4HZ4ADk6MAhD6Hs26/08yBjwr ODrZBK0JADyv
LP7GsX2Evse9xR5Lsvgr+XfsO7ctoKwj9AWh7wEQIFCF+3sFGjCmgiJwQFwY Yge3X3cZrwXM
r2SDg9tJ1rokaw1alRXI3NAO61w60AAHTkE7qtNu1PjSUywsb3L60AgjNcHz hZgXb39WApoA
C3FqsIGjMxYC8OZbxlQU0GmFTLdCznWireV0pobYSDKevuzilMZDg0wN/cxu XdrMLVqX53TT
cu3OJ87cmmdlrQBgemoYKTMwqhSI+4Z0QMBhjANgcTnj1UdJHGd8Xc0AmBit Ecu0moGGODH0
h7cF8tyidSmgjSWWG6AUWpkypw1xLwXA4z8tQINcN/T3moEWtLZbr0mZQV5s 55RFJuU8RHR1
1iWtIzQ8nxOtIVCw9D2lWbM06w4ZZ8wtrEJRcLw9TDMUyKRg7kOPSHQR0ZVZ lyRjMDkOOVAU
FfLS57viHRaJLsHM+THuPtuDUgLTW2U0X672t47rrw82vOu/z9w8xS+MkDzV Boy6+QAAAABJ
RU5ErkJggg==
--------------050002020507010508060407
Content-Type: image/png;
name="xing.png"
Content-Transfer-Encoding: base64
Content-ID: <part4.08090305.03080901@esc-net.de>
Content-Disposition: inline;
filename="xing.png"

iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAACXBIWXMAAAsT AAALEwEAmpwY
AAABsklEQVR42mP8//8/AymAEb+G1x9333hU9fffZy52ZTONrQQ0/P7z7sLd hJfvN7Mw80mL
ROkqTodqAIKvv379+fuXhZmZh50dpv7f49dLLt1LYWD4ryRZCETsrJIIDYdu 3y5fu16AizPE
0CTFzgoo8fPXoxPX/T9/v8DHbWCito6LXRHFDw/evnXpm3D39Ws1Eck9xVmy wqLP3/SevlXC
ysKtLtuoJFmMxdObL17ymzqN8S9LnZddua/VrUcWD149FRNwNFFby8oiiEXD itNnImfN5WTi
nBhu7Gvw5OLdiv+MQnqKU6WEI7AE6+vPnx17+68+fmGrJL0wRe/rl/jbL94r isfqKs1kZuJE
1/Dt16/27TtatmzjYeZcnuZpqnDi3J16FmZxYDhKCAViibiVp8+Ur1v39N0H X12DFRkJ33/u
O3LVk+E/i5xYqq7iNCwaXn769PLTZ0ZGBnFePjE+3j9/3155kPvk9XIudgV9 5XnCfI6Ek8a7
T4dO3vD4+++HlHC4kepywhr+/P0ITEIPXk5jZxXTVpgE1EY48X36euHs7fBv P+8CVespzYGH
FSOpyRsAAuDh4a3m5z0AAAAASUVORK5CYII=
--------------050002020507010508060407
Content-Type: image/gif;
name="130x100_going.gif"
Content-Transfer-Encoding: base64
Content-ID: <part5.05040407.00040104@esc-net.de>
Content-Disposition: inline;
filename="130x100_going.gif"

R0lGODlhggBkANU/AAI6m5unzAFEnevmBBdYp26MwSdhrezv9ShbpkdJl8zT 5iosTk5RczdZ
pUxws4+Vujlhq296sauxNTZpsY6cUjtLl0pBjWmLbMzM3yVUngxDn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FanWOp3D a23UVWLUB4BT
AQDVeO3UG9AAQyAJV+3JzAzKxFYUEdACxAYXNJ0Dhx0B/dwCuQvT8wMXTQ0X TJ3XTX0Uli1v
mJ3Zlg0AoDAEVPPXydzPpF3apg3HT9RonL3arN3aTo03W9AAVi3a+nzatm3a L1DYcOzavN3b
T70BKcAFWnrPtL3Mt33cyK3avr3crL0B0roHDgAAs+3GgU3dyX3dt83c2r3a GwAAJL0HQrAD
ZWDV2F3e173d6I3XGzAGOwDeWvAAPJAEq6vG9F3f9n3f+J3frWsMAMADD+De bHAAP02sBF7g
Bn7gCH7gEQCd7h0EADs=
--------------050002020507010508060407--

--------------020002070108050201050404--


Re: [CDO] run CDO Server in OSGI [message #558141 is a reply to message #558100] Fri, 10 September 2010 10:15 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
On 10-09-10 10:02, Eike Stepper wrote:

See below, Perhaps I am overlooking a fundamental way to run an Eclipse
app outside eclipse with no UI (When running eclipse an Application is
needed). This is why an alternative could be OSGI.

> Hi Christophe,
>
> Comments below...
>
> Cheers
> /Eike
>
> Contact: http://www.esc-net.de Blogger
> <http://thegordian.blogspot.com>Twitter
> <http://twitter.com/eikestepper>Linkedin
> <http://de.linkedin.com/in/eikestepper>Xing
> <http://www.xing.com/profile/Eike_Stepper>
> Article: What exactly is inside that p2 repository?
> < http://thegordian.blogspot.com/2010/05/what-exactly-is-insid e-that-p2.html>
>
> I'm going to Eclipse Summit Europe 2010 <http://www.eclipsesummit.org/>
>
>
>
> Am 09.09.2010 16:52, schrieb Christophe Bouhier:
>> Hi Eike,
>>
>> From my previous post, I asked about exporting
>> org.eclipse.emf.cdo.server and running it from the commandline outside
>> eclipse.
> You mean OSGi without Eclipse?
>
Yes, without eclipse.

>>
>> Now, my question would be, how to make the cdo.server auto-start as an
>> OSGI bundle?
> I have no clue whether auto-start for bundles exists in pure OSGi or how
> it would have to be configured. I use to declare an IApplication to have
> an entry point for my code.
>
>>
>> I see that "org.eclipse.emf.cdo.server" declares this:
>>
>> Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)
> In what version of CDO? I rather see this:
>
> Require-Bundle:
> org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)";_*resolution:=optional*_,
>
mmmh, the version is from my plugin repository which is

>>
>> I believe the required import for OSGI would have to be:
>>
>> Import-Package: org.osgi.framework;version="1.3.0"
>>
>>
>> This would avoid the eclipseStarter
> What is that?
>
This is the eclipse launcher invoked when an application starts, if the
framework is eclipse (Which it is when depending on
org.eclipse.core.runtime).

>> which complains for an Application to be defined.... Hence the need to
>> make it OSGI.
> "it" == what?
'it'=the CDO server bundle

>
>>
>> I could perhaps contribute such an OSGI/Equinox bundle
> I'm confused. What would that bundle be good for?
>
It would not depend on Eclipse, and allow a headless start outside eclipse.

>
>> , but I see there is a lot of classes defined in .cdo server, so not
>> sure about potential duplication...
>>
>> Cheers Christophe
>>
>>
>>
Re: [CDO] run CDO Server in OSGI [message #558144 is a reply to message #558141] Fri, 10 September 2010 10:31 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 10.09.2010 12:15, schrieb Christophe Bouhier:
> On 10-09-10 10:02, Eike Stepper wrote:
>
> See below, Perhaps I am overlooking a fundamental way to run an Eclipse app outside eclipse with no UI (When running eclipse an Application is needed). This is why an alternative could be OSGI.
CDO can run outside OSGi, inside OSGi but outside Eclipse, inside Eclipse. I don't see the problem. Just select an environment of your choice, clarify how you can start code in that environment and do it.

Are you asking for general OSGi help or are you really saying that there's something in CDO that prevents it from being used outside of Eclipse?

>
>>>
>>> Now, my question would be, how to make the cdo.server auto-start as an
>>> OSGI bundle?
>> I have no clue whether auto-start for bundles exists in pure OSGi or how
>> it would have to be configured. I use to declare an IApplication to have
>> an entry point for my code.
What is the reason that you do not deploy org.eclipse.equinox.app and make it start your application?

>>
>>>
>>> I see that "org.eclipse.emf.cdo.server" declares this:
>>>
>>> Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)
>> In what version of CDO? I rather see this:
>>
>> Require-Bundle:
>> org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)";_*resolution:=optional*_,
>>
> mmmh, the version is from my plugin repository which is
.... is what?

Are you really saying your version (whatever it is) does *not* contain the resolution:=optional attribute?

With that attribute CDO does *not* depend on org.eclipse.core.runtime!

>
>>>
>>> I believe the required import for OSGI would have to be:
>>>
>>> Import-Package: org.osgi.framework;version="1.3.0"
>>>
>>>
>>> This would avoid the eclipseStarter
>> What is that?
>>
> This is the eclipse launcher invoked when an application starts, if the framework is eclipse (Which it is when depending on org.eclipse.core.runtime).
Where is written, that you must use a particular framework launcher just because you've deployed a particular bundle?

>
>>> which complains for an Application to be defined.... Hence the need to
>>> make it OSGI.
>> "it" == what?
> 'it'=the CDO server bundle
>
>>
>>>
>>> I could perhaps contribute such an OSGI/Equinox bundle
>> I'm confused. What would that bundle be good for?
>>
> It would not depend on Eclipse,
CDO does *not* depend on Eclipse.

> and allow a headless start outside eclipse.
CDO can start headless outside Eclipse.

Cheers
/Eike


Re: [CDO] run CDO Server in OSGI [message #558148 is a reply to message #558141] Fri, 10 September 2010 10:42 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
When you export your application and don't use the native launcher
executable you can still launch an application.

When you are in the OSGi-Console you can see all applications available
with the apps-command and you can launch an application using startApp
%YOUR_APPLICATION_ID%.

IIRC the command line switch for this is -application
%YOUR_APPLICATION_ID% but I could be mistaken.

Tom

Am 10.09.10 12:15, schrieb Christophe Bouhier:
> On 10-09-10 10:02, Eike Stepper wrote:
>
> See below, Perhaps I am overlooking a fundamental way to run an Eclipse
> app outside eclipse with no UI (When running eclipse an Application is
> needed). This is why an alternative could be OSGI.
>
>> Hi Christophe,
>>
>> Comments below...
>>
>> Cheers
>> /Eike
>>
>> Contact: http://www.esc-net.de Blogger
>> <http://thegordian.blogspot.com>Twitter
>> <http://twitter.com/eikestepper>Linkedin
>> <http://de.linkedin.com/in/eikestepper>Xing
>> <http://www.xing.com/profile/Eike_Stepper>
>> Article: What exactly is inside that p2 repository?
>> < http://thegordian.blogspot.com/2010/05/what-exactly-is-insid e-that-p2.html>
>>
>>
>> I'm going to Eclipse Summit Europe 2010 <http://www.eclipsesummit.org/>
>>
>>
>>
>> Am 09.09.2010 16:52, schrieb Christophe Bouhier:
>>> Hi Eike,
>>>
>>> From my previous post, I asked about exporting
>>> org.eclipse.emf.cdo.server and running it from the commandline outside
>>> eclipse.
>> You mean OSGi without Eclipse?
>>
> Yes, without eclipse.
>
>>>
>>> Now, my question would be, how to make the cdo.server auto-start as an
>>> OSGI bundle?
>> I have no clue whether auto-start for bundles exists in pure OSGi or how
>> it would have to be configured. I use to declare an IApplication to have
>> an entry point for my code.
>>
>>>
>>> I see that "org.eclipse.emf.cdo.server" declares this:
>>>
>>> Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)
>> In what version of CDO? I rather see this:
>>
>> Require-Bundle:
>> org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)";_*resolution:=optional*_,
>>
>>
> mmmh, the version is from my plugin repository which is
>
>>>
>>> I believe the required import for OSGI would have to be:
>>>
>>> Import-Package: org.osgi.framework;version="1.3.0"
>>>
>>>
>>> This would avoid the eclipseStarter
>> What is that?
>>
> This is the eclipse launcher invoked when an application starts, if the
> framework is eclipse (Which it is when depending on
> org.eclipse.core.runtime).
>
>>> which complains for an Application to be defined.... Hence the need to
>>> make it OSGI.
>> "it" == what?
> 'it'=the CDO server bundle
>
>>
>>>
>>> I could perhaps contribute such an OSGI/Equinox bundle
>> I'm confused. What would that bundle be good for?
>>
> It would not depend on Eclipse, and allow a headless start outside eclipse.
>
>>
>>> , but I see there is a lot of classes defined in .cdo server, so not
>>> sure about potential duplication...
>>>
>>> Cheers Christophe
>>>
>>>
>>>
>
Re: [CDO] run CDO Server in OSGI [message #558170 is a reply to message #558141] Fri, 10 September 2010 11:49 Go to previous messageGo to next message
Stefan Winkler is currently offline Stefan WinklerFriend
Messages: 307
Registered: July 2009
Location: Germany
Senior Member
Hi Christophe,

maybe your Problem is not really CDO-specific, but rather
product-/deployment related - maybe even platform-specific with MacOS.
In this case, maybe a more general forum/newsgroup could help.

Also, could you try if your problem persists under Linux or Windows?

Cheers,
Stefan




Am 10.09.2010 12:15, schrieb Christophe Bouhier:
> On 10-09-10 10:02, Eike Stepper wrote:
>
> See below, Perhaps I am overlooking a fundamental way to run an
> Eclipse app outside eclipse with no UI (When running eclipse an
> Application is needed). This is why an alternative could be OSGI.
>
>> Hi Christophe,
>>
>> Comments below...
>>
>> Cheers
>> /Eike
>>
>> Contact: http://www.esc-net.de Blogger
>> <http://thegordian.blogspot.com>Twitter
>> <http://twitter.com/eikestepper>Linkedin
>> <http://de.linkedin.com/in/eikestepper>Xing
>> <http://www.xing.com/profile/Eike_Stepper>
>> Article: What exactly is inside that p2 repository?
>> < http://thegordian.blogspot.com/2010/05/what-exactly-is-insid e-that-p2.html>
>>
>>
>> I'm going to Eclipse Summit Europe 2010 <http://www.eclipsesummit.org/>
>>
>>
>>
>> Am 09.09.2010 16:52, schrieb Christophe Bouhier:
>>> Hi Eike,
>>>
>>> From my previous post, I asked about exporting
>>> org.eclipse.emf.cdo.server and running it from the commandline outside
>>> eclipse.
>> You mean OSGi without Eclipse?
>>
> Yes, without eclipse.
>
>>>
>>> Now, my question would be, how to make the cdo.server auto-start as an
>>> OSGI bundle?
>> I have no clue whether auto-start for bundles exists in pure OSGi or how
>> it would have to be configured. I use to declare an IApplication to have
>> an entry point for my code.
>>
>>>
>>> I see that "org.eclipse.emf.cdo.server" declares this:
>>>
>>> Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)
>> In what version of CDO? I rather see this:
>>
>> Require-Bundle:
>> org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)";_*resolution:=optional*_,
>>
>>
> mmmh, the version is from my plugin repository which is
>
>>>
>>> I believe the required import for OSGI would have to be:
>>>
>>> Import-Package: org.osgi.framework;version="1.3.0"
>>>
>>>
>>> This would avoid the eclipseStarter
>> What is that?
>>
> This is the eclipse launcher invoked when an application starts, if
> the framework is eclipse (Which it is when depending on
> org.eclipse.core.runtime).
>
>>> which complains for an Application to be defined.... Hence the need to
>>> make it OSGI.
>> "it" == what?
> 'it'=the CDO server bundle
>
>>
>>>
>>> I could perhaps contribute such an OSGI/Equinox bundle
>> I'm confused. What would that bundle be good for?
>>
> It would not depend on Eclipse, and allow a headless start outside
> eclipse.
>
>>
>>> , but I see there is a lot of classes defined in .cdo server, so not
>>> sure about potential duplication...
>>>
>>> Cheers Christophe
>>>
>>>
>>>
>
Re: [CDO] run CDO Server in OSGI [message #558185 is a reply to message #558144] Fri, 10 September 2010 13:06 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
My apologies Eike, it indeed is optional.

Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)
";resolution:=optional

Sorry, to question CDO would be the issue.
/Christophe



On 10-09-10 12:31, Eike Stepper wrote:
> Am 10.09.2010 12:15, schrieb Christophe Bouhier:
>> On 10-09-10 10:02, Eike Stepper wrote:
>>
>> See below, Perhaps I am overlooking a fundamental way to run an
>> Eclipse app outside eclipse with no UI (When running eclipse an
>> Application is needed). This is why an alternative could be OSGI.
> CDO can run outside OSGi, inside OSGi but outside Eclipse, inside
> Eclipse. I don't see the problem. Just select an environment of your
> choice, clarify how you can start code in that environment and do it.
>
> Are you asking for general OSGi help or are you really saying that
> there's something in CDO that prevents it from being used outside of
> Eclipse?
>
>>
>>>>
>>>> Now, my question would be, how to make the cdo.server auto-start as an
>>>> OSGI bundle?
>>> I have no clue whether auto-start for bundles exists in pure OSGi or how
>>> it would have to be configured. I use to declare an IApplication to have
>>> an entry point for my code.
> What is the reason that you do not deploy org.eclipse.equinox.app and
> make it start your application?
>
>>>
>>>>
>>>> I see that "org.eclipse.emf.cdo.server" declares this:
>>>>
>>>> Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)
>>> In what version of CDO? I rather see this:
>>>
>>> Require-Bundle:
>>> org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)";_*resolution:=optional*_,
>>>
>>>
>> mmmh, the version is from my plugin repository which is
> .... is what?
>
> Are you really saying your version (whatever it is) does *not* contain
> the resolution:=optional attribute?
>
> With that attribute CDO does *not* depend on org.eclipse.core.runtime!
>
>>
>>>>
>>>> I believe the required import for OSGI would have to be:
>>>>
>>>> Import-Package: org.osgi.framework;version="1.3.0"
>>>>
>>>>
>>>> This would avoid the eclipseStarter
>>> What is that?
>>>
>> This is the eclipse launcher invoked when an application starts, if
>> the framework is eclipse (Which it is when depending on
>> org.eclipse.core.runtime).
> Where is written, that you must use a particular framework launcher just
> because you've deployed a particular bundle?
>
>>
>>>> which complains for an Application to be defined.... Hence the need to
>>>> make it OSGI.
>>> "it" == what?
>> 'it'=the CDO server bundle
>>
>>>
>>>>
>>>> I could perhaps contribute such an OSGI/Equinox bundle
>>> I'm confused. What would that bundle be good for?
>>>
>> It would not depend on Eclipse,
> CDO does *not* depend on Eclipse.
>
>> and allow a headless start outside eclipse.
> CDO can start headless outside Eclipse.
>
> Cheers
> /Eike
Re: [CDO] run CDO Server in OSGI [message #558197 is a reply to message #558170] Fri, 10 September 2010 13:20 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi Stefan,

Yes, and this is why yesterday my first post was also addressed to the
equinox newsgroup. (No response there sofar).

I really have a simple question, how do I deploy CDO with dependency
bundles.

when I use export -> deployable features, I only get a bunch of .jars
from my workspace without my config.ini.

when I deploy with a .product, I also get a .App (On MacOS), this kind
of works, but it also launches a UI which is "not responding".

I am not aware of other options deploying from eclipse.. and this could
very well be my problem.


cheers Christophe



On 10-09-10 13:49, Stefan Winkler wrote:
> Hi Christophe,
>
> maybe your Problem is not really CDO-specific, but rather
> product-/deployment related - maybe even platform-specific with MacOS.
> In this case, maybe a more general forum/newsgroup could help.
>
> Also, could you try if your problem persists under Linux or Windows?
>
> Cheers,
> Stefan
>
>
>
>
> Am 10.09.2010 12:15, schrieb Christophe Bouhier:
>> On 10-09-10 10:02, Eike Stepper wrote:
>>
>> See below, Perhaps I am overlooking a fundamental way to run an
>> Eclipse app outside eclipse with no UI (When running eclipse an
>> Application is needed). This is why an alternative could be OSGI.
>>
>>> Hi Christophe,
>>>
>>> Comments below...
>>>
>>> Cheers
>>> /Eike
>>>
>>> Contact: http://www.esc-net.de Blogger
>>> <http://thegordian.blogspot.com>Twitter
>>> <http://twitter.com/eikestepper>Linkedin
>>> <http://de.linkedin.com/in/eikestepper>Xing
>>> <http://www.xing.com/profile/Eike_Stepper>
>>> Article: What exactly is inside that p2 repository?
>>> < http://thegordian.blogspot.com/2010/05/what-exactly-is-insid e-that-p2.html>
>>>
>>>
>>> I'm going to Eclipse Summit Europe 2010<http://www.eclipsesummit.org/>
>>>
>>>
>>>
>>> Am 09.09.2010 16:52, schrieb Christophe Bouhier:
>>>> Hi Eike,
>>>>
>>>> From my previous post, I asked about exporting
>>>> org.eclipse.emf.cdo.server and running it from the commandline outside
>>>> eclipse.
>>> You mean OSGi without Eclipse?
>>>
>> Yes, without eclipse.
>>
>>>>
>>>> Now, my question would be, how to make the cdo.server auto-start as an
>>>> OSGI bundle?
>>> I have no clue whether auto-start for bundles exists in pure OSGi or how
>>> it would have to be configured. I use to declare an IApplication to have
>>> an entry point for my code.
>>>
>>>>
>>>> I see that "org.eclipse.emf.cdo.server" declares this:
>>>>
>>>> Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)
>>> In what version of CDO? I rather see this:
>>>
>>> Require-Bundle:
>>> org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)";_*resolution:=optional*_,
>>>
>>>
>> mmmh, the version is from my plugin repository which is
>>
>>>>
>>>> I believe the required import for OSGI would have to be:
>>>>
>>>> Import-Package: org.osgi.framework;version="1.3.0"
>>>>
>>>>
>>>> This would avoid the eclipseStarter
>>> What is that?
>>>
>> This is the eclipse launcher invoked when an application starts, if
>> the framework is eclipse (Which it is when depending on
>> org.eclipse.core.runtime).
>>
>>>> which complains for an Application to be defined.... Hence the need to
>>>> make it OSGI.
>>> "it" == what?
>> 'it'=the CDO server bundle
>>
>>>
>>>>
>>>> I could perhaps contribute such an OSGI/Equinox bundle
>>> I'm confused. What would that bundle be good for?
>>>
>> It would not depend on Eclipse, and allow a headless start outside
>> eclipse.
>>
>>>
>>>> , but I see there is a lot of classes defined in .cdo server, so not
>>>> sure about potential duplication...
>>>>
>>>> Cheers Christophe
>>>>
>>>>
>>>>
>>
Re: [CDO] run CDO Server in OSGI [message #558198 is a reply to message #558148] Fri, 10 September 2010 13:21 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Thanks Tom, this could be useful.
Cheers Christophe


On 10-09-10 12:42, Tom Schindl wrote:
> When you export your application and don't use the native launcher
> executable you can still launch an application.
>
> When you are in the OSGi-Console you can see all applications available
> with the apps-command and you can launch an application using startApp
> %YOUR_APPLICATION_ID%.
>
> IIRC the command line switch for this is -application
> %YOUR_APPLICATION_ID% but I could be mistaken.
>
> Tom
>
> Am 10.09.10 12:15, schrieb Christophe Bouhier:
>> On 10-09-10 10:02, Eike Stepper wrote:
>>
>> See below, Perhaps I am overlooking a fundamental way to run an Eclipse
>> app outside eclipse with no UI (When running eclipse an Application is
>> needed). This is why an alternative could be OSGI.
>>
>>> Hi Christophe,
>>>
>>> Comments below...
>>>
>>> Cheers
>>> /Eike
>>>
>>> Contact: http://www.esc-net.de Blogger
>>> <http://thegordian.blogspot.com>Twitter
>>> <http://twitter.com/eikestepper>Linkedin
>>> <http://de.linkedin.com/in/eikestepper>Xing
>>> <http://www.xing.com/profile/Eike_Stepper>
>>> Article: What exactly is inside that p2 repository?
>>> < http://thegordian.blogspot.com/2010/05/what-exactly-is-insid e-that-p2.html>
>>>
>>>
>>> I'm going to Eclipse Summit Europe 2010<http://www.eclipsesummit.org/>
>>>
>>>
>>>
>>> Am 09.09.2010 16:52, schrieb Christophe Bouhier:
>>>> Hi Eike,
>>>>
>>>> From my previous post, I asked about exporting
>>>> org.eclipse.emf.cdo.server and running it from the commandline outside
>>>> eclipse.
>>> You mean OSGi without Eclipse?
>>>
>> Yes, without eclipse.
>>
>>>>
>>>> Now, my question would be, how to make the cdo.server auto-start as an
>>>> OSGI bundle?
>>> I have no clue whether auto-start for bundles exists in pure OSGi or how
>>> it would have to be configured. I use to declare an IApplication to have
>>> an entry point for my code.
>>>
>>>>
>>>> I see that "org.eclipse.emf.cdo.server" declares this:
>>>>
>>>> Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)
>>> In what version of CDO? I rather see this:
>>>
>>> Require-Bundle:
>>> org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)";_*resolution:=optional*_,
>>>
>>>
>> mmmh, the version is from my plugin repository which is
>>
>>>>
>>>> I believe the required import for OSGI would have to be:
>>>>
>>>> Import-Package: org.osgi.framework;version="1.3.0"
>>>>
>>>>
>>>> This would avoid the eclipseStarter
>>> What is that?
>>>
>> This is the eclipse launcher invoked when an application starts, if the
>> framework is eclipse (Which it is when depending on
>> org.eclipse.core.runtime).
>>
>>>> which complains for an Application to be defined.... Hence the need to
>>>> make it OSGI.
>>> "it" == what?
>> 'it'=the CDO server bundle
>>
>>>
>>>>
>>>> I could perhaps contribute such an OSGI/Equinox bundle
>>> I'm confused. What would that bundle be good for?
>>>
>> It would not depend on Eclipse, and allow a headless start outside eclipse.
>>
>>>
>>>> , but I see there is a lot of classes defined in .cdo server, so not
>>>> sure about potential duplication...
>>>>
>>>> Cheers Christophe
>>>>
>>>>
>>>>
>>
>
Re: [CDO] run CDO Server in OSGI [message #558231 is a reply to message #558197] Fri, 10 September 2010 15:36 Go to previous message
Stefan Winkler is currently offline Stefan WinklerFriend
Messages: 307
Registered: July 2009
Location: Germany
Senior Member
Hi Christophe,

comments below before I'm off for the weekend.

Am 10.09.2010 15:20, schrieb Christophe Bouhier:
> Hi Stefan,
>
> Yes, and this is why yesterday my first post was also addressed to the
> equinox newsgroup. (No response there sofar).
>
> I really have a simple question, how do I deploy CDO with dependency
> bundles.
>
> when I use export -> deployable features, I only get a bunch of .jars
> from my workspace without my config.ini.
>
> when I deploy with a .product, I also get a .App (On MacOS), this kind
> of works, but it also launches a UI which is "not responding".

I'm not on Mac, but Tom noted that the .App is only a directory. So I
guess there is a config.ini in there.
So, either there or in the
org.eclipse.equinox.simpleconfigurator/bundles.info file you could
tinker with the bundles that will be running in your OSGi/Equinox
instance. So you could try to remove everything of Eclipse you don't
need just leaving the CDO bundles. This is just a quick guess - I'm not
sure if that works. I didn't try it ...

Have a nice one...

Cheers,
Stefan

>
> I am not aware of other options deploying from eclipse.. and this
> could very well be my problem.
>
>
> cheers Christophe
>
>
>
> On 10-09-10 13:49, Stefan Winkler wrote:
>> Hi Christophe,
>>
>> maybe your Problem is not really CDO-specific, but rather
>> product-/deployment related - maybe even platform-specific with MacOS.
>> In this case, maybe a more general forum/newsgroup could help.
>>
>> Also, could you try if your problem persists under Linux or Windows?
>>
>> Cheers,
>> Stefan
>>
>>
>>
>>
>> Am 10.09.2010 12:15, schrieb Christophe Bouhier:
>>> On 10-09-10 10:02, Eike Stepper wrote:
>>>
>>> See below, Perhaps I am overlooking a fundamental way to run an
>>> Eclipse app outside eclipse with no UI (When running eclipse an
>>> Application is needed). This is why an alternative could be OSGI.
>>>
>>>> Hi Christophe,
>>>>
>>>> Comments below...
>>>>
>>>> Cheers
>>>> /Eike
>>>>
>>>> Contact: http://www.esc-net.de Blogger
>>>> <http://thegordian.blogspot.com>Twitter
>>>> <http://twitter.com/eikestepper>Linkedin
>>>> <http://de.linkedin.com/in/eikestepper>Xing
>>>> <http://www.xing.com/profile/Eike_Stepper>
>>>> Article: What exactly is inside that p2 repository?
>>>> < http://thegordian.blogspot.com/2010/05/what-exactly-is-insid e-that-p2.html>
>>>>
>>>>
>>>>
>>>> I'm going to Eclipse Summit Europe 2010<http://www.eclipsesummit.org/>
>>>>
>>>>
>>>>
>>>> Am 09.09.2010 16:52, schrieb Christophe Bouhier:
>>>>> Hi Eike,
>>>>>
>>>>> From my previous post, I asked about exporting
>>>>> org.eclipse.emf.cdo.server and running it from the commandline
>>>>> outside
>>>>> eclipse.
>>>> You mean OSGi without Eclipse?
>>>>
>>> Yes, without eclipse.
>>>
>>>>>
>>>>> Now, my question would be, how to make the cdo.server auto-start
>>>>> as an
>>>>> OSGI bundle?
>>>> I have no clue whether auto-start for bundles exists in pure OSGi
>>>> or how
>>>> it would have to be configured. I use to declare an IApplication to
>>>> have
>>>> an entry point for my code.
>>>>
>>>>>
>>>>> I see that "org.eclipse.emf.cdo.server" declares this:
>>>>>
>>>>> Require-Bundle:
>>>>> org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)
>>>> In what version of CDO? I rather see this:
>>>>
>>>> Require-Bundle:
>>>> org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)";_*resolution:=optional*_,
>>>>
>>>>
>>>>
>>> mmmh, the version is from my plugin repository which is
>>>
>>>>>
>>>>> I believe the required import for OSGI would have to be:
>>>>>
>>>>> Import-Package: org.osgi.framework;version="1.3.0"
>>>>>
>>>>>
>>>>> This would avoid the eclipseStarter
>>>> What is that?
>>>>
>>> This is the eclipse launcher invoked when an application starts, if
>>> the framework is eclipse (Which it is when depending on
>>> org.eclipse.core.runtime).
>>>
>>>>> which complains for an Application to be defined.... Hence the
>>>>> need to
>>>>> make it OSGI.
>>>> "it" == what?
>>> 'it'=the CDO server bundle
>>>
>>>>
>>>>>
>>>>> I could perhaps contribute such an OSGI/Equinox bundle
>>>> I'm confused. What would that bundle be good for?
>>>>
>>> It would not depend on Eclipse, and allow a headless start outside
>>> eclipse.
>>>
>>>>
>>>>> , but I see there is a lot of classes defined in .cdo server, so not
>>>>> sure about potential duplication...
>>>>>
>>>>> Cheers Christophe
>>>>>
>>>>>
>>>>>
>>>
>
Previous Topic:Different proxy objects with same URI
Next Topic:Getting Helios final version from git
Goto Forum:
  


Current Time: Tue Apr 23 11:57:00 GMT 2024

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

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

Back to the top