MemcacheServiceFactory class not when using Memcache features on my appengine instance

48 views
Skip to first unread message

Shivkumar Krishnan

unread,
Dec 30, 2015, 1:45:12 PM12/30/15
to Google App Engine
Hi All,
 am using Memcache this way in my instance, with java.

MemcacheService syncCache = MemcacheServiceFactory.getMemcacheService();
		syncCache.setErrorHandler(ErrorHandlers.getDefault());
		myObject =  syncCache.get(key); 

On my instance logs am seeing this error:
java.lang.NoClassDefFoundError: com/google/appengine/api/memcache/MemcacheServiceFactory

should we enable anything in the appengine-web config to support Memcache on the cloud?

thx, 
 -Shiv

Adam (Cloud Platform Support)

unread,
Dec 30, 2015, 5:16:57 PM12/30/15
to Google App Engine
This seems like a question that would be better posted to Stack Overflow, rather than a discussion post. The google-appengine group is intended more for general discussion rather than 1-on-1 support assistance. Please see the main Community Support page for a list of the tags we monitor.

It sounds like you are missing the necessary App Engine JARs in your WEB-INF/lib directory in the WAR package that is being deployed. If you are using the Google Plugin for Eclipse I'd recommend creating a new Web Application project and try re-deploying, after ensuring that WEB-INF/lib contains the App Engine JARs. If you are using Apache Maven try creating a new project from the appengine-skeleton-archetype to ensure the necessary dependencies are specified in your pom.xml. 
Reply all
Reply to author
Forward
0 new messages