[CDO] CDO Server not recognizing dropins [message #1407486] |
Tue, 12 August 2014 14:46  |
Eclipse User |
|
|
|
Hi,
I am trying to get Papyrus working together with a CDO server for storing models.
So far Papyrus is running on Eclipse Luna using a nightly build.
The CDO Server used is CDOServer-Mac.zip 4.3-RC3 (S20140603-1448) downloaded from https://www.eclipse.org/cdo/downloads/.
It did not run out of the box because the executable CDOServer.app/Contents/MacOS/Cdo-server did not have the executable bits set and in CDOServer.app/Contents/MacOS/Cdo-server.ini the option -Dnet4j.config=. needed to be changed to -Dnet4j.config=../../ so that cdo-server.xml could be found.
Running the server from the commandline and connecting to it from within Papyrus works.
However, when I try to import a model into the repository I get the following error message:
Find Papyrus Model
An internal error occurred during: "Find Papyrus models".
Factory not found: org.eclipse.emf.cdo.server.queryHandlerFactories[ocl]
Model transfer operation execution faild.
Model transfer operation execution failed.
java.lang.reflect.InvocationTargetException
After some searching I found the following post from this forum which explained that the org.eclipse.emf.cdo.server.ocl plugin is not loaded by the server.
So I downloaded the emf-cdo-S20140603-1448-Dropins.zip dropins archive which contains the required plugins and added its content into CdoServer.app/dropins/eclipse/.
However, those dropins are never recognized or loaded (apparently the reconciler plugin is missing which usually seems to do that job).
Putting the dropin content directly into the plugins and features directories did not help either because those are managed directly by the application and ignore additionally added plugins.
Can anybody give me some pointers in how to proceed so that the CDO server can load the plugins required to make it work with Papyrus?
Thanks very much,
Manfred
[Updated on: Tue, 12 August 2014 14:49] by Moderator
|
|
|
|
|
|
Re: [CDO] CDO Server not recognizing dropins [message #1408111 is a reply to message #1408044] |
Thu, 14 August 2014 04:56  |
Eclipse User |
|
|
|
Thanks again for your help Eike!
Eike Stepper wrote on Thu, 14 August 2014 01:23
So you should select "Feature-based" and create your own feature, where, in
turn, you can specify anything you want. Nice, eh?!
The product was already configured to be feature based, but adding a self created feature containing all the required plugins finally did the trick.
Here are the steps I performed with Eclipse Luna as a recollection for anyone who might face the same situation:
- Create an empty new plugin project
- Add a new product to the plugin project
- Create a launch configuration of the emf.cdo.server.product which includes all required plugins (tested by launching the configuration)
- Create a new feature project from the previous launch configuration
- Build/Export the feature project
- In the plugin project add a reference to the feature project (Project Properties -> Project References)
- Add only the newly created feature to the product configuration (it should contain all required dependencies)
- Tweak other product configuration options
- Export the product
- Launch the exported product (which now contains all wanted plugins)
Best,
Manfred
|
|
|
Powered by
FUDForum. Page generated in 0.29196 seconds