Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [GWT] Unable to find 'org/eclipse/emf/ecore/Ecore.gwt.xml'(Trying to use EMF for GWT development)
[GWT] Unable to find 'org/eclipse/emf/ecore/Ecore.gwt.xml' [message #997898] Wed, 09 January 2013 00:11 Go to next message
Anton Hughes is currently offline Anton HughesFriend
Messages: 66
Registered: January 2013
Member
Hi

I'm very impressed with EMF, in particular xcore.

I read that it is possible to generate classes for GWT. I read the Eclipse wiki page on this, however it seems very out of date.

I am trying to use the generated classes in a GWT project.

Along with the generated classes is an xml file.
<module>
  <inherits name="com.google.gwt.user.User" />
  <inherits name="org.eclipse.emf.ecore.Ecore" />
  <source path=""/>
  <source path="impl"/>
  <source path="util"/>
</module>


However we I add the contents of this file to my GWT project, I get the following error. I have tried added the ecore jar file to the war/WEB-INF/lib folder, but it didnt help.

Does anyone have any ideas?

ading inherited module 'org.eclipse.emf.ecore.Ecore'
[ERROR] Unable to find 'org/eclipse/emf/ecore/Ecore.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] Line 17: Unexpected exception while processing element 'inherits'
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:308)
at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:493)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:326)
at com.google.gwt.dev.cfg.ModuleDefLoader.load(ModuleDefLoader.java:246)
at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:195)
at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromResources(ModuleDefLoader.java:172)
at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:144)
at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:1017)
at com.google.gwt.dev.DevMode.loadModule(DevMode.java:557)
at com.google.gwt.dev.DevMode.doStartup(DevMode.java:443)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1083)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)
at com.google.gwt.dev.DevMode.main(DevMode.java:311)
[ERROR] Failure while parsing XML
Re: [GWT] Unable to find 'org/eclipse/emf/ecore/Ecore.gwt.xml' [message #997984 is a reply to message #997898] Wed, 09 January 2013 05:39 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Anton,

Comments below.

On 09/01/2013 1:11 AM, Anton Hughes wrote:
> Hi
>
> I'm very impressed with EMF, in particular xcore.
Xcore is a big improvement over the structured editor... In the latest
builds, you can even produce Ecore Tools diagrams from it...
>
> I read that it is possible to generate classes for GWT. I read the
> Eclipse wiki page on this, however it seems very out of date.
Yes, I don't have the capacity to maintain all the docs... But it's a
wiki, so the community could help...
>
> I am trying to use the generated classes in a GWT project.
>
> Along with the generated classes is an xml file.
>
> <module>
> <inherits name="com.google.gwt.user.User" />
> <inherits name="org.eclipse.emf.ecore.Ecore" />
> <source path=""/>
> <source path="impl"/>
> <source path="util"/>
> </module>
>
>
> However we I add the contents of this file to my GWT project, I get
> the following error. I have tried added the ecore jar file to the
> war/WEB-INF/lib folder, but it didnt help.
> Does anyone have any ideas?
Did you set up the target platform with the EMF GWT runtime?
>
> ading inherited module 'org.eclipse.emf.ecore.Ecore'
> [ERROR] Unable to find
> 'org/eclipse/emf/ecore/Ecore.gwt.xml' on your classpath; could be a
> typo, or maybe you forgot to include a classpath entry for source?
> [ERROR] Line 17: Unexpected exception while processing element
> 'inherits'
> com.google.gwt.core.ext.UnableToCompleteException: (see previous log
> entries)
> at
> com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:308)
> at
> com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:493)
> at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
> at
> com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:294)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
> at
> com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:347)
> at
> com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:68)
> at
> com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:418)
> at
> com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:326)
> at
> com.google.gwt.dev.cfg.ModuleDefLoader.load(ModuleDefLoader.java:246)
> at
> com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:195)
> at
> com.google.gwt.dev.cfg.ModuleDefLoader.loadFromResources(ModuleDefLoader.java:172)
> at
> com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:144)
> at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:1017)
> at com.google.gwt.dev.DevMode.loadModule(DevMode.java:557)
> at com.google.gwt.dev.DevMode.doStartup(DevMode.java:443)
> at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1083)
> at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)
> at com.google.gwt.dev.DevMode.main(DevMode.java:311)
> [ERROR] Failure while parsing XML


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[xcore][xtend] ordering problem during clean build
Next Topic:[Teneo] [EMF] I get a stackoverflow when i try to do a datastore.initialize
Goto Forum:
  


Current Time: Fri Mar 29 15:29:11 GMT 2024

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

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

Back to the top