Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » CDO introductory example frustration
CDO introductory example frustration [message #539160] Wed, 09 June 2010 19:32 Go to next message
Harald Finster is currently offline Harald FinsterFriend
Messages: 37
Registered: July 2009
Member
Hello,

I am trying to follow the introduction on CDO from
http://wiki.eclipse.org/Getting_started_with_CDO_Galileo

First obstacle:
the tutorial mentions, that I should use the H2 database from
https://build.eclipse.org/hudson/job/emf-cdo-maintenance/las tSuccessfulBuild/artifact/result/site.p2/
I can find an adapter for h2 but no h2 database engine there.

As I intend to use mysql anyways, I decided to give up
at this point and to switch to mysql.


I reconfigured the cdo-server.xml appropriately and got
an error, that the adapter is missing. Okay, I tried to
load the mysql-adapter from the 'hudson' site and
got stuck again, because org.eclipse.net4j.db.mysql.feature.group
2.0.1.v20100525-0738 is missing.

I found a bug regarding this issue but, admittedly, I did not
understand hoe to work around the problem at this point.



Last try: I switched the store type to "noop" and got
[INFO] CDO Server starting
[ERROR] Store factory not found: noop
java.lang.IllegalStateException: Store factory not found: noop
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.g etStoreFactory(RepositoryConfigurator.java:140)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureStore(RepositoryConfigurator.java:130)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureRepository(RepositoryConfigurator.java:112)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:81)
at
org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:51)
at org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
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(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)



