Generally, this kind of error is not added to the classpath when the project is deployed.
I found that my build path->use library on the web project didn't work.
So the most direct way is to right-click "add to buildpah" on the jar package used under web-inf->lib.
Another method: It is also possible to modify the .classpath file in the project directory.