Wednesday, April 22, 2015

There are No resources that can be added or removed from the server


There are No resources that can be added or removed from the server

Problem :


We come across this common exception when we are not able to add application to tomcat server thru add and remove option in eclipse.

Exception I Encountered Was :


###################################################################################################################

There are No resources that can be added or removed from the server

###################################################################################################################

Solution :


I was using existing maven project in Eclipse. So i had to run a maven command to add the project and then refresh the project to resolve it.
Please refer below to see how it was fixed.

Example :


- Follow these steps to resolve the exception :

1) Open DOS command prompt and navigate to your project folder where you have your pom.xml file. 2) Run the following command :
mvn eclipse:eclipse -Dwtpversion=2.0
3) Refresh the project in eclipse. 4) Now right click on server and select "add and remove" option, you should see your applicaion in the list to add. I hope this resolves your above exception / error, happy coding.


Similar Exception :

     

- There are No resources that can be added or removed from the server
- How can I add my application to Tomcat in Eclipse?
- What needs to be done to add a project to a Server in Eclipse ?
- There are no projects that can be added or removed from the server