17

I'm trying to deploy the following project from IBM developerWorks to Bluemix:

Building a Java EE app on IBM Bluemix Using Watson and Cloudant

through the Bluemix plugin in Eclipse (Called: IBM Eclipse Tools for Bluemix). However I keep getting the following error

Project facet Cloud Foundry Standalone Application version 1.0 is not supported

enter image description here

Used Versions:

  • Eclipse Version: Mars Release (4.5.0) Build id: 20150621-1200
  • IBM® Eclipse Tools for Bluemix Version: 1.0.4 Build id: 20150801_1001

There is no issue when I do this through Cloud Foundry CLI cf push

Elson Yuen
  • 401
  • 2
  • 7
M. A. Kishawy
  • 4,865
  • 10
  • 43
  • 72
  • What this tells is that the project you are trying to deploy is a stand alone java web application and not a liberty profile application that can be deployed on to bluemix. Were you able to run this app locally on a liberty profile server? Try that first before deploying it to bluemix. This can be done by choosing the liberty profile server in the wizard instead of bluemix. If that is not possible, you may have to convert your application into a liberty profile application. I do not know how easy or difficult that could be. You can download liberty profile tools from with your eclipse JEE – Sasikanth Bharadwaj Sep 14 '15 at 19:00
  • @SasikanthBharadwaj It got deployed fine using the Cloud Foundry CLI (cf push). The app is working fine. This issue happens only when I use the bluemix plugin. – M. A. Kishawy Sep 14 '15 at 19:10
  • Then it could just be an issue with the project facets - try removing the Standalone Application version 1.0 facet from the project via project -> properties -> project facets – Sasikanth Bharadwaj Sep 14 '15 at 19:17

2 Answers2

36

Remove the Cloud Foundry Standalone Application version 1.0 facet from the project via project -> properties -> project facets.

enter image description here

Bluemix tools maps projects to bluemix runtimes via project facets so that different runtimes would be associated with different projects.

It's probably just that the stand alone facet which is probably associated with cloudfoundry tools isn't supported by bluemix tools plugin

Amarnath
  • 8,121
  • 10
  • 51
  • 79
Sasikanth Bharadwaj
  • 1,437
  • 1
  • 11
  • 10
  • 5
    For those who could not uncheck the *Cloud Foundry Standalone Application* from the project facets because of an error message '*cloudfoundry.standalone.app 1.0 cannot be uninstalled*', here's a trick: Open the project's file *.settings/org.eclipse.wst.common.project.facet.core.xml* and remove the `` tag – Ghurdyl Jan 18 '18 at 13:38
5

As @Ghurdyl mentions in the comments, If you cannot deselect the CloudFoundry Standalone Applicaiton, then remove the facet from the project's settings file (.settings/org.eclipse.wst.common.project.facet.core.xml):

<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
  <installed facet="cloudfoundry.standalone.app" version="1.0"/>
  <installed facet="java" version="10"/>
</faceted-project>

to:

<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
  <installed facet="java" version="10"/>
</faceted-project>
Jan Nielsen
  • 8,956
  • 12
  • 56
  • 105