将我的存储库推送到heroku失败

时间:2012-11-17 11:17:06

标签: java git heroku playframework playframework-2.0

我在Play 2.0中构建了一个应用程序,当我使用play run在本地运行应用程序时,它运行正常,但当我尝试使用git push heroku master上传到heroku时,它开始正常上传,但过了一会儿它总是以这些错误结束:

 [info] Compiling 10 Scala sources and 6 Java sources to /tmp/build_26zvdeyfp5qfp/target/scala-2.9.1/classes...
       [error] error while loading MapStream, class file '/tmp/build_26zvdeyfp5qfp/.jdk/jre/lib/rt.jar(java/lang/MapStream.class)' is broken
       [error] (bad constant pool tag 18 at byte 43)
       [error] one error found
       [error] {file:/tmp/build_26zvdeyfp5qfp/}Workshop0182Host/compile:compile: Compilation failed
       [error] Total time: 20 s, completed Nov 17, 2012 11:08:23 AM
 !     Failed to build app with sbt
 !     Heroku push rejected, failed to compile Play 2.0 - java app

To git@heroku.com:dry-thicket-4545.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:dry-thicket-4545.git'

我确保我的heroku-toolbelt是最新的,试图完全重新初始化git并创建一个新的heroku应用程序。但这些都没有给我任何进一步的帮助

1 个答案:

答案 0 :(得分:0)

显然在heroku中使用JDK 1.8会产生这个问题。