【问题标题】:Play Framework on Heroku Compile Error when Adding a new Class添加新类时播放框架上 Heroku 编译错误
【发布时间】:2012-01-15 05:49:34
【问题描述】:

我在 Heroku 上运行起来了,一切正常。我在我的模型中添加了一个新类,一切都在本地运行良好。当我向 Heroku 执行 git push 时,我收到以下错误(注意,我停止了现有进程并在执行推送之前运行 - heroku run "play clean --%prod"):

编译错误(在 /app/models/connectors/ContentConnectorIfc.java 第 2589 行附近) 无法编译文件/app/models/connectors/ContentConnectorIfc.java。引发的错误是:ContextVisionObstacleConnector cannot be resolved to a type

   play.exceptions.CompilationException: ContextVisionObstacleConnector cannot be resolved to a type
    at play.classloading.ApplicationCompiler$2.acceptResult(ApplicationCompiler.java:246)
    at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:672)
    at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:516)
    at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:278)
    at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:412)
    at play.Play.preCompile(Play.java:566)
    at play.Play.init(Play.java:291)
    at play.server.Server.main(Server.java:158)

!无法构建 Play!应用 !清除播放!来自缓存的框架 ! Heroku push 被拒绝,无法编译 Play!应用

【问题讨论】:

    标签: deployment heroku playframework


    【解决方案1】:

    您的应用程序的依赖项似乎出了点问题。 你检查过你的 dependencies.yml 吗?并确保你运行

    play deps --sync
    

    在你进入 heroku 之前。

    【讨论】:

    • 呃。我是慢热型。如果我刚刚提交了 git 的新资源,我忘了添加。我的错。
    【解决方案2】:

    我一直忘记 commit -a 不会添加文件,您必须执行单独的添加命令。我的错。与heroku或游戏无关。资源没有添加到我的推送中。

    【讨论】:

      猜你喜欢
      • 2015-08-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-25
      • 2013-06-26
      • 1970-01-01
      • 2017-08-22
      • 1970-01-01
      相关资源
      最近更新 更多