UPDATE
Following the advice I was given, I decided to deploy a smaller project with just a class calling this line:
_cache = MemcacheServiceFactory.getMemcacheService();
Now I'm getting this error:
java.lang.NoClassDefFoundError: com/google/appengine/api/memcache/MemcacheServiceFactory
I read here that this is because I'm missing the appengine-api-1.0-sdk.jar
but here it says there is no need to include it.
My problem now is that if I try to include it in the deploy, by adding it to the WEB-INF\lib directory, it gets ignored. If I try with a different jar (non related to GAE) it gets deployed just fine.
For instance, both of this versions had the appengine-api-1.0-sdk.jar
in \lib, but version 5 also had a different jar (bcprov-jdk15on-147.jar
). The size difference between those two is because of that.
To sum up, my question is, should I deploy the appengine-api-1.0-sdk.jar
?
And if so, then how can I avoid it getting ignored?
Project Dependencies, they are the default ones for a web application that is going to be deployed to GAE from NetBeans
I´m trying to implement Memcache so that I can use the one provided by GAE when I deploy the app.
Once it´s deployed when I try to run it I get an IllegalStateException
:
java.lang.IllegalStateException: Committed
This happens on this line:
private MemcacheService _cache=MemcacheServiceFactory.getMemcacheService();
What could I do to fix it?