I am trying to deploy a basic application [env-javaweb] using cf command line tool.
I push the application using
cf push pns-env-javaweb -no-start -m 512M
When i go to BlueMix and try to start the application i get to see an error message as below
2014-05-30T17:07:23.16+0530 [STG] OUT -----> Downloaded app package (13M) 2014-05-30T17:07:30.64+0530 [STG] ERR /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:101:in
build_pack ': Unable to detect a supported application type (RuntimeError) 2014-05-30T17:07:30.64+0530 [STG] ERR from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:74:in
bloc k in compile_with_timeout' 2014-05-30T17:07:30.64+0530 [STG] ERR from /usr/lib/ruby/1.9.1/timeout.rb:68:intimeout' 2014-05-30T17:07:30.64+0530 [STG] ERR from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:73:in
comp ile_with_timeout' 2014-05-30T17:07:30.64+0530 [STG] ERR from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:54:inbloc k in stage_application' 2014-05-30T17:07:30.64+0530 [STG] ERR from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:50:in
chdi r' 2014-05-30T17:07:30.64+0530 [STG] ERR from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:50:instag e_application' 2014-05-30T17:07:30.64+0530 [STG] ERR from /var/vcap/packages/dea_next/buildpacks/bin/run:10:in
<main>' 2014-05-30T17:07:31.04+0530 [API] ERR Encountered error: Staging error: failed to stage application: 2014-05-30T17:07:31.04+0530 [API] ERR Script exited with status 1
Any help would be appreciated
Answer by Brian K. Martin (5161) | May 30, 2014 at 07:54 AM
If you are pushing a war file, add -p yourwar.war to your cf push command line.
i am not trying to push a war file. i am trying to push what ever i downloaded as a part of env-javaweb - the sample application. in this case the runtime is not being shown as Liberty - not sure why.
I tried creating a sample web application as a war file and then used -p <abc.war> to push it and it worked fine. The webapp was created out of eclipse and runtime was shown as Liberty.
Answer by Ram Vennam (2928) | May 30, 2014 at 02:56 PM
What directory are you pushing the application from? The WEB-INF folder should be at the root of the directory you're pushing from. Or, you can package up everything as a .war file and push that with the -p option
From CF app, HTTP header Content-Length of response is alwasy missing 0 Answers
When I execute CF.exe DOS window opens and closed immediately 2 Answers
Failed on build stage when pushing a node.js app. 3 Answers
How to get service instance guid for binding service 1 Answer
Configuration of local CF tool 2 Answers