cristian.petroaca
cristian.petroaca

Reputation: 365

Cloudfoundry spring java 7

Does Cloudfoundry have support for Java 7? Can I deploy a Spring Application compiled with Java 7?

Thanks, Cristian

Upvotes: 0

Views: 333

Answers (3)

Lukasz
Lukasz

Reputation: 721

  1. Follow the instruction given in this link https://github.com/ericbottard/cloudfoundry-tomcat-7, and it will deploy. Nevertheless you may get sometimes an error caused by tomcat saying that there is "too many open files".
  2. Also bear in mind that you need to add to your POM.xml el-2.2.jar along with an expression factory in web.xml to have it working (obviously if you use the functionality of el-2.2) because it still uses libraries from tomcat 6 which does not support el-2.2

Upvotes: 0

anon
anon

Reputation:

Yes you can deploy an Java application and specify a Java 7 runtime using vmc push --runtime=java7

There is a template for deploying Tomcat 7 applications https://github.com/ericbottard/cloudfoundry-tomcat-7 but I'm not sure whether you can do that from within STS at the moment.

Upvotes: 0

Jeevan Patil
Jeevan Patil

Reputation: 6079

YES. New Cloud Foundry eclipse integration release supports java7 application. Java 7 is also now supported for Grails, Java Web and Spring applications. Visit this link to learn more about this.

Upvotes: 2

Related Questions