• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • ehcache-core
  • qa
  • Reporter: hhuynh
  • May 21, 2010
  • 0
  • Watchers: 0
  • January 17, 2013
  • December 14, 2011

Attachments

Description

java.lang.NoClassDefFoundError: javax.swing.event.EventListenerList is a restricted class. Please see the Google App Engine developer’s guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51) at net.sf.ehcache.store.AbstractStore.getEventListenerList(AbstractStore.java:36) at net.sf.ehcache.store.AbstractStore.removeStoreListener(AbstractStore.java:102) at net.sf.ehcache.store.AbstractStore.addStoreListener(AbstractStore.java:92) at net.sf.ehcache.Cache.initialise(Cache.java:1037) at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:967) at net.sf.ehcache.CacheManager.addConfiguredCaches(CacheManager.java:608) at net.sf.ehcache.CacheManager.init(CacheManager.java:339) at net.sf.ehcache.CacheManager.(CacheManager.java:280) at net.sf.ehcache.CacheManager.create(CacheManager.java:642) at net.sf.ehcache.CacheManager.getInstance(CacheManager.java:662) at net.sf.ehcache.constructs.web.filter.SimplePageCachingFilter.getCacheManager(SimplePageCachingFilter.java:135) at net.sf.ehcache.constructs.web.filter.CachingFilter.doInit(CachingFilter.java:108) at net.sf.ehcache.constructs.web.filter.Filter.init(Filter.java:189) at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:185) at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:146) at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:222) at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:171) at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48) at com.google.appengine.tools.development.DevAppServerMain.(DevAppServerMain.java:120) at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:96)

Comments

Hung Huynh 2010-05-21

Attached is the webapp that works with ehcache-core-2.0.1.jar in GAE environment.

If you replace WEB-INF/lib/ehcache-core-2.0.1.jar with ehcache-core-2.1.0.jar, you’ll get the error.


To run servicecache (attached) with GAE:

  1. Download and unzip GAE SDK http://googleappengine.googlecode.com/files/appengine-java-sdk-1.3.4.zip
  2. Download and unzip attachment from this jira servicecache.zip
  3. From GAE uninstall folder, run:

bin/dev_appserver.sh /path/to/unzipped/servicecache

  1. Hit http://localhost:8080
  2. Click around the links, you should not get any error. The cache TTL is 5s so after 5s, refresh a link will give you new content

Fiona OShea 2011-04-05

Did Google fix this? Rumours that they might have

Aurelien Broszniowski 2011-12-14

Tried it with GAE 1.5.2 (could not get the 1.3.2, too old) runs fine with ehcache 2.1.0 and 2.5.0