[英]Spring Web App in Cloud Foundry
I have developed a Spring Web Application and successfully tested in my local in Tomcat 7. Below are the technology stack 我已经开发了一个Spring Web Application,并在Tomcat 7的本地环境中成功进行了测试。以下是技术堆栈
I have created Cloudfoundy Webservice account, imported mysql and mongodb services. 我已经创建了Cloudfoundy Web服务帐户,导入了mysql和mongodb服务。 When I push my application to Cloudfoundry there is no application specific error in the console but I received following log 当我将应用程序推送到Cloudfoundry时,控制台中没有特定于应用程序的错误,但是我收到了以下日志
Wed May 20 2015 19:40:50 GMT+0530 (India Standard Time) [DEA] ERR Instance (index 0) failed to start accepting connections Wed May 20 2015 19:40:50 GMT+0530 (India Standard Time) [API] OUT App instance exited with guid b56cb55f-eb35-47e8-9c94-70be6c1fbae1 payload: {"cc_partition"=>"default", "droplet"=>"b56cb55f-eb35-47e8-9c94-70be6c1fbae1", "version"=>"30e2fae4-c3a1-4ba8-8f29-b450169e2346", "instance"=>"5b742ce306904654a06e91200ec8a4ce", "index"=>0, "reason"=>"CRASHED", "exit_status"=>148, "exit_description"=> "failed to accept connections within health check timeout" , "crash_timestamp"=>1432131050} 2015年5月20日星期三19:40:50 GMT + 0530(印度标准时间)[DEA] ERR实例(索引0)未能开始接受连接Wed May 20 2015 19:40:50 GMT + 0530(印度标准时间)[API ] OUT应用程序实例以guid b56cb55f-eb35-47e8-9c94-70be6c1fbae1有效负载退出:{“ cc_partition” =>“默认”,“ droplet” =>“ b56cb55f-eb35-47e8-9c94-70be6c1fbae1”,“版本” => “30e2fae4-c3a1-4ba8-8f29-b450169e2346”, “实例”=> “5b742ce306904654a06e91200ec8a4ce”, “指数”=> 0, “原因”=> “CRASHED”, “EXIT_STATUS”=> 148, “exit_description”=>“无法在运行状况检查超时内接受连接” ,“ crash_timestamp” => 1432131050}
And after that application crashes. 然后该应用程序崩溃。 Could you please help me or let me know how to get the actual reason for the crash. 您能帮我还是让我知道如何获取崩溃的实际原因?
The error was due to compatibility issues with JDK 8 and Tomcat 8. So I downgraded the application to JDK 7 and Tomcat 7 using following environment variables 该错误是由于与JDK 8和Tomcat 8的兼容性问题引起的。因此,我使用以下环境变量将应用程序降级为JDK 7和Tomcat 7
env:
JBP_CONFIG_TOMCAT: '[tomcat: { version: 7.0.+ }]'
SPRING_PROFILES_DEFAULT: cloud
JBP_CONFIG_OPEN_JDK_JRE: '[version: 1.7.0_+]'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.