Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Target Definition and Unknown DB Adaptor: mysql(Target Definition and Unknown DB Adaptor: mysql)
Target Definition and Unknown DB Adaptor: mysql [message #986323] Mon, 19 November 2012 23:54 Go to next message
Andrew Whelan is currently offline Andrew WhelanFriend
Messages: 69
Registered: October 2012
Location: Syracuse NY
I followed the instructions in the followng tutorial:

I'm using Juno and the tutorial is a little out of data but I was able to make it work. I used the library.mdl model from the EMF tutorial (Rose class model, etc)as they did in this CDO tutorial. It did it using the org.eclipse.emf.cdo.server.product.tcp_h2 product that I downloaded with some CDO plugins from the update site in my Eclipse IDE.

I was able to get the tutorial working this way. Also, by changing the cdo-server.xml file and installing the Net4j DB Framework MYSQL/Postgres adaptors I was able to get it working for both of them still using the org.eclipse.emf.cdo.server.product.tcp_h2 product. In effect I was able to run a CDO Server from within my Eclipse IDE like illustrated in the tutorial.

I am now trying to use CDO on another project, and it involves downloading stuff for the plugins using a Target Definition. That seems to be the only different at this point that I can think of. I am having trouble downloading the Net4j MySQL and Postrgres Adaptor through the TargetDefinition but lets not worry about that too much just yet (and there is so much to that that I am going to submit it in a second posting).

I am still using the org.eclipse.emf.cdo.server.product.tcp_h2 product but when I try to start the CDO Server I get the Unknown DB adapter: mysql error message. Do I need to create an Eclipse product for MySQL like the gentleman who had the problem in the following post:

Any ideas or advice would be very much appreciated.
Re: Target Definition and Unknown DB Adaptor: mysql [message #986665 is a reply to message #986323] Wed, 21 November 2012 10:33 Go to previous message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi What ever get's loaded in with the run configuration, is visible in i.e. Debug-> Debug Configurations and selecting the tab named plug-ins.
If you check the box saying "Only show selected", and scroll down the list, you will see which plugins will be loaded. now look for a plugin named: org.eclipse.net4j.db.mysql (For CDO 4.2 which is what you )
if it's not there, you won't be able to run a mysql db store.
Now check your .product, if the plugin is there... if not that is your issue. (What I find easiest is to have a feature based product, referring to a single feature, and that feature will include all the plugins or other features I need, so
if you need to switch back-end, it's really one single feature you have to change in your product).

does this help?
Previous Topic:Export model to XMI with direct mapping, not by id
Next Topic:Order of @Type and @JoinTable can break hibernate mapping
Goto Forum:

Current Time: Sat May 26 00:05:08 GMT 2018

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

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

Back to the top