I had created a dynamic web project. AS of now it has a jsp file which am trying to run. Wh
This is what worked for me. I'm just posting my method because it might help somebody else.
I have Found a fix for this problem. Go to Preferences and Check your Targeted runtime, If No Runtime is displayed you can Configure it through Feacts. Select Dinamic Web module to 3.0 or 3.1
You can Also refer to this Video for Detailed Explanation. : https://youtu.be/0W6s0hXbmNE
To add a project to a runtime you must have a match between your project and your runtime; you have to check:
Once you've validated the match between your project and the runtime, you need the project to target the runtime, as follows:
The new runtime will be associated with that project. If a runtime that you want to select is not displayed or is disabled, you may need to uninstall one or more of the currently installed project facets. This can be done within the same Properties dialogue.
I know it's already answered question, but I like to share my solution with new users if I can help..
For me the problem was because of the Dynamic wen Project version, 3.0 work with java 1.7 ( I was using 3.1) . If it didn't work you can access .settings folder in your project, org.eclipse.wst.common.project.facet.core.xml file and set the version that you need.
<installed facet="jst.web" version="3.0"/>
Hope I can help new users