google-code-export / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
1 stars 0 forks source link

how to overcome the error: com.googlecode.objectify.ObjectifyService is not supported by Google App Engine's Java runtime environment #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I'm using GAE/GWT/Objectify/eclipse and have configured it using this 
tutorial (which is very good)
http://www.fishbonecloud.com/2010/11/use-objectify-to-store-data-in-google.html

Still I'm facing this error When using the below code on the server side:
"com.googlecode.objectify.ObjectifyService is not supported by Google App 
Engine's Java runtime environment"

Any ideas what am I missing?

package com.kupati1.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.googlecode.objectify.Objectify;
import com.googlecode.objectify.ObjectifyService;
import com.kupati1.client.PersistentService;
import com.kupati1.client.entities.Animal;

@SuppressWarnings("serial")
public class PersistentServiceImpl extends RemoteServiceServlet implements
PersistentService {

    //Method must be present in Service Interface and Async Interface
    public void persistAnimal(String color, String species) {

        //The Objectify service for the entity must be registered before any 
        //operations can be executed
        ObjectifyService.register(Animal.class);
        Objectify ofy = ObjectifyService.begin();

        Animal animal = new Animal();
        //Use setters to populate the object
        //the Id will be auto generated and does not need to be set
        animal.setColor(color);
        animal.setSpecies(species);

        ofy.put(animal);

    }

}

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by shamir.g...@gmail.com on 24 Jun 2011 at 8:26

GoogleCodeExporter commented 9 years ago
Please ask about this on the Objectify mailing list, and include a full stack 
trace (or whatever other information you have available).  The bug database is 
not a good place to work out support issues - it is for recording known bugs.

Original comment by lhori...@gmail.com on 24 Jun 2011 at 8:34

GoogleCodeExporter commented 9 years ago
oops, 
In that case 
Admin, Please delete this issue entry.

Original comment by shamir.g...@gmail.com on 24 Jun 2011 at 9:10

GoogleCodeExporter commented 9 years ago

Original comment by lhori...@gmail.com on 24 Jun 2011 at 9:16