[CDO] Problem with package on CDO M4, but not on M3 [message #1007037] |
Mon, 04 February 2013 03:23  |
Eclipse User |
|
|
|
Hi,
I recently created a project with CDO M3 installed in Eclipse. I now updated to M4, but my application doesn't work anymore.
First it complained about this line:
session.getPackageRegistry().putEPackage(ModelPackage.eINSTANCE);
CDOPackageRegistryPopulator.populate(session.getPackageRegistry());
The error was that no packages can be added during runtime, so use setInitial.. instead. So I deleted the line and added this line in the clone:
repo.setInitialPackages(ModelPackage.eINSTANCE);
I Also tried adding it only in the server, but this makes no difference. I keep getting this error when saving my CDOResource:
Package not found: http://model/1.0
What am I doing wrong? This code was working in M3..? Or should I add the setInitial is both the clone and the server?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04953 seconds