17
votes

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

2
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 JEESasikanth Bharadwaj
@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
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 facetsSasikanth Bharadwaj

2 Answers

36
votes

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

5
votes

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>