I had the same problem after updating my JDK in the project, and I solved it by replacing my .classpath file with the previous one. I noticed the following changes in my .classpath file
<attributes> <attribute name="maven.pomderived" value="true"/> <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> </attributes>
The second line was missing in the above code
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
This line was missing
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> <attributes> <attribute name="owner.project.facets" value="java"/> </attributes> </classpathentry>
These lines were added, so I deleted them manually and it worked again.
Gaurav Matta 04 Feb '19 at 17:31 2019-02-04 17:31
source share