Giving up at this point :-(

Greetings Harald
Re: CDO introductory example frustration [message #539166 is a reply to message #539160] Wed, 09 June 2010 20:01 Go to previous messageGo to next message
Gavin Crayk is currently offline Gavin CraykFriend
Messages: 13
Registered: February 2010
Junior Member
Good Morning,
I think the part you are missing is that you will need the database drivers as well as the adapters.

The files can be found here: http://net4j.sourceforge.net/update/downloads/
Once that is installed you should be able to use MySQL.

Hope that helps,
Gavin.
Re: CDO introductory example frustration [message #539669 is a reply to message #539166] Fri, 11 June 2010 19:16 Go to previous messageGo to next message
Harald Finster is currently offline Harald FinsterFriend
Messages: 37
Registered: July 2009
Member
Hello,

thanks for your feedback, Gavin.

Gavin Crayk wrote:
> Good Morning,
> I think the part you are missing is that you will need the database
> drivers as well as the adapters.
>
> The files can be found here:
> http://net4j.sourceforge.net/update/downloads/ Once that is installed
> you should be able to use MySQL.
>

Unfortunately, I get a 404 error on this site.

I understand, that I need a mqsql-driver, for example
mysql-connector-java-5.1.7.tar.gz

But how can I persuade the eclipse update tool to
load the mysql-bridge? I don't think, that it would
be sufficient to add the driver to the class path
in the run-configuration. (This might help the
application (the CDO server) to find the driver,
but I don't think, that it will make the update
mechanism happy.)

Still confused

Harald
Re: CDO introductory example frustration [message #539678 is a reply to message #539669] Fri, 11 June 2010 20:00 Go to previous messageGo to next message
Harald Finster is currently offline Harald FinsterFriend
Messages: 37
Registered: July 2009
Member
Harald Finster wrote:

>
> I understand, that I need a mqsql-driver, for example
> mysql-connector-java-5.1.7.tar.gz
>

now I even tried to create my own org.mysql.jdbc plugin
from the mysql-connector-java-5.1.7.tar.gz (this trick
worked with teneo and hibernate for example).
Eclipse loads this plugin and it is correctly displayed in my
plugin details, but attempting to load the mysql-adapter
(from the hudson site) still fails due to an
unresolved dependency on the mysql driver:

Cannot complete the install because one or more required items could not
be found.
Software being installed: Net4j DB Framework MYSQL Adapter
2.0.1.v20100525-0738 (org.eclipse.net4j.db.mysql.feature.group
2.0.1.v20100525-0738)
Missing requirement: Net4j DB Framework MYSQL Adapter
2.0.1.v20100525-0738 (org.eclipse.net4j.db.mysql 2.0.1.v20100525-0738)
requires 'package com.mysql.jdbc [5.0.0,6.0.0)' but it could not be found
Cannot satisfy dependency:
From: Net4j DB Framework MYSQL Adapter 2.0.1.v20100525-0738
(org.eclipse.net4j.db.mysql.feature.group 2.0.1.v20100525-0738)
To: org.eclipse.net4j.db.mysql [2.0.1.v20100525-0738]


I also installed the H2 database, added the h2*jar driver to the
classpath, started eclipse and ran into the same trouble when I
tried to load the h2-adapter (as expected).

Greetings Harald
Re: CDO introductory example frustration [message #539725 is a reply to message #539678] Sat, 12 June 2010 08:53 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Harald,
Update sites will often give a 404 error (and other errors) in a browser, they will still work fine in the update
manager. Have you tried in the update manager in Eclipse?

gr. Martin

On 06/11/2010 10:00 PM, Harald Finster wrote:
> Harald Finster wrote:
>
>>
>> I understand, that I need a mqsql-driver, for example
>> mysql-connector-java-5.1.7.tar.gz
>>
>
> now I even tried to create my own org.mysql.jdbc plugin
> from the mysql-connector-java-5.1.7.tar.gz (this trick
> worked with teneo and hibernate for example).
> Eclipse loads this plugin and it is correctly displayed in my
> plugin details, but attempting to load the mysql-adapter
> (from the hudson site) still fails due to an
> unresolved dependency on the mysql driver:
>
> Cannot complete the install because one or more required items could not
> be found.
> Software being installed: Net4j DB Framework MYSQL Adapter
> 2.0.1.v20100525-0738 (org.eclipse.net4j.db.mysql.feature.group
> 2.0.1.v20100525-0738)
> Missing requirement: Net4j DB Framework MYSQL Adapter
> 2.0.1.v20100525-0738 (org.eclipse.net4j.db.mysql 2.0.1.v20100525-0738)
> requires 'package com.mysql.jdbc [5.0.0,6.0.0)' but it could not be found
> Cannot satisfy dependency:
> From: Net4j DB Framework MYSQL Adapter 2.0.1.v20100525-0738
> (org.eclipse.net4j.db.mysql.feature.group 2.0.1.v20100525-0738)
> To: org.eclipse.net4j.db.mysql [2.0.1.v20100525-0738]
>
>
> I also installed the H2 database, added the h2*jar driver to the
> classpath, started eclipse and ran into the same trouble when I
> tried to load the h2-adapter (as expected).
>
> Greetings Harald


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: CDO introductory example frustration [message #539727 is a reply to message #539160] Sat, 12 June 2010 09:23 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi,

I just had to remove the Derby and the H2 driver from
http://net4j.sourceforge.net/update/downloads/ because they caused
conflicts with the corresponding bundles from the Eclipse Orbit
repository, where they have been added after CDO 2.0 GA.

Generally you can best find out about the locations where the build
system pulls dependencies from with our Buckminster RMAP file:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf.cdo/releng/org.eclipse.emf.cdo.releng/build.rma p?root=Modeling_Project&view=log

It's not the easiest format to read but in this particular case you'd
find something like:

<rm:searchPath name="orbit">
<rm:provider componentTypes="eclipse.feature,osgi.bundle"
readerType="p2" source="false" mutable="false">
<rm:uri
format=" ${eclipse.downloads}/tools/orbit/downloads/drops/R2010051920 0754/updateSite "/>
</rm:provider>
</rm:searchPath>

Please use
http://download.eclipse.org/tools/orbit/downloads/drops/R201 00519200754/updateSite
to install Derby or H2 drivers ;-)

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Am 09.06.2010 21:32, schrieb Harald Finster:
> Hello,
>
> I am trying to follow the introduction on CDO from
> http://wiki.eclipse.org/Getting_started_with_CDO_Galileo
>
> First obstacle:
> the tutorial mentions, that I should use the H2 database from
> https://build.eclipse.org/hudson/job/emf-cdo-maintenance/las tSuccessfulBuild/artifact/result/site.p2/
> I can find an adapter for h2 but no h2 database engine there.
>
> As I intend to use mysql anyways, I decided to give up
> at this point and to switch to mysql.
>
>
> I reconfigured the cdo-server.xml appropriately and got
> an error, that the adapter is missing. Okay, I tried to
> load the mysql-adapter from the 'hudson' site and
> got stuck again, because org.eclipse.net4j.db.mysql.feature.group
> 2.0.1.v20100525-0738 is missing.
>
> I found a bug regarding this issue but, admittedly, I did not
> understand hoe to work around the problem at this point.
>
>
>
> Last try: I switched the store type to "noop" and got
> [INFO] CDO Server starting
> [ERROR] Store factory not found: noop
> java.lang.IllegalStateException: Store factory not found: noop
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.g etStoreFactory(RepositoryConfigurator.java:140)
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureStore(RepositoryConfigurator.java:130)
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureRepository(RepositoryConfigurator.java:112)
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:81)
> at
> org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:51)
> at org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
> 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(EclipseS tarter.java:368)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
>
>
>
> Giving up at this point :-(
>
> Greetings Harald
>
>


Re: CDO introductory example frustration [message #539728 is a reply to message #539727] Sat, 12 June 2010 09:24 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Please also note that the CDO 3.0 distribution ships with H2 and Derby
drivers.

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Am 12.06.2010 11:23, schrieb Eike Stepper:
> Hi,
>
> I just had to remove the Derby and the H2 driver from
> http://net4j.sourceforge.net/update/downloads/ because they caused
> conflicts with the corresponding bundles from the Eclipse Orbit
> repository, where they have been added after CDO 2.0 GA.
>
> Generally you can best find out about the locations where the build
> system pulls dependencies from with our Buckminster RMAP file:
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf.cdo/releng/org.eclipse.emf.cdo.releng/build.rma p?root=Modeling_Project&view=log
>
>
> It's not the easiest format to read but in this particular case you'd
> find something like:
>
> <rm:searchPath name="orbit">
> <rm:provider componentTypes="eclipse.feature,osgi.bundle"
> readerType="p2" source="false" mutable="false">
> <rm:uri
> format=" ${eclipse.downloads}/tools/orbit/downloads/drops/R2010051920 0754/updateSite "/>
>
> </rm:provider>
> </rm:searchPath>
>
> Please use
> http://download.eclipse.org/tools/orbit/downloads/drops/R201 00519200754/updateSite
> to install Derby or H2 drivers ;-)
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
> Am 09.06.2010 21:32, schrieb Harald Finster:
>> Hello,
>>
>> I am trying to follow the introduction on CDO from
>> http://wiki.eclipse.org/Getting_started_with_CDO_Galileo
>>
>> First obstacle:
>> the tutorial mentions, that I should use the H2 database from
>> https://build.eclipse.org/hudson/job/emf-cdo-maintenance/las tSuccessfulBuild/artifact/result/site.p2/
>>
>> I can find an adapter for h2 but no h2 database engine there.
>>
>> As I intend to use mysql anyways, I decided to give up
>> at this point and to switch to mysql.
>>
>>
>> I reconfigured the cdo-server.xml appropriately and got
>> an error, that the adapter is missing. Okay, I tried to
>> load the mysql-adapter from the 'hudson' site and
>> got stuck again, because org.eclipse.net4j.db.mysql.feature.group
>> 2.0.1.v20100525-0738 is missing.
>>
>> I found a bug regarding this issue but, admittedly, I did not
>> understand hoe to work around the problem at this point.
>>
>>
>>
>> Last try: I switched the store type to "noop" and got
>> [INFO] CDO Server starting
>> [ERROR] Store factory not found: noop
>> java.lang.IllegalStateException: Store factory not found: noop
>> at
>> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.g etStoreFactory(RepositoryConfigurator.java:140)
>>
>> at
>> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureStore(RepositoryConfigurator.java:130)
>>
>> at
>> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureRepository(RepositoryConfigurator.java:112)
>>
>> at
>> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:81)
>>
>> at
>> org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:51)
>>
>> at
>> org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
>>
>> 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(EclipseS tarter.java:368)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
>>
>>
>>
>> Giving up at this point :-(
>>
>> Greetings Harald
>>


Re: CDO introductory example frustration [message #539732 is a reply to message #539669] Sat, 12 June 2010 09:31 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 11.06.2010 21:16, schrieb Harald Finster:
> Hello,
>
> thanks for your feedback, Gavin.
>
> Gavin Crayk wrote:
>
>> Good Morning,
>> I think the part you are missing is that you will need the database
>> drivers as well as the adapters.
>>
>> The files can be found here:
>> http://net4j.sourceforge.net/update/downloads/ Once that is installed
>> you should be able to use MySQL.
>>
>>
> Unfortunately, I get a 404 error on this site.
>
Eh, what was 404 for?

> I understand, that I need a mqsql-driver, for example
> mysql-connector-java-5.1.7.tar.gz
>
> But how can I persuade the eclipse update tool to
> load the mysql-bridge? I don't think, that it would
> be sufficient to add the driver to the class path
> in the run-configuration. (This might help the
> application (the CDO server) to find the driver,
> but I don't think, that it will make the update
> mechanism happy.)
>
For a Net4j DB *adapter* bundle to be installable via p2 you need its
corresponding (3rd party) *driver* either being already installed or
findeable by p2. An example:

If you want to use CDO with Mysql then you

1) Install the Mysql *driver* bundle via p2 from
http://net4j.sourceforge.net/update/
2) Point p2 to the CDO repo of your choice (e.g. 2.0) and install the
Mysql DB *adapter*

If that does not work for you I need to know once more and in detail
when/where you're having issues.

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: CDO introductory example frustration [message #539733 is a reply to message #539166] Sat, 12 June 2010 09:32 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 09.06.2010 22:01, schrieb Gavin Crayk:
> Good Morning,
> I think the part you are missing is that you will need the database
> drivers as well as the adapters.
>
> The files can be found here:
> http://net4j.sourceforge.net/update/downloads/ Once that is installed
> you should be able to use MySQL.
It's best to use the p2 update site at http://net4j.sourceforge.net/update/

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: CDO introductory example frustration [message #539759 is a reply to message #539725] Sat, 12 June 2010 16:34 Go to previous messageGo to next message
Harald Finster is currently offline Harald FinsterFriend
Messages: 37
Registered: July 2009
Member
Hello,

first of all: I would like to thank you all very much for all your
help, advice and your marvelous software.

Martin Taal wrote:
> Hi Harald,
> Update sites will often give a 404 error (and other errors) in a
> browser, they will still work fine in the update manager. Have you tried
> in the update manager in Eclipse?
>

I wasn't aware, that this is an update site, but attempts to
connect it via update manager gives a
http://net4j.sourceforge.net/update/downloads/
No repository found at http://net4j

I will try your alternative suggestions and report about
the results.

Kind regards

Harald
Re: CDO introductory example frustration [message #539760 is a reply to message #539732] Sat, 12 June 2010 16:53 Go to previous message
Harald Finster is currently offline Harald FinsterFriend
Messages: 37
Registered: July 2009
Member
Good evening

Eike Stepper wrote:

> If you want to use CDO with Mysql then you
>
> 1) Install the Mysql *driver* bundle via p2 from
> http://net4j.sourceforge.net/update/

done (BTW: this site has been suggested by Gavin,
but it did not word due to an additional 'downloasd' in the path?)

> 2) Point p2 to the CDO repo of your choice (e.g. 2.0) and install the
> Mysql DB *adapter*
>

works!

My server is running!

Thanks a lot.

Kind regards

Harald
Previous Topic:CDO DBStore with existing Hibernate mapping
Next Topic:Reflective Java code generator for instances ?
Goto Forum:
  


Current Time: Fri Apr 19 02:19:09 GMT 2024

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

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

Back to the top