Home » Modeling » EMF » Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil
| |
Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil [message #1018924 is a reply to message #1018563] |
Thu, 14 March 2013 17:41 |
John Yotka Messages: 144 Registered: July 2009 |
Senior Member |
|
|
On 3/13/2013 10:30 PM, Ed Merks wrote:
> John,
>
> You need to have App Engine installed too in order to use the URIService
> mechanism.
>
>
> On 13/03/2013 8:29 PM, John Yotka wrote:
>> I'm trying to run the library example under the EMF/GWT wiki
>> (http://wiki.eclipse.org/EMF/GWT). I'm running Eclipse 4.2.2 Classic,
>> with EMF 2.8.3, Google Suite Plugin 3.2.0, EMF GWT Target Components
>> 2.8.0.
>>
>> The Library app comes up and I can create a resource and objects under
>> that resource, but when I try to save the resource I get the following
>> exception:
>>
>> SEVERE: javax.servlet.ServletContext log: Exception while dispatching
>> incoming RPC call
>> com.google.gwt.user.server.rpc.UnexpectedException: Service method
>> 'public abstract java.util.Map
>> org.eclipse.emf.ecore.resource.URIService.store(java.lang.String,byte[],java.util.Map)'
>> threw an unexpected exception: java.lang.NoClassDefFoundError: Could
>> not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>
>> ...
>> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>> at
>> org.eclipse.emf.server.ecore.resource.URIServiceImpl.store(URIServiceImpl.java:90)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>
Ed, I have the Google App Engine Plugin installed in the workbench, is
there something else I need to do?
The org.eclipse.emf.gwt.ecore_2.8.0.v20120608-0554.jar is in the Plug-in
Dependencies, which does have the org.eclipse.emf.server.ecore.resource
package and that package does have the DatastoreUtil class in it.
|
|
|
Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil [message #1018939 is a reply to message #1018924] |
Thu, 14 March 2013 18:22 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
John,
What does your .project file look like?
On 14/03/2013 6:41 PM, John Yotka wrote:
> On 3/13/2013 10:30 PM, Ed Merks wrote:
>> John,
>>
>> You need to have App Engine installed too in order to use the URIService
>> mechanism.
>>
>>
>> On 13/03/2013 8:29 PM, John Yotka wrote:
>>> I'm trying to run the library example under the EMF/GWT wiki
>>> (http://wiki.eclipse.org/EMF/GWT). I'm running Eclipse 4.2.2 Classic,
>>> with EMF 2.8.3, Google Suite Plugin 3.2.0, EMF GWT Target Components
>>> 2.8.0.
>>>
>>> The Library app comes up and I can create a resource and objects under
>>> that resource, but when I try to save the resource I get the following
>>> exception:
>>>
>>> SEVERE: javax.servlet.ServletContext log: Exception while dispatching
>>> incoming RPC call
>>> com.google.gwt.user.server.rpc.UnexpectedException: Service method
>>> 'public abstract java.util.Map
>>> org.eclipse.emf.ecore.resource.URIService.store(java.lang.String,byte[],java.util.Map)'
>>>
>>> threw an unexpected exception: java.lang.NoClassDefFoundError: Could
>>> not initialize class
>>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>>
>>> ...
>>> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
>>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>> at
>>> org.eclipse.emf.server.ecore.resource.URIServiceImpl.store(URIServiceImpl.java:90)
>>>
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>
> Ed, I have the Google App Engine Plugin installed in the workbench,
> is there something else I need to do?
>
> The org.eclipse.emf.gwt.ecore_2.8.0.v20120608-0554.jar is in the
> Plug-in Dependencies, which does have the
> org.eclipse.emf.server.ecore.resource package and that package does
> have the DatastoreUtil class in it.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| |
Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil [message #1018982 is a reply to message #1018939] |
Thu, 14 March 2013 20:49 |
John Yotka Messages: 144 Registered: July 2009 |
Senior Member |
|
|
On 3/14/2013 12:22 PM, Ed Merks wrote:
> John,
>
> What does your .project file look like?
>
>
> On 14/03/2013 6:41 PM, John Yotka wrote:
>> On 3/13/2013 10:30 PM, Ed Merks wrote:
>>> John,
>>>
>>> You need to have App Engine installed too in order to use the URIService
>>> mechanism.
>>>
>>>
>>> On 13/03/2013 8:29 PM, John Yotka wrote:
>>>> I'm trying to run the library example under the EMF/GWT wiki
>>>> (http://wiki.eclipse.org/EMF/GWT). I'm running Eclipse 4.2.2 Classic,
>>>> with EMF 2.8.3, Google Suite Plugin 3.2.0, EMF GWT Target Components
>>>> 2.8.0.
>>>>
>>>> The Library app comes up and I can create a resource and objects under
>>>> that resource, but when I try to save the resource I get the following
>>>> exception:
>>>>
>>>> SEVERE: javax.servlet.ServletContext log: Exception while dispatching
>>>> incoming RPC call
>>>> com.google.gwt.user.server.rpc.UnexpectedException: Service method
>>>> 'public abstract java.util.Map
>>>> org.eclipse.emf.ecore.resource.URIService.store(java.lang.String,byte[],java.util.Map)'
>>>>
>>>> threw an unexpected exception: java.lang.NoClassDefFoundError: Could
>>>> not initialize class
>>>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>>>
>>>> ...
>>>> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
>>>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>>> at
>>>> org.eclipse.emf.server.ecore.resource.URIServiceImpl.store(URIServiceImpl.java:90)
>>>>
>>>>
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>
>> Ed, I have the Google App Engine Plugin installed in the workbench,
>> is there something else I need to do?
>>
>> The org.eclipse.emf.gwt.ecore_2.8.0.v20120608-0554.jar is in the
>> Plug-in Dependencies, which does have the
>> org.eclipse.emf.server.ecore.resource package and that package does
>> have the DatastoreUtil class in it.
>
Ed,
the .project for the .editor project is:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.eclipse.library.editor</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.emf.codegen.ecore.GWTBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.google.appengine.eclipse.core.gaeProjectChangeNotifier</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.google.appengine.eclipse.core.projectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>com.google.gwt.eclipse.core.gwtNature</nature>
<nature>com.google.appengine.eclipse.core.gaeNature</nature>
</natures>
</projectDescription>
|
|
|
Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil [message #1019156 is a reply to message #1018982] |
Fri, 15 March 2013 06:18 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
John,
So it looks like the GAE builder and nature stuff is there...
Could you look to see if the .class file for the class it's complaining
about has been successfully copies to your project's build output folder?
On 14/03/2013 9:49 PM, John Yotka wrote:
> On 3/14/2013 12:22 PM, Ed Merks wrote:
>> John,
>>
>> What does your .project file look like?
>>
>>
>> On 14/03/2013 6:41 PM, John Yotka wrote:
>>> On 3/13/2013 10:30 PM, Ed Merks wrote:
>>>> John,
>>>>
>>>> You need to have App Engine installed too in order to use the
>>>> URIService
>>>> mechanism.
>>>>
>>>>
>>>> On 13/03/2013 8:29 PM, John Yotka wrote:
>>>>> I'm trying to run the library example under the EMF/GWT wiki
>>>>> (http://wiki.eclipse.org/EMF/GWT). I'm running Eclipse 4.2.2
>>>>> Classic,
>>>>> with EMF 2.8.3, Google Suite Plugin 3.2.0, EMF GWT Target Components
>>>>> 2.8.0.
>>>>>
>>>>> The Library app comes up and I can create a resource and objects
>>>>> under
>>>>> that resource, but when I try to save the resource I get the
>>>>> following
>>>>> exception:
>>>>>
>>>>> SEVERE: javax.servlet.ServletContext log: Exception while dispatching
>>>>> incoming RPC call
>>>>> com.google.gwt.user.server.rpc.UnexpectedException: Service method
>>>>> 'public abstract java.util.Map
>>>>> org.eclipse.emf.ecore.resource.URIService.store(java.lang.String,byte[],java.util.Map)'
>>>>>
>>>>>
>>>>> threw an unexpected exception: java.lang.NoClassDefFoundError: Could
>>>>> not initialize class
>>>>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>>>>
>>>>> ...
>>>>> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
>>>>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>>>> at
>>>>> org.eclipse.emf.server.ecore.resource.URIServiceImpl.store(URIServiceImpl.java:90)
>>>>>
>>>>>
>>>>>
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>> Source)
>>>>
>>> Ed, I have the Google App Engine Plugin installed in the workbench,
>>> is there something else I need to do?
>>>
>>> The org.eclipse.emf.gwt.ecore_2.8.0.v20120608-0554.jar is in the
>>> Plug-in Dependencies, which does have the
>>> org.eclipse.emf.server.ecore.resource package and that package does
>>> have the DatastoreUtil class in it.
>>
> Ed,
> the .project for the .editor project is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <projectDescription>
> <name>com.eclipse.library.editor</name>
> <comment></comment>
> <projects>
> </projects>
> <buildSpec>
> <buildCommand>
> <name>org.eclipse.jdt.core.javabuilder</name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>org.eclipse.emf.codegen.ecore.GWTBuilder</name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>com.google.appengine.eclipse.core.gaeProjectChangeNotifier</name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>com.google.appengine.eclipse.core.projectValidator</name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>org.eclipse.pde.ManifestBuilder</name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>org.eclipse.pde.SchemaBuilder</name>
> <arguments>
> </arguments>
> </buildCommand>
> </buildSpec>
> <natures>
> <nature>org.eclipse.jdt.core.javanature</nature>
> <nature>org.eclipse.pde.PluginNature</nature>
> <nature>com.google.gwt.eclipse.core.gwtNature</nature>
> <nature>com.google.appengine.eclipse.core.gaeNature</nature>
> </natures>
> </projectDescription>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Could not initialize class org.eclipse.emf.server.ecore.resource.DatastoreUtil [message #1019414 is a reply to message #1019156] |
Fri, 15 March 2013 16:18 |
John Yotka Messages: 144 Registered: July 2009 |
Senior Member |
|
|
On 3/15/2013 12:18 AM, Ed Merks wrote:
> John,
>
> So it looks like the GAE builder and nature stuff is there...
>
> Could you look to see if the .class file for the class it's complaining
> about has been successfully copies to your project's build output folder?
>
>
> On 14/03/2013 9:49 PM, John Yotka wrote:
>> On 3/14/2013 12:22 PM, Ed Merks wrote:
>>> John,
>>>
>>> What does your .project file look like?
>>>
>>>
>>> On 14/03/2013 6:41 PM, John Yotka wrote:
>>>> On 3/13/2013 10:30 PM, Ed Merks wrote:
>>>>> John,
>>>>>
>>>>> You need to have App Engine installed too in order to use the
>>>>> URIService
>>>>> mechanism.
>>>>>
>>>>>
>>>>> On 13/03/2013 8:29 PM, John Yotka wrote:
>>>>>> I'm trying to run the library example under the EMF/GWT wiki
>>>>>> (http://wiki.eclipse.org/EMF/GWT). I'm running Eclipse 4.2.2
>>>>>> Classic,
>>>>>> with EMF 2.8.3, Google Suite Plugin 3.2.0, EMF GWT Target Components
>>>>>> 2.8.0.
>>>>>>
>>>>>> The Library app comes up and I can create a resource and objects
>>>>>> under
>>>>>> that resource, but when I try to save the resource I get the
>>>>>> following
>>>>>> exception:
>>>>>>
>>>>>> SEVERE: javax.servlet.ServletContext log: Exception while dispatching
>>>>>> incoming RPC call
>>>>>> com.google.gwt.user.server.rpc.UnexpectedException: Service method
>>>>>> 'public abstract java.util.Map
>>>>>> org.eclipse.emf.ecore.resource.URIService.store(java.lang.String,byte[],java.util.Map)'
>>>>>>
>>>>>>
>>>>>> threw an unexpected exception: java.lang.NoClassDefFoundError: Could
>>>>>> not initialize class
>>>>>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>>>>>
>>>>>> ...
>>>>>> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
>>>>>> org.eclipse.emf.server.ecore.resource.DatastoreUtil
>>>>>> at
>>>>>> org.eclipse.emf.server.ecore.resource.URIServiceImpl.store(URIServiceImpl.java:90)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>>> Source)
>>>>>
>>>> Ed, I have the Google App Engine Plugin installed in the workbench,
>>>> is there something else I need to do?
>>>>
>>>> The org.eclipse.emf.gwt.ecore_2.8.0.v20120608-0554.jar is in the
>>>> Plug-in Dependencies, which does have the
>>>> org.eclipse.emf.server.ecore.resource package and that package does
>>>> have the DatastoreUtil class in it.
>>>
>> Ed,
>> the .project for the .editor project is:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <projectDescription>
>> <name>com.eclipse.library.editor</name>
>> <comment></comment>
>> <projects>
>> </projects>
>> <buildSpec>
>> <buildCommand>
>> <name>org.eclipse.jdt.core.javabuilder</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> <buildCommand>
>> <name>org.eclipse.emf.codegen.ecore.GWTBuilder</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> <buildCommand>
>> <name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> <buildCommand>
>> <name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> <buildCommand>
>> <name>com.google.appengine.eclipse.core.gaeProjectChangeNotifier</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> <buildCommand>
>> <name>com.google.appengine.eclipse.core.projectValidator</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> <buildCommand>
>> <name>org.eclipse.pde.ManifestBuilder</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> <buildCommand>
>> <name>org.eclipse.pde.SchemaBuilder</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> </buildSpec>
>> <natures>
>> <nature>org.eclipse.jdt.core.javanature</nature>
>> <nature>org.eclipse.pde.PluginNature</nature>
>> <nature>com.google.gwt.eclipse.core.gwtNature</nature>
>> <nature>com.google.appengine.eclipse.core.gaeNature</nature>
>> </natures>
>> </projectDescription>
>
Ed, the org.eclipse.emf.gwt.ecore_2.8.0.v20120608-0554.jar file is in
the war/WEB-INF/lib folder, and that jar does contain the "missing"
..class file (org.eclipse.emf.server.ecore.resource.DatastoreUtil.class).
|
|
| |
Goto Forum:
Current Time: Thu Mar 28 16:24:30 GMT 2024
Powered by FUDForum. Page generated in 0.05883 seconds
|