当我尝试将基于 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': ...
谢谢!