Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] 4.2-M2 target platform / tycho error
[CDO] 4.2-M2 target platform / tycho error [message #984100] Wed, 14 November 2012 11:55 Go to next message
Steve Missing name is currently offline Steve Missing nameFriend
Messages: 6
Registered: April 2011
Junior Member
Hi,

I'm trying to create a CDO server based on top of Kepler. I'm using CDO 4.2-M2.

I've defined my target platform in eclipse using the CDO p2 repository to bring in net4j, cdo and db. Kepler provides the eclipse SDK and EMF. And I've got Elver to supply the mysql driver.

However when I add in:

org.eclipse.net4j.db.mysql.feature.group

to my target platform I get the following errors:

Cannot satisfy dependency:
From: Net4j DB Framework MYSQL Adapter 4.2.0v20120930-1610 (org.eclipse.net4j.db.mysql.feature.group 4.2.0v20120930-1610)
To: org.eclipse.net4j.db.mysql [4.0.100.v20120917-1349]
Missing requirement: Net4j DB Framework MYSQL Adapter 4.0.100.v20120917-139 (org.eclipse.net4j.db.mysql 4.0.100.v20120917-1349) requires 'package com.mysql.jdbc [5.0.0,6.0.0)' but it could not be found
Software being installed: Net4j DB Framework MYSQL Adapter 4.2.0.v20120930-1610 (org.eclipse.net4j.db.mysql.feature.group 4.2.0.v20120930-1610)

However I have mysql imported from Elver in the target platform at version 5.1.11.201210222237 which should satisfy the stated version constraint.

If I change the target platform to use includeMode="slicer" then it works and I can run the server, however even then when I build the product using Tycho with the same target platform file I get this error again about the depedencies:

org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException:
"No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from org.eclipse.emf.cdo.server.product.tcp_h2 1.0.0.qualifier to org.eclipse.equinox.executable.feature.group 0.0.0.", "Unable to satisfy dependency from org.eclipse.net4j.db.mysql 4.0.100.v20120917-1349 to package com.mysql.jdbc [5.0.0,6.0.0).", "Unable to satisfy dependency from org.eclipse.net4j.db.mysql 4.0.100.v20120917-1349 to package com.mysql.jdbc.jdbc2.optional [5.0.0,6.0.
0).", "No solution found because the problem is unsatisfiable."]

Any suggestions?

Thank you.
Re: [CDO] 4.2-M2 target platform / tycho error [message #985770 is a reply to message #984100] Fri, 16 November 2012 05:23 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6690
Registered: July 2009
Senior Member
Hi Steve,

I fear there's not much advice I can give. Getting the target platform right for a product is always a little tricky.
But all our developer workspaces and even our Hudson builds (both provisioned by Buckminster) always work perfectly
without any complaints. I can only suggest to start with a fresh/empty target platform, use the p2 bookmarks.xml files
that we publish with each build and then only add what you really need. The product listed in your last error message
(org.eclipse.emf.cdo.server.product.tcp_h2) is an H2 based server. You'll hardly want to run with H2 and Mysql for example.

I could also imagine a bug in Tycho, as it's relatively young technology (AFAIK - I've never used it).

Cheers
/Eike

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


Am 14.11.2012 12:55, schrieb Steve Mising name:
> Hi,
>
> I'm trying to create a CDO server based on top of Kepler. I'm using CDO 4.2-M2.
>
> I've defined my target platform in eclipse using the CDO p2 repository to bring in net4j, cdo and db. Kepler provides
> the eclipse SDK and EMF. And I've got Elver to supply the mysql driver.
>
> However when I add in:
>
> org.eclipse.net4j.db.mysql.feature.group
>
> to my target platform I get the following errors:
>
> Cannot satisfy dependency:
> From: Net4j DB Framework MYSQL Adapter 4.2.0v20120930-1610 (org.eclipse.net4j.db.mysql.feature.group 4.2.0v20120930-1610)
> To: org.eclipse.net4j.db.mysql [4.0.100.v20120917-1349]
> Missing requirement: Net4j DB Framework MYSQL Adapter 4.0.100.v20120917-139 (org.eclipse.net4j.db.mysql
> 4.0.100.v20120917-1349) requires 'package com.mysql.jdbc [5.0.0,6.0.0)' but it could not be found
> Software being installed: Net4j DB Framework MYSQL Adapter 4.2.0.v20120930-1610
> (org.eclipse.net4j.db.mysql.feature.group 4.2.0.v20120930-1610)
>
> However I have mysql imported from Elver in the target platform at version 5.1.11.201210222237 which should satisfy
> the stated version constraint.
>
> If I change the target platform to use includeMode="slicer" then it works and I can run the server, however even then
> when I build the product using Tycho with the same target platform file I get this error again about the depedencies:
>
> org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException:
> "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from
> org.eclipse.emf.cdo.server.product.tcp_h2 1.0.0.qualifier to org.eclipse.equinox.executable.feature.group 0.0.0.",
> "Unable to satisfy dependency from org.eclipse.net4j.db.mysql 4.0.100.v20120917-1349 to package com.mysql.jdbc
> [5.0.0,6.0.0).", "Unable to satisfy dependency from org.eclipse.net4j.db.mysql 4.0.100.v20120917-1349 to package
> com.mysql.jdbc.jdbc2.optional [5.0.0,6.0.
> 0).", "No solution found because the problem is unsatisfiable."]
>
> Any suggestions?
>
> Thank you.


Re: [CDO] 4.2-M2 target platform / tycho error [message #985811 is a reply to message #985770] Fri, 16 November 2012 09:10 Go to previous message
Christophe MOINE is currently offline Christophe MOINEFriend
Messages: 34
Registered: February 2012
Member
Hi,

I had the same problem when refrehing the target platform: the update site http://www.elver.org/eclipse/update was down, but now it seems it is up again. Looks there were some migration issues from yesterday.

Regards.
Previous Topic:boolean qualify in getCreateChildText
Next Topic:[CDO] CDOTransaction lifecycle, attempt to modify historical revision
Goto Forum:
  


Current Time: Tue Sep 24 23:33:35 GMT 2024

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

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

Back to the top