2016-05-15 92 views
3

我想在關鍵雲工廠部署SpringBoot Restful應用程序。 我的JDK 1.8和使用Maven。 嘗試從關鍵文件中獲取下面的示例應用程序: https://spring.io/guides/gs/rest-service/關鍵雲問題中的SpringBoot問題

Maven構建成功,在目標文件夾中生成jar文件。

我在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 

登錄到關鍵的網絡服務帳戶,並試圖把它作爲

「CF推」,並提示以下錯誤。請指教。謝謝

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 

回答

3

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

你正在使用的那個似乎已經過時了,它最後更新於2014年9月25日。 也分配更多內存memory: 256M or 512M,128M也可能工作。

+0

謝謝,桑傑爲您的迴應。讓我檢查並更新狀態。 – Ahmed

+0

我已經嘗試過,工作正常..感謝您的回覆 – Ahmed

+0

@Ahmed請接受,如果這回答你的問題,並可能喜歡,如果你喜歡;) –