I cannot add my project to a server in eclipse - why is that?
I installed all necessary tools (Web Dev, Java EE, Server Adapters, Tomcat itself, everything)
I configured the runtime environments, adjusted all Java Versions to JDK 6 (because it should run on Tomcat 6) but still the left side of the dialogue where I could add recources is empty when creating a new server.
What else could I try?
PS: Using Juno on W7 Prof.
Close the eclipse and start the the server you will able to see and run the project.
If you are able to see the project in Eclipse project explorer but unable to see the project while adding the project to the web server, follow project properties -> Project Facets, make sure Dynamic Web Module & Java were ticked.
1 .right click on project name in
Package Explorer
view.2. select
Properties
3. Select
Project Facets
4. Click on
Runtimes
tab5. check server
6. Click on
OK
And now :
Servers
viewAdd and Remove ...
For me: It was Eclipse mars which does not support jdk7 so I added jdk8. It worked.
You didn't create your project as "Dynamic Web Project", so Eclipse doesn't recognize it like web project. Create new "Dynamic Web Project" or go to Properties -> Projects Facets and check Dynamic Web Module
I fixed this issue as adding
Dynamic Web Module
toProject Facets
Package Explorer
view.Properties
Project Facets
Dynamic Web Module