Here are some of the problems that are occurring in the project:
Cannot nest ' Project/src/main/java ' inside library ' PROJECT/SRC
If you import the classpath in the Web App libraries may find PROJECT/SRC, originally here is to put the package, so he will also cause another result, is web-inf/classes in the compilation also contains the source file.
Find a workaround on the web and modify the. setting file in the appropriate project file for Eclipse
Org.eclipse.wst.common.component
If you find the following sentence
<wb-resource deploy-path= "/web-inf/classes" source-path= "/src"/>
Just change him to the form below.
<wb-resource deploy-path= "/web-inf/classes" source-path= "/src/main/java"/>
If you recompile at this point, the project still has the cannot be built until build path errors is resolved this error, but you do not see the corresponding specific prompt.
According to the hint, if it is a Java type of error, it is recommended that one of your source path be added again, most of the problem can be done.