Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » (no subject)
(no subject) [message #693943] Thu, 07 July 2011 14:09 Go to next message
techteam is currently offline techteamFriend
Messages: 55
Registered: September 2010
Member
Hi,
I look for a most simplest possible way to build a cdo server based on
the normal eclipse / equinox bundles, including the option to build it
also for other platforms.

At the moment I have looked for options inside my cdo workspace base on
the wiki aricle http://wiki.eclipse.org/CDO_Source_Installation

There are some launch configurations and product - definitions.
For the launch configurations , I don't know a way to export a runable
product.
The product files , doesn't run without modifications :(


An other way I try to define my own target platform including all needed
and wanted features (e.g. DBStore with MySQL backend).
Than I have defined my own product definition based on the
org.eclipse.cdo.server.product and inside the depencies I add all
wanted features.
Runing the server from this definition works well, but if I try to do a
export with the Eclipse Product export wizard there are the error message:
The plug-in 'org.eclipse.emf.cdo.server' is not in the workspace and
cannot therefor be modified. Please import it into your workspace and retry.

:(

Do exist another simple way to define and build a runable (from OS) CDO
server, only with the needed and wanted features?

Greetings
Heiko
(no subject) [message #694020 is a reply to message #693943] Thu, 07 July 2011 16:13 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6690
Registered: July 2009
Senior Member
Am 07.07.2011 16:09, schrieb Heiko:
> Hi,
> I look for a most simplest possible way to build a cdo server based on the normal eclipse / equinox bundles, including the option to build it also for other platforms.
>
> At the moment I have looked for options inside my cdo workspace base on the wiki aricle http://wiki.eclipse.org/CDO_Source_Installation
>
> There are some launch configurations and product - definitions.
> For the launch configurations , I don't know a way to export a runable product.
A launch config looks like ideal starting point for a product creation. Isn't there a respective option in the "New Product Configuration" wizard?

> The product files , doesn't run without modifications :(
Why not? What modifications are needed? Why is that a problem?

>
>
> An other way I try to define my own target platform including all needed and wanted features (e.g. DBStore with MySQL backend).
> Than I have defined my own product definition based on the org.eclipse.cdo.server.product and inside the depencies I add all wanted features.
> Runing the server from this definition works well, but if I try to do a export with the Eclipse Product export wizard there are the error message:
> The plug-in 'org.eclipse.emf.cdo.server' is not in the workspace and cannot therefor be modified. Please import it into your workspace and retry.
I have no clue why this error comes. Can you please try to get the PDE folks to answer this question? If you get an answer or open a bugzilla, please report it here.

>
> :(
>
> Do exist another simple way to define and build a runable (from OS) CDO server, only with the needed and wanted features?
I know of no other way.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


>
> Greetings
> Heiko


(no subject) [message #695253 is a reply to message #694020] Mon, 11 July 2011 11:15 Go to previous messageGo to next message
techteam is currently offline techteamFriend
Messages: 55
Registered: September 2010
Member
Hi Eike,
thanks for your answer, some comments below.

Greeting
Heiko

Am 07.07.2011 18:13, schrieb Eike Stepper:
> Am 07.07.2011 16:09, schrieb Heiko:
>> Hi,
>> I look for a most simplest possible way to build a cdo server based on
>> the normal eclipse / equinox bundles, including the option to build it
>> also for other platforms.
>>
>> At the moment I have looked for options inside my cdo workspace base
>> on the wiki aricle http://wiki.eclipse.org/CDO_Source_Installation
>>
>> There are some launch configurations and product - definitions.
>> For the launch configurations , I don't know a way to export a runable
>> product.
> A launch config looks like ideal starting point for a product creation.
> Isn't there a respective option in the "New Product Configuration" wizard?
>
Yes, there is a option to generate a new product definition based on a
launch configuration.
If you want use it without modifications inside the original code, you
have to
- define a new plugin project,
- create a new product configuration file (with option: Use a launch
configuration: -> CDOServer (NOT CDOServer.product !!!)
- add the new defined plgin to the depencies


>> The product files , doesn't run without modifications :(
> Why not? What modifications are needed? Why is that a problem?
>
Inside the source code you have only one product file:


If I try to start from this file I get the folloing error:

!SESSION 2011-07-11 11:31:47.915
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments: -product org.eclipse.emf.cdo.server.product
--launcher.XXMaxPermSize 128M
Command-line arguments: -product org.eclipse.emf.cdo.server.product
-data C:\Users\user\Workspaces\CDO/../runtime-CDOServer.product -dev
file:C:/Users/user/Workspaces/CDO/.metadata/.plugins/org.eclipse.pde.core/CDOServer.product/dev.properties
-os win32 -ws win32 -arch x86 -consoleLog -clean -debug -console
--launcher.XXMaxPermSize 128M

!ENTRY org.eclipse.equinox.app 0 0 2011-07-11 11:31:55.791
!MESSAGE Product org.eclipse.emf.cdo.server.product could not be found.

!ENTRY org.eclipse.osgi 2 0 2011-07-11 11:31:55.823
!MESSAGE One or more bundles are not resolved because the following root
constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:55.823
!MESSAGE Bundle update@../plugins/org.eclipse.emf.cdo.common/ was not
resolved.
!SUBENTRY 2 org.eclipse.emf.cdo.common 2 0 2011-07-11 11:31:55.824
!MESSAGE Missing required bundle org.eclipse.emf.ecore.change_[2.4.0,3.0.0).

!ENTRY org.eclipse.osgi 2 0 2011-07-11 11:31:55.827
!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 2011-07-11 11:31:55.827
!MESSAGE Bundle org.eclipse.emf.cdo.common_4.0.1.qualifier was not
resolved.
!SUBENTRY 2 org.eclipse.emf.cdo.common 2 0 2011-07-11 11:31:55.828
!MESSAGE Missing required bundle org.eclipse.emf.ecore.change_[2.4.0,3.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:55.828
!MESSAGE Bundle org.eclipse.emf.cdo.server_4.0.1.qualifier was not
resolved.
!SUBENTRY 2 org.eclipse.emf.cdo.server 2 0 2011-07-11 11:31:55.828
!MESSAGE Missing required bundle org.eclipse.emf.cdo_[4.0.0,5.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:55.828
!MESSAGE Bundle org.eclipse.emf.cdo_4.0.1.qualifier was not resolved.
!SUBENTRY 2 org.eclipse.emf.cdo 2 0 2011-07-11 11:31:55.828
!MESSAGE Missing optionally required bundle
org.eclipse.core.expressions_[3.4.0,4.0.0).
!SUBENTRY 2 org.eclipse.emf.cdo 2 0 2011-07-11 11:31:55.829
!MESSAGE Missing required bundle org.eclipse.emf.cdo.common_[4.0.0,5.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:55.829
!MESSAGE Bundle org.eclipse.emf.cdo.server.db_4.0.1.qualifier was
not resolved.
!SUBENTRY 2 org.eclipse.emf.cdo.server.db 2 0 2011-07-11 11:31:55.829
!MESSAGE Missing required bundle org.eclipse.emf.cdo.server_[4.0.0,5.0.0).
Starting application: 7921

!ENTRY org.eclipse.osgi 2 0 2011-07-11 11:31:55.852
!MESSAGE One or more bundles are not resolved because the following root
constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:55.852
!MESSAGE Bundle update@../plugins/org.eclipse.emf.cdo.common/ was not
resolved.
!SUBENTRY 2 org.eclipse.emf.cdo.common 2 0 2011-07-11 11:31:55.853
!MESSAGE Missing required bundle org.eclipse.emf.ecore.change_[2.4.0,3.0.0).

!ENTRY org.eclipse.osgi 2 0 2011-07-11 11:31:55.857
!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 2011-07-11 11:31:55.857
!MESSAGE Bundle org.eclipse.emf.cdo.common_4.0.1.qualifier was not
resolved.
!SUBENTRY 2 org.eclipse.emf.cdo.common 2 0 2011-07-11 11:31:55.857
!MESSAGE Missing required bundle org.eclipse.emf.ecore.change_[2.4.0,3.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:56.064
!MESSAGE Bundle org.eclipse.emf.cdo.server_4.0.1.qualifier was not
resolved.
!SUBENTRY 2 org.eclipse.emf.cdo.server 2 0 2011-07-11 11:31:56.064
!MESSAGE Missing required bundle org.eclipse.emf.cdo_[4.0.0,5.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:56.064
!MESSAGE Bundle org.eclipse.emf.cdo_4.0.1.qualifier was not resolved.
!SUBENTRY 2 org.eclipse.emf.cdo 2 0 2011-07-11 11:31:56.064
!MESSAGE Missing optionally required bundle
org.eclipse.core.expressions_[3.4.0,4.0.0).
!SUBENTRY 2 org.eclipse.emf.cdo 2 0 2011-07-11 11:31:56.065
!MESSAGE Missing required bundle org.eclipse.emf.cdo.common_[4.0.0,5.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:56.065
!MESSAGE Bundle org.eclipse.emf.cdo.server.db_4.0.1.qualifier [30] was
not resolved.
!SUBENTRY 2 org.eclipse.emf.cdo.server.db 2 0 2011-07-11 11:31:56.065
!MESSAGE Missing required bundle org.eclipse.emf.cdo.server_[4.0.0,5.0.0).

!ENTRY org.eclipse.osgi 4 0 2011-07-11 11:31:56.068
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at
org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
at
org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
An error has occurred. See the log file
C:\Users\user\Workspaces\CDO\.metadata\.plugins\org.eclipse.pde.core\CDOServer.product\1310376709488.log.

An also interessing point here and I think this is for the problem below:
If you start the application with the product-definition, Eclipse
changed the product element inside the defined plugin.xml from

<extension id="product" point="org.eclipse.core.runtime.products">
<product
name="%product.name"
description="%product.description"
application="org.eclipse.emf.cdo.server.app">
<property name="appName" value="CDO Server"/>
</product>
</extension>

to:
<extension id="product" point="org.eclipse.core.runtime.products">
<product
name="CDO Server"
description="%product.description"
application="org.eclipse.emf.cdo.server.app">
<property name="appName" value="CDO Server"/>
</product>
</extension>


>>
>>
>> An other way I try to define my own target platform including all
>> needed and wanted features (e.g. DBStore with MySQL backend).
>> Than I have defined my own product definition based on the
>> org.eclipse.cdo.server.product and inside the depencies I add all
>> wanted features.
>> Runing the server from this definition works well, but if I try to do
>> a export with the Eclipse Product export wizard there are the error
>> message:
>> The plug-in 'org.eclipse.emf.cdo.server' is not in the workspace and
>> cannot therefor be modified. Please import it into your workspace and
>> retry.
> I have no clue why this error comes. Can you please try to get the PDE
> folks to answer this question? If you get an answer or open a bugzilla,
> please report it here.
>
I think, if the are not all values inside my own defined product file
equal to the values of the plugin.xml of the product-defining-plugin,
the PDE wizard tries to change this values and if this plugin not inside
my workspace, it fail's.
The problems are that some values are defined inside the properties
fiels and some values defined direct inside the plugin.xml.
And the >Name< inside the product definition seems to be used as
ProductName and also used as ApplicationName.

>>
>> :(
>>
>> Do exist another simple way to define and build a runable (from OS)
>> CDO server, only with the needed and wanted features?
> I know of no other way.
>
I know, the complete complex problem is only a nice to have feature, but
it would have been nice. ;)
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>>
>> Greetings
>> Heiko
(no subject) [message #695309 is a reply to message #695253] Mon, 11 July 2011 13:26 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6690
Registered: July 2009
Senior Member
Hi Heiko,

I've spent the weekend to massage our Hudson build to generate executable demo servers for Windows, Linux and Mac. Due to hudson.eclipse.org problems over the weekend I have it only locally for now. I''ll send you the three zips privately ahead of time and would appreciate your feedback.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 11.07.2011 13:15, schrieb Heiko:
> Hi Eike,
> thanks for your answer, some comments below.
>
> Greeting
> Heiko
>
> Am 07.07.2011 18:13, schrieb Eike Stepper:
>> Am 07.07.2011 16:09, schrieb Heiko:
>>> Hi,
>>> I look for a most simplest possible way to build a cdo server based on
>>> the normal eclipse / equinox bundles, including the option to build it
>>> also for other platforms.
>>>
>>> At the moment I have looked for options inside my cdo workspace base
>>> on the wiki aricle http://wiki.eclipse.org/CDO_Source_Installation
>>>
>>> There are some launch configurations and product - definitions.
>>> For the launch configurations , I don't know a way to export a runable
>>> product.
>> A launch config looks like ideal starting point for a product creation.
>> Isn't there a respective option in the "New Product Configuration" wizard?
>>
> Yes, there is a option to generate a new product definition based on a launch configuration.
> If you want use it without modifications inside the original code, you have to
> - define a new plugin project,
> - create a new product configuration file (with option: Use a launch configuration: -> CDOServer (NOT CDOServer.product !!!)
> - add the new defined plgin to the depencies
>
>
>>> The product files , doesn't run without modifications :(
>> Why not? What modifications are needed? Why is that a problem?
>>
> Inside the source code you have only one product file:
>
>
> If I try to start from this file I get the folloing error:
>
> !SESSION 2011-07-11 11:31:47.915 -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_26
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
> Framework arguments: -product org.eclipse.emf.cdo.server.product --launcher.XXMaxPermSize 128M
> Command-line arguments: -product org.eclipse.emf.cdo.server.product -data C:\Users\user\Workspaces\CDO/../runtime-CDOServer.product -dev file:C:/Users/user/Workspaces/CDO/.metadata/.plugins/org.eclipse.pde.core/CDOServer.product/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -clean -debug -console --launcher.XXMaxPermSize 128M
>
> !ENTRY org.eclipse.equinox.app 0 0 2011-07-11 11:31:55.791
> !MESSAGE Product org.eclipse.emf.cdo.server.product could not be found.
>
> !ENTRY org.eclipse.osgi 2 0 2011-07-11 11:31:55.823
> !MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:55.823
> !MESSAGE Bundle update@../plugins/org.eclipse.emf.cdo.common/ was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo.common 2 0 2011-07-11 11:31:55.824
> !MESSAGE Missing required bundle org.eclipse.emf.ecore.change_[2.4.0,3.0.0).
>
> !ENTRY org.eclipse.osgi 2 0 2011-07-11 11:31:55.827
> !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 2011-07-11 11:31:55.827
> !MESSAGE Bundle org.eclipse.emf.cdo.common_4.0.1.qualifier was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo.common 2 0 2011-07-11 11:31:55.828
> !MESSAGE Missing required bundle org.eclipse.emf.ecore.change_[2.4.0,3.0.0).
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:55.828
> !MESSAGE Bundle org.eclipse.emf.cdo.server_4.0.1.qualifier was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo.server 2 0 2011-07-11 11:31:55.828
> !MESSAGE Missing required bundle org.eclipse.emf.cdo_[4.0.0,5.0.0).
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:55.828
> !MESSAGE Bundle org.eclipse.emf.cdo_4.0.1.qualifier was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo 2 0 2011-07-11 11:31:55.828
> !MESSAGE Missing optionally required bundle org.eclipse.core.expressions_[3.4.0,4.0.0).
> !SUBENTRY 2 org.eclipse.emf.cdo 2 0 2011-07-11 11:31:55.829
> !MESSAGE Missing required bundle org.eclipse.emf.cdo.common_[4.0.0,5.0.0).
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:55.829
> !MESSAGE Bundle org.eclipse.emf.cdo.server.db_4.0.1.qualifier was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo.server.db 2 0 2011-07-11 11:31:55.829
> !MESSAGE Missing required bundle org.eclipse.emf.cdo.server_[4.0.0,5.0.0).
> Starting application: 7921
>
> !ENTRY org.eclipse.osgi 2 0 2011-07-11 11:31:55.852
> !MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:55.852
> !MESSAGE Bundle update@../plugins/org.eclipse.emf.cdo.common/ was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo.common 2 0 2011-07-11 11:31:55.853
> !MESSAGE Missing required bundle org.eclipse.emf.ecore.change_[2.4.0,3.0.0).
>
> !ENTRY org.eclipse.osgi 2 0 2011-07-11 11:31:55.857
> !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 2011-07-11 11:31:55.857
> !MESSAGE Bundle org.eclipse.emf.cdo.common_4.0.1.qualifier was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo.common 2 0 2011-07-11 11:31:55.857
> !MESSAGE Missing required bundle org.eclipse.emf.ecore.change_[2.4.0,3.0.0).
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:56.064
> !MESSAGE Bundle org.eclipse.emf.cdo.server_4.0.1.qualifier was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo.server 2 0 2011-07-11 11:31:56.064
> !MESSAGE Missing required bundle org.eclipse.emf.cdo_[4.0.0,5.0.0).
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:56.064
> !MESSAGE Bundle org.eclipse.emf.cdo_4.0.1.qualifier was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo 2 0 2011-07-11 11:31:56.064
> !MESSAGE Missing optionally required bundle org.eclipse.core.expressions_[3.4.0,4.0.0).
> !SUBENTRY 2 org.eclipse.emf.cdo 2 0 2011-07-11 11:31:56.065
> !MESSAGE Missing required bundle org.eclipse.emf.cdo.common_[4.0.0,5.0.0).
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:56.065
> !MESSAGE Bundle org.eclipse.emf.cdo.server.db_4.0.1.qualifier [30] was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo.server.db 2 0 2011-07-11 11:31:56.065
> !MESSAGE Missing required bundle org.eclipse.emf.cdo.server_[4.0.0,5.0.0).
>
> !ENTRY org.eclipse.osgi 4 0 2011-07-11 11:31:56.068
> !MESSAGE Application error
> !STACK 1
> java.lang.RuntimeException: No application id has been found.
> at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
> at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
> An error has occurred. See the log file
> C:\Users\user\Workspaces\CDO\.metadata\.plugins\org.eclipse.pde.core\CDOServer.product\1310376709488.log.
>
> An also interessing point here and I think this is for the problem below:
> If you start the application with the product-definition, Eclipse changed the product element inside the defined plugin.xml from
>
> <extension id="product" point="org.eclipse.core.runtime.products">
> <product
> name="%product.name"
> description="%product.description"
> application="org.eclipse.emf.cdo.server.app">
> <property name="appName" value="CDO Server"/>
> </product>
> </extension>
>
> to:
> <extension id="product" point="org.eclipse.core.runtime.products">
> <product
> name="CDO Server"
> description="%product.description"
> application="org.eclipse.emf.cdo.server.app">
> <property name="appName" value="CDO Server"/>
> </product>
> </extension>
>
>
>>>
>>>
>>> An other way I try to define my own target platform including all
>>> needed and wanted features (e.g. DBStore with MySQL backend).
>>> Than I have defined my own product definition based on the
>>> org.eclipse.cdo.server.product and inside the depencies I add all
>>> wanted features.
>>> Runing the server from this definition works well, but if I try to do
>>> a export with the Eclipse Product export wizard there are the error
>>> message:
>>> The plug-in 'org.eclipse.emf.cdo.server' is not in the workspace and
>>> cannot therefor be modified. Please import it into your workspace and
>>> retry.
>> I have no clue why this error comes. Can you please try to get the PDE
>> folks to answer this question? If you get an answer or open a bugzilla,
>> please report it here.
>>
> I think, if the are not all values inside my own defined product file equal to the values of the plugin.xml of the product-defining-plugin, the PDE wizard tries to change this values and if this plugin not inside my workspace, it fail's.
> The problems are that some values are defined inside the properties fiels and some values defined direct inside the plugin.xml.
> And the >Name< inside the product definition seems to be used as ProductName and also used as ApplicationName.
>
>>>
>>> :(
>>>
>>> Do exist another simple way to define and build a runable (from OS)
>>> CDO server, only with the needed and wanted features?
>> I know of no other way.
>>
> I know, the complete complex problem is only a nice to have feature, but it would have been nice. ;)
>> Cheers
>> /Eike
>>
>> ----
>> http://www.esc-net.de
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>>
>>
>>>
>>> Greetings
>>> Heiko
>


(no subject) [message #695437 is a reply to message #695253] Mon, 11 July 2011 18:15 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6690
Registered: July 2009
Senior Member
Hi Heiko,

Starting with drop http://www.eclipse.org/cdo/downloads/#I20110711_1247 you can download CDO demo servers. Just choose the download according to your platform, unzip it and run cdo-server(.exe).

I could not test the launchers for Linux and Mac. Feedback is highly appreciated ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 11.07.2011 13:15, schrieb Heiko:
> Hi Eike,
> thanks for your answer, some comments below.
>
> Greeting
> Heiko
>
> Am 07.07.2011 18:13, schrieb Eike Stepper:
>> Am 07.07.2011 16:09, schrieb Heiko:
>>> Hi,
>>> I look for a most simplest possible way to build a cdo server based on
>>> the normal eclipse / equinox bundles, including the option to build it
>>> also for other platforms.
>>>
>>> At the moment I have looked for options inside my cdo workspace base
>>> on the wiki aricle http://wiki.eclipse.org/CDO_Source_Installation
>>>
>>> There are some launch configurations and product - definitions.
>>> For the launch configurations , I don't know a way to export a runable
>>> product.
>> A launch config looks like ideal starting point for a product creation.
>> Isn't there a respective option in the "New Product Configuration" wizard?
>>
> Yes, there is a option to generate a new product definition based on a launch configuration.
> If you want use it without modifications inside the original code, you have to
> - define a new plugin project,
> - create a new product configuration file (with option: Use a launch configuration: -> CDOServer (NOT CDOServer.product !!!)
> - add the new defined plgin to the depencies
>
>
>>> The product files , doesn't run without modifications :(
>> Why not? What modifications are needed? Why is that a problem?
>>
> Inside the source code you have only one product file:
>
>
> If I try to start from this file I get the folloing error:
>
> !SESSION 2011-07-11 11:31:47.915 -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_26
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
> Framework arguments: -product org.eclipse.emf.cdo.server.product --launcher.XXMaxPermSize 128M
> Command-line arguments: -product org.eclipse.emf.cdo.server.product -data C:\Users\user\Workspaces\CDO/../runtime-CDOServer.product -dev file:C:/Users/user/Workspaces/CDO/.metadata/.plugins/org.eclipse.pde.core/CDOServer.product/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -clean -debug -console --launcher.XXMaxPermSize 128M
>
> !ENTRY org.eclipse.equinox.app 0 0 2011-07-11 11:31:55.791
> !MESSAGE Product org.eclipse.emf.cdo.server.product could not be found.
>
> !ENTRY org.eclipse.osgi 2 0 2011-07-11 11:31:55.823
> !MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:55.823
> !MESSAGE Bundle update@../plugins/org.eclipse.emf.cdo.common/ was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo.common 2 0 2011-07-11 11:31:55.824
> !MESSAGE Missing required bundle org.eclipse.emf.ecore.change_[2.4.0,3.0.0).
>
> !ENTRY org.eclipse.osgi 2 0 2011-07-11 11:31:55.827
> !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 2011-07-11 11:31:55.827
> !MESSAGE Bundle org.eclipse.emf.cdo.common_4.0.1.qualifier was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo.common 2 0 2011-07-11 11:31:55.828
> !MESSAGE Missing required bundle org.eclipse.emf.ecore.change_[2.4.0,3.0.0).
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:55.828
> !MESSAGE Bundle org.eclipse.emf.cdo.server_4.0.1.qualifier was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo.server 2 0 2011-07-11 11:31:55.828
> !MESSAGE Missing required bundle org.eclipse.emf.cdo_[4.0.0,5.0.0).
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:55.828
> !MESSAGE Bundle org.eclipse.emf.cdo_4.0.1.qualifier was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo 2 0 2011-07-11 11:31:55.828
> !MESSAGE Missing optionally required bundle org.eclipse.core.expressions_[3.4.0,4.0.0).
> !SUBENTRY 2 org.eclipse.emf.cdo 2 0 2011-07-11 11:31:55.829
> !MESSAGE Missing required bundle org.eclipse.emf.cdo.common_[4.0.0,5.0.0).
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:55.829
> !MESSAGE Bundle org.eclipse.emf.cdo.server.db_4.0.1.qualifier was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo.server.db 2 0 2011-07-11 11:31:55.829
> !MESSAGE Missing required bundle org.eclipse.emf.cdo.server_[4.0.0,5.0.0).
> Starting application: 7921
>
> !ENTRY org.eclipse.osgi 2 0 2011-07-11 11:31:55.852
> !MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:55.852
> !MESSAGE Bundle update@../plugins/org.eclipse.emf.cdo.common/ was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo.common 2 0 2011-07-11 11:31:55.853
> !MESSAGE Missing required bundle org.eclipse.emf.ecore.change_[2.4.0,3.0.0).
>
> !ENTRY org.eclipse.osgi 2 0 2011-07-11 11:31:55.857
> !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 2011-07-11 11:31:55.857
> !MESSAGE Bundle org.eclipse.emf.cdo.common_4.0.1.qualifier was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo.common 2 0 2011-07-11 11:31:55.857
> !MESSAGE Missing required bundle org.eclipse.emf.ecore.change_[2.4.0,3.0.0).
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:56.064
> !MESSAGE Bundle org.eclipse.emf.cdo.server_4.0.1.qualifier was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo.server 2 0 2011-07-11 11:31:56.064
> !MESSAGE Missing required bundle org.eclipse.emf.cdo_[4.0.0,5.0.0).
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:56.064
> !MESSAGE Bundle org.eclipse.emf.cdo_4.0.1.qualifier was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo 2 0 2011-07-11 11:31:56.064
> !MESSAGE Missing optionally required bundle org.eclipse.core.expressions_[3.4.0,4.0.0).
> !SUBENTRY 2 org.eclipse.emf.cdo 2 0 2011-07-11 11:31:56.065
> !MESSAGE Missing required bundle org.eclipse.emf.cdo.common_[4.0.0,5.0.0).
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-07-11 11:31:56.065
> !MESSAGE Bundle org.eclipse.emf.cdo.server.db_4.0.1.qualifier [30] was not resolved.
> !SUBENTRY 2 org.eclipse.emf.cdo.server.db 2 0 2011-07-11 11:31:56.065
> !MESSAGE Missing required bundle org.eclipse.emf.cdo.server_[4.0.0,5.0.0).
>
> !ENTRY org.eclipse.osgi 4 0 2011-07-11 11:31:56.068
> !MESSAGE Application error
> !STACK 1
> java.lang.RuntimeException: No application id has been found.
> at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
> at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
> An error has occurred. See the log file
> C:\Users\user\Workspaces\CDO\.metadata\.plugins\org.eclipse.pde.core\CDOServer.product\1310376709488.log.
>
> An also interessing point here and I think this is for the problem below:
> If you start the application with the product-definition, Eclipse changed the product element inside the defined plugin.xml from
>
> <extension id="product" point="org.eclipse.core.runtime.products">
> <product
> name="%product.name"
> description="%product.description"
> application="org.eclipse.emf.cdo.server.app">
> <property name="appName" value="CDO Server"/>
> </product>
> </extension>
>
> to:
> <extension id="product" point="org.eclipse.core.runtime.products">
> <product
> name="CDO Server"
> description="%product.description"
> application="org.eclipse.emf.cdo.server.app">
> <property name="appName" value="CDO Server"/>
> </product>
> </extension>
>
>
>>>
>>>
>>> An other way I try to define my own target platform including all
>>> needed and wanted features (e.g. DBStore with MySQL backend).
>>> Than I have defined my own product definition based on the
>>> org.eclipse.cdo.server.product and inside the depencies I add all
>>> wanted features.
>>> Runing the server from this definition works well, but if I try to do
>>> a export with the Eclipse Product export wizard there are the error
>>> message:
>>> The plug-in 'org.eclipse.emf.cdo.server' is not in the workspace and
>>> cannot therefor be modified. Please import it into your workspace and
>>> retry.
>> I have no clue why this error comes. Can you please try to get the PDE
>> folks to answer this question? If you get an answer or open a bugzilla,
>> please report it here.
>>
> I think, if the are not all values inside my own defined product file equal to the values of the plugin.xml of the product-defining-plugin, the PDE wizard tries to change this values and if this plugin not inside my workspace, it fail's.
> The problems are that some values are defined inside the properties fiels and some values defined direct inside the plugin.xml.
> And the >Name< inside the product definition seems to be used as ProductName and also used as ApplicationName.
>
>>>
>>> :(
>>>
>>> Do exist another simple way to define and build a runable (from OS)
>>> CDO server, only with the needed and wanted features?
>> I know of no other way.
>>
> I know, the complete complex problem is only a nice to have feature, but it would have been nice. ;)
>> Cheers
>> /Eike
>>
>> ----
>> http://www.esc-net.de
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>>
>>
>>>
>>> Greetings
>>> Heiko
>


Re: (no subject) [message #912070 is a reply to message #695437] Wed, 12 September 2012 22:11 Go to previous messageGo to next message
Mark Rowe is currently offline Mark RoweFriend
Messages: 23
Registered: January 2012
Junior Member
Eike Stepper wrote on Mon, 11 July 2011 14:15
Hi Heiko,

Starting with drop http://www.eclipse.org/cdo/downloads/#I20110711_1247 you can download CDO demo servers. Just choose the download according to your platform, unzip it and run cdo-server(.exe).

I could not test the launchers for Linux and Mac. Feedback is highly appreciated Wink

Cheers
/Eike


The Linux binary works on Linux Mint 12 for the QuickStartTest.java but not for HibernateQueryTest.java.

The problem is a FactoryNotFoundException

Sorry for the brief report.
Re: (no subject) [message #912209 is a reply to message #912070] Thu, 13 September 2012 06:21 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6690
Registered: July 2009
Senior Member
Am 13.09.2012 00:11, schrieb Mark Rowe:
> Eike Stepper wrote on Mon, 11 July 2011 14:15
>> Hi Heiko,
>>
>> Starting with drop http://www.eclipse.org/cdo/downloads/#I20110711_1247 you can download CDO demo servers. Just
>> choose the download according to your platform, unzip it and run cdo-server(.exe).
>>
>> I could not test the launchers for Linux and Mac. Feedback is highly appreciated ;)
>>
>> Cheers
>> /Eike
>
>
> The Linux binary works on Linux Mint 12 for the QuickStartTest.java but not for HibernateQueryTest.java.
> The problem is a FactoryNotFoundException
Hibernate support is not part of the example server binaries.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: (no subject) [message #912293 is a reply to message #912209] Thu, 13 September 2012 09:24 Go to previous messageGo to next message
Mark Rowe is currently offline Mark RoweFriend
Messages: 23
Registered: January 2012
Junior Member
Embarrassed That would certainly explain that!

Is the source for this example available as a standalone project or does it form part of the git tree? (sorry for poor terminology - still learning!)
Re: (no subject) [message #912302 is a reply to message #912293] Thu, 13 September 2012 09:38 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6690
Registered: July 2009
Senior Member
Am 13.09.2012 11:24, schrieb Mark Rowe:
> :blush: That would certainly explain that!
>
> Is the source for this example available as a standalone project or does it form part of the git tree? (sorry for poor
> terminology - still learning!)
It's all in Git. But there's no special code for the example server. It's just that our Hudson build exports an Eclipse
product definition for a number of target platforms.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:[CDO] - exportChanges and detached Objects
Next Topic:[CDO] Problems loading objects from a resource
Goto Forum:
  


Current Time: Fri Sep 20 00:06:31 GMT 2024

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

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

Back to the top