Grails Heroku部署错误

时间:2015-03-03 19:20:45

标签: grails heroku deployment

当我尝试将Grails项目部署到Heroku时出现错误

remote:        .
remote:        |Compiling 4 GSP files for package [databaseMigration]
remote:        ..
remote:        |Building WAR file
remote:        .................................................................
...................................................
remote:        |Precompiling Assets!
remote:        .Error
remote:        |
remote:        Error executing script War: java/nio/file/FileSystems (Use --stacktrace to see the full trace)
remote:  !     Failed to build app
remote:
remote:  !     Push rejected, failed to compile Grails app
remote:
remote: Verifying deploy....
remote:
remote: !       Push rejected to evening-spire-5280.
remote:
To https://git.heroku.com/evening-spire-5280.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/evening-spire-5280.git'

创建本地战争档案时,一切正常(grails test wargrails dev war

更新

正如Burt Beckwit所说,NIO已加入JDK 7。

这可能是一个问题OpenJDK 1.6?

remote: -----> Grails app detected
remote: -----> Grails 2.4.4 app detected
remote:        WARNING: The Grails buildpack is currently in Beta.
remote: -----> Installing OpenJDK 1.6...done

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题并解决了将JDK降级为1.7的问题:

https://devcenter.heroku.com/articles/add-java-version-to-an-existing-maven-app