cloudfoundry是否支持针对java 1.7编译的grails应用程序?

时间:2012-12-04 13:37:29

标签: grails java-7 cloudfoundry

当我尝试将基于java 1.7的Grails应用程序部署到cloudfoundry时,出现以下错误:

Caused by: java.lang.UnsupportedClassVersionError: grails/plugin/cache/CacheConfigArtefactHandler : Unsupported major.minor version 51.0 (unable to load class grails.plugin.cache.CacheConfigArtefactHandler)

我以为我读到了现在支持的地方了?

Detected a Java SpringSource Grails Application, is this correct? [Yn]:
Application Deployed URL [my-project.cloudfoundry.com]:
Memory reservation (128M, 256M, 512M, 1G, 2G) [512M]:
How many instances? [1]:
Bind existing services to 'my-project'? [yN]: y
1: rabbitmq-67ae5
Which one?: 1
Create services to bind to 'my-project'? [yN]:
Would you like to save this configuration? [yN]:
Creating Application: OK
Binding Service [rabbitmq-67ae5]: OK
Uploading Application:
Checking for available resources: OK
Processing resources: OK
Packing application: OK
Uploading (20K): OK
Push Status: OK
Staging Application 'my-project': OK
Starting Application 'my-project': ...

谢谢!

1 个答案:

答案 0 :(得分:4)

是的,但您需要记住在部署时指定运行时;

vmc push my_app --runtime = java7