【发布时间】: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