quarks
quarks

Reputation: 35276

Error when deploying Spring app to Cloud Foundry

I tried deploying this sample Rest + Spring sample application to my Cloud Foundry account through Eclipse STS and Cloud Foundry plugin, however I get this error:

HTTP Status 404 - Could not find resource for relative : /customer/print of full path: http://restdemo-api-v1.cloudfoundry.com/customer/print

However if I run locally in my local Tomcat 7 server, I get the response.

Any ideas why I experience this error?

Upvotes: 0

Views: 368

Answers (2)

Ali Moghadam
Ali Moghadam

Reputation: 1270

Also remember that Cloud Foundry uses Tomcat 6 as its Servlet Container. I would recommend you to check your application locally on a Tomcat 6 instance rather than a Tomcat 7.

Upvotes: 0

Vishal Biyani
Vishal Biyani

Reputation: 4407

  • I would suggest you run your applications locally on CloudFoudndry micro, which is identical in most respects to CloudFoundry cloud
  • While uploding the app to cloud from command line, add "-t" argument to push, so you will get a detailed information of error.

Upvotes: 1

Related Questions