I presume you're using Eclipse?
Do you have the Eclipse "Java Web Developer Tools" installed as a plugin?
The WEB-INF/lib folder should not be a source folder.
If it get added as one, then remove it (should be in the project properties:
java build path: "source" tab)