Pages

Friday, May 13, 2011

java.lang.NoClassDefFoundError: com/googlecode/objectify/ObjectifyService

I am a new bee in the world of objectify (just entered today). But no doubt this is a cool stuff for app engine. I started with the Objectify version 3.0. I added the jar file using eclipse external JAR file adding mechanism. Right click on the project and see in the build path. On the first hand got this exception

java.lang.NoClassDefFoundError: com/googlecode/objectify/ObjectifyService

Cure is you have to copy the objectify jar to your project's WEB-INF/lib folder.
You will readily get rid of this error and encounter another one

java.lang.NoClassDefFoundError: com/google/appengine/api/datastore/Async DatastoreService

But here is the cure is not so good. I down graded the version to objectify 2.2.3. And its working now.
But really don't know why..



         













2 comments:

  1. Anonymous3:58 AM

    I’m not that much of a online reader to be honest but your sites really nice,
    keep it up! I'll go ahead and bookmark your site to come back in the future. All the best

    Also visit my web site ... Natural Anxiety Remedies Tips

    ReplyDelete
  2. Anonymous4:13 AM

    Fantastic beat ! I wish to apprentice while you amend your website,
    how could i subscribe for a blog web site? The account helped me a
    acceptable deal. I had been tiny bit acquainted of this your broadcast provided bright clear idea

    Feel free to visit my blog post; best dedicated hosting india

    ReplyDelete