本地GAE服务器上的一切正常,但生产中的ClassNotFound

时间:2014-01-27 03:12:38

标签: java google-app-engine classnotfoundexception

我的应用程序在本地运行时完全正常工作,但每次都会因ClassNotFoundException而崩溃。我读到,当您忘记在WEB-INF / libs中包含一些依赖项时,可能会发生这种情况,但有问题的类是我自己的,并且不使用任何依赖项。我查看了这个类的构建应用程序文件夹和.class文件。可能有什么不对?

javax.servlet.ServletContext log: org.tuckey.web.filters.urlrewrite.Run ERROR: could not find handlers.user.battle.BattleVerifyHandler got a java.lang.NoClassDefFoundError: battle/Utilities/UnitTypeHelperBase
java.lang.NoClassDefFoundError: battle/Utilities/UnitTypeHelperBase
    at com.google.appengine.runtime.Request.process-3aeeaae5c6df581c(Request.java)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:111)
    at org.tuckey.web.filters.urlrewrite.Run.prepareRunObject(Run.java:252)
    at org.tuckey.web.filters.urlrewrite.Run.initialise(Run.java:188)
    at org.tuckey.web.filters.urlrewrite.Run.initialise(Run.java:133)
    at org.tuckey.web.filters.urlrewrite.RuleBase.initialise(RuleBase.java:284)
    at org.tuckey.web.filters.urlrewrite.NormalRule.initialise(NormalRule.java:118)
    at org.tuckey.web.filters.urlrewrite.Conf.initialise(Conf.java:440)
    at org.tuckey.web.filters.urlrewrite.Conf.<init>(Conf.java:132)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.loadUrlRewriterLocal(UrlRewriteFilter.java:294)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.loadUrlRewriter(UrlRewriteFilter.java:262)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.init(UrlRewriteFilter.java:253)
    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 com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:437)
    at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:444)
    at com.google.tracing.CurrentContext.runInContext(CurrentContext.java:188)
    at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:308)
    at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:300)
    at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:441)
    at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.ClassNotFoundException: battle.Utilities.UnitTypeHelperBase
    at com.google.appengine.runtime.Request.process-3aeeaae5c6df581c(Request.java)
    ... 26 more

0 个答案:

没有答案