smtnkc
smtnkc

Reputation: 508

Cannot Deploy Application on Eclipse (Bluemix)

I am trying to create my first web app on Bluemix.

  1. I created a Java Liberty Runtime and downloaded the Starter Code to work on Eclipse.
  2. I installed IBM Bluemix tools to Eclipse and imported the starter code as an archive file.

When I try to run application on IBM Bluemix Server, it is recognizing the starter code as another new application and saying "There is a deployed application with the same name." So, I cannot update the application on eclipse and also there is two different applications are being seen on server view:

alt text

When I try to go application homepage it is giving:

Not Found
The application or context root for this request has not been found: /

Thanks for any comments.

Upvotes: 5

Views: 936

Answers (3)

smtnkc
smtnkc

Reputation: 508

I just realized that there is a recent update which provides ability to map and unmap Bluemix apps with projects in the workspace. It has come with the fresh version of the Eclipse Bluemix Tools. I solved the issue by mapping my Starter Code and Bluemix Project:

  1. right click on an existing application in the Servers view
  2. select Map to Project

Source: https://developer.ibm.com/bluemix/2015/04/02/updates-ibm-eclipse-tools-bluemix/

Upvotes: 1

Jeff Sloyer
Jeff Sloyer

Reputation: 4964

I was able to get this to work. I modified the manifest.yml file a bit to have a unique name and hostname. When you deploy this change the hostname and name to something unique.

applications:
- disk_quota: 1024M
  host: e-urlabel-jbs
  name: e-urlabel-jbs
  path: webStarterApp.war
  domain: mybluemix.net
  instances: 1
  memory: 512M

Note. I changed the domain as my account is in the US instance, but for yours to work change it to eu-gb.mybluemix.net.

Upvotes: 3

lmsurprenant
lmsurprenant

Reputation: 1925

The IBM Eclipse Tools for Bluemix recently added the ability to map and unmap a Bluemix app with a project in your workspace: https://developer.ibm.com/bluemix/2015/04/02/updates-ibm-eclipse-tools-bluemix/

To map a project, right click on an existing application in the Servers view and select Map to Project.

Upvotes: 3

Related Questions