0

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': ...

ありがとう!

4

1 に答える 1

4

はい。ただし、デプロイするときにランタイムを指定することを忘れないでください。

vmc push my_app --runtime = java7

于 2012-12-04T14:00:46.427 に答える