[ECP] Difficulties with using an XCore model [message #1486960] |
Tue, 25 November 2014 07:39  |
Eclipse User |
|
|
|
Hello
I am trying to setup an ECP client following the "Getting Started with your Custom Model" tutorial. The base for this is a small XCore model for which a *.model and a *.model.edit are created.
On startup, I get the following exception:
org.eclipse.e4.core.di.InjectionException: org.eclipse.emf.common.util.WrappedException: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.xml.sax.SAXParseExceptionpublicId: platform:/plugin/org.eclipse.emf.ecore.xcore.lib/model/XcoreLang.xcore; systemId: platform:/plugin/org.eclipse.emf.ecore.xcore.lib/model/XcoreLang.xcore; lineNumber: 1; columnNumber: 1; Content ist nicht zulässig in Prolog.
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:62)
...
Caused by: org.eclipse.emf.common.util.WrappedException: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.xml.sax.SAXParseExceptionpublicId: platform:/plugin/org.eclipse.emf.ecore.xcore.lib/model/XcoreLang.xcore; systemId: platform:/plugin/org.eclipse.emf.ecore.xcore.lib/model/XcoreLang.xcore; lineNumber: 1; columnNumber: 1; Content ist nicht zulässig in Prolog.
at org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor$Dynamic.getEPackage(RegistryReader.java:257)
...
Caused by: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.xml.sax.SAXParseExceptionpublicId: platform:/plugin/org.eclipse.emf.ecore.xcore.lib/model/XcoreLang.xcore; systemId: platform:/plugin/org.eclipse.emf.ecore.xcore.lib/model/XcoreLang.xcore; lineNumber: 1; columnNumber: 1; Content ist nicht zulässig in Prolog.
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
...
Caused by: org.xml.sax.SAXParseExceptionpublicId: platform:/plugin/org.eclipse.emf.ecore.xcore.lib/model/XcoreLang.xcore; systemId: platform:/plugin/org.eclipse.emf.ecore.xcore.lib/model/XcoreLang.xcore; lineNumber: 1; columnNumber: 1; Content ist nicht zulässig in Prolog.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
...
Looks like ECP/Ecore are having problems loading an xcore model in org.eclipse.emf.ecore.xcore.lib. I can't remove org.eclipse.emf.ecore.xcore.lib from the product configuration because my model bundle depends on it (XCore default). Which, in itself is not the real problem, but I don't see my model in the "Create new Project Wizard" (using local EMFStore).
I don't even know if this error is connected to the fakt, that I can't see my model.
I've checked these sources of error:
1) The bundles are in the product configuration (verified by osgi shell)
6 ACTIVE de.dopchoice.webcat.model_0.1.0.qualifier
7 ACTIVE de.dopchoice.webcat.model.edit_1.0.0.qualifier
2) The model is registered by the extension point
<extension point="org.eclipse.emf.ecore.generated_package">
<!-- @generated webcat -->
<package
uri="de.dopchoice.webcat.model"
class="de.dopchoice.webcat.model.WebCatPackage"
genModel="model/webcat.xcore"/>
</extension> and *.model.edit registeres an ItemProviderAdapterFactory through "org.eclipse.emf.edit.itemProviderAdapterFactories".
Does anyone have experiences with using ECP + XCore?
Anything special to consider?
Thanks!
Christoph
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09562 seconds