Pivotal Cloud中的SpringBoot问题

我正在尝试在Pivotal Cloud工厂中部署SpringBoot" title="SpringBoot">SpringBoot Restful应用程序。我的JDK

1.8并使用Maven。从枢轴尝试了以下示例应用程序:https

//spring.io/guides/gs/rest-service/

使用目标文件夹中生成的jar文件,Maven构建成功。

我在pom.xml文件位置添加了manifest.yml,如下所示。

---

applications:

- name: rest-mini

buildpack: https://github.com/gratiartis/java-buildpack

memory: 128M

instances: 1

host: rest-mini

domain: cfapps.io

path: target/gs-rest-service-0.1.0.jar

登录到关键Web服务帐户并尝试将其作为

“ cf push”并得到以下错误。请指教。谢谢

    2016-05-16T01:48:49.88+0800 [API/1]      OUT Created app with guid 281c1f5f-235d-497a-8d1a-2d396ccc48c3

2016-05-16T01:48:58.16+0800 [API/3] OUT Updated app with guid 281c1f5f-235d-497a-8d1a-2d396ccc48c3 ({"route"=>"ed5e6122-f52a-4562-9293-09da16281fba"})

2016-05-16T01:49:31.68+0800 [API/1] OUT Updated app with guid 281c1f5f-235d-497a-8d1a-2d396ccc48c3 ({"state"=>"STARTED"})

2016-05-16T01:49:31.98+0800 [STG/0] OUT Creating container

2016-05-16T01:49:32.45+0800 [STG/0] OUT Successfully created container

2016-05-16T01:49:32.45+0800 [STG/0] OUT Downloading app package...

2016-05-16T01:49:33.09+0800 [STG/0] OUT Downloaded app package (11.5M)

2016-05-16T01:49:33.09+0800 [STG/0] OUT Staging...

2016-05-16T01:49:33.80+0800 [STG/0] ERR /tmp/buildpacks/38ac912092c32b9507ea7ac5fc033650/lib/java_buildpack/component/versioned_dependency_component.rb:68: warning: circular argument reference - jar_name

2016-05-16T01:49:34.19+0800 [STG/0] OUT -----> Java Buildpack Version: 717d8bf | https://github.com/gratiartis/java-buildpack#717d8bf

2016-05-16T01:49:35.45+0800 [STG/0] OUT -----> Downloading Open Jdk JRE 1.8.0_91-unlimited-crypto from https://download.run.pivotal.io/openjdk/trusty/x86_64/openjdk-1.8.0_91-unlimited-crypto.tar.gz (1.0s)

2016-05-16T01:49:36.61+0800 [STG/0] OUT Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.1s)

2016-05-16T01:49:36.71+0800 [STG/0] OUT -----> Downloading Spring Auto Reconfiguration 1.10.0_RELEASE from https://download.run.pivotal.io/auto-reconfiguration/auto-reconfiguration-1.10.0_RELEASE.jar (0.0s)

**2016-05-16T01:49:36.71+0800 [STG/0] ERR [Buildpack] ERROR Compile failed with exception #<TypeError: no implicit conversion of nil into String>**

2016-05-16T01:49:36.71+0800 [STG/0] ERR no implicit conversion of nil into String

2016-05-16T01:49:36.72+0800 [STG/0] ERR Failed to compile droplet

2016-05-16T01:49:36.73+0800 [STG/0] OUT Exit status 223

2016-05-16T01:49:36.73+0800 [STG/0] ERR Staging failed: Exited with status 223

2016-05-16T01:49:36.83+0800 [API/3] ERR Failed to stage application: staging failed

回答:

使用buildpack: https://github.com/cloudfoundry/java-buildpack官方的CF buildpack。

您正在使用的内存似乎已过时,它的最新更新时间为2014年9月25日。还分配了更多内存memory: 256M or 512M,因此128M也可能会工作。

以上是 Pivotal Cloud中的SpringBoot问题 的全部内容, 来源链接: utcz.com/qa/403744.html

回到顶部