简体   繁体   English

Cloud Foundry中的Spring Web App

[英]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的本地环境中成功进行了测试。以下是技术堆栈

  1. JDK 7 JDK 7
  2. Spring 4 春天4
  3. MongoDB MongoDB
  4. MySQL 的MySQL

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.

相关问题 将Spring应用程序部署到Cloud Foundry时出错 - Error when deploying Spring app to Cloud Foundry 将Java非Spring Web应用程序迁移到关键的Cloud Foundry - Migrate java non-spring web application to pivotal cloud foundry Spring Boot应用程序在云铸造厂java.lang.IllegalStateException上崩溃 - spring boot app crashing on cloud foundry java.lang.IllegalStateException 无法在Cloud Foundry上部署helloworld spring-boot应用程序 - Not able to deploy a helloworld spring-boot app on Cloud Foundry Cloud Foundry:如何使用额外的 JVM 命令部署 Spring Boot 应用程序 - Cloud Foundry : How to deploy spring boot app with an additional JVM command 将 spring-boot 应用程序部署到云代工厂时出现 java.lang.NoSuchMethodException - java.lang.NoSuchMethodException when deploying spring-boot app to cloud foundry 如何使用app上传资源文件到cloud foundry - How to upload resources files with app to cloud foundry Spring云如何定义Pivotal Cloud Foundry下的验证间隔? - How spring cloud defines validation interval under the Pivotal Cloud Foundry? 无法在 Cloud Foundry 中使用 Spring Cloud 连接器设置 connectionProperties - Cannot set connectionProperties with Spring Cloud Connectors in Cloud Foundry 如何更改云代工厂中的默认弹簧配置文件(“云”) - How to change default spring profil ("cloud") in cloud foundry
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM