I'm new to learning Java web applications and tomcat, and am having a slight problem setting up eclipse if someone doesn't mind having a brief look please. A search came up with a few fixes
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
-
right click on project name in Package Explorer view.
select Properties
- Select Project Facets
- Click on Runtimes tab
- check server
- Click on OK
And now :
right click on server name in Servers view click on Add and Remove ... move resources to the right column
From my limited knowledge it looks like I've done what has been asked here. The project was also initially set up as a Dynamic Web Project:
The book I'm studying for also says that I should change the selected server in the project properties menu, as is suggested about, but I don't see the option:
Am I missing something obvious? Or did I make a mistake when applying this patch for tomcat 8.5? (described here)
Any help would be much appreciated. Thanks
*edit: RE the response asking for me to be more specific - I'm trying to use Tomcat with a new project. I've managed it in Netbeans before, but the book I'm working from has samples using Eclipse, and I'm just trying to make things easier for myself in the future.
Here's the section from the book that I'm following. (I've already gone Windows>Preferences>Server>RuntimeEnvironment>Add and added Tomcat v8.5 that I had to patch in).