Java – Cannot add a project to a Tomcat server in Eclipse

eclipsejavajsttomcat

I cannot add my project to a server in Eclipse – why is that?

I installed all necessary tools (Web Dev, Java EE, Server Adapters, and 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 resources is empty when creating a new server.

What else could I try?

PS: I am using Eclipse v4.2 (Juno) on Windows 7 Professional.

Best Answer

You didn't create your project as "Dynamic Web Project", so Eclipse doesn't recognize it like a web project. Create a new "Dynamic Web Project" or go to PropertiesProjects Facets and check Dynamic Web Module.