我正在将 Struts2 应用程序转换为 Google Apps。我只是想调出我的应用程序的首页,但我在控制台上收到以下错误。我的类路径中有 commons-fileupload-1.2.2.jar。谁能帮我?除了这个,我还需要另一个罐子吗?或者问题是别的什么?
java.lang.NoClassDefFoundError: java.rmi.server.UID 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.Cache.createGuid(Cache.java:1929)
at net.sf.ehcache.Cache.<init>(Cache.java:433)
at net.sf.ehcache.config.ConfigurationHelper.createCache(ConfigurationHelper.java:313)
at net.sf.ehcache.config.ConfigurationHelper.createDefaultCache(ConfigurationHelper.java:246)
at net.sf.ehcache.CacheManager.configure(CacheManager.java:286)
at net.sf.ehcache.CacheManager.init(CacheManager.java:218)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:205)
at net.sf.ehcache.CacheManager.create(CacheManager.java:374)
at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:124)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:169)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)
at com.configuration.ConfigurationListener.contextInitialized(ConfigurationListener.java:19)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
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:196)
at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:239)
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:146)
at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:97)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.main(DevMode.java:311)