Jonathan Hansen
Jonathan Hansen

Reputation: 113

IBM Bluemix: get-started-java - Error when attempting to run on server

I am trying to complete this introduction to java apps on IBM Bluemix:

github.com/IBM-Bluemix/get-started-java

When I get to step 4.4 'Run your application locally on Liberty' I get the following error message:

"Server Error: The selection did not contain any resources that can run on a server."

I have followed the guide step-by-step and this is the first issue I encounter. I am new to Bluemix, eclipse and Liberty, so I am not really sure where to look for the solution to this problem.

I have to restart eclipse to reproduce this problem since I only have the option of "Run as -> Run on Server" the first time I attempt.

EDIT:


This is where I click to "Run on server":

Trying to do step 4.1 - Run on server

This is the error:

Error message I get

Thanks for the answers, guys!

EDIT 2:


If I do "Run -> Run Configurations..." and select Liberty Server it looks like it goes through the same steps as when you run:

mvn install liberty:run-server

in the terminal. But if I do this and go to localhost:9080/GetStartedJava/ I get the following message:

Context Root Not Found

Does this help anyone as to the source of my problems?

Upvotes: 0

Views: 157

Answers (2)

mharris
mharris

Reputation: 16

This question remained unanswered and I had the same issue;

File > Properties > Project Facets > Select Dynamic Web Module

Select OK

Right click on the server and select Add Remove and you should be able to add your WAR file there.

Upvotes: 0

Ram Vennam
Ram Vennam

Reputation: 3546

Try this. Right click on the Liberty server in the Servers view and select Add and Remove. Then, move the application from the left side to the right side. enter image description here

If you don't see your GetStartedJava project in your Add and Remove windows, then this is likely a problem with the Eclipse project import. A screenshot of your Eclipse window will help

Upvotes: 0

Related Questions