Yes, the servlet api JAR is not needed as that should be provided by your servlet container. Are you using
maven? If so, you will have to explicitly exclude that dependency.
If you are still having issues, we need to see the complete stack trace of the error. Usually what happens is there will be one exception that is caused by another (and possibly more), the last one being the root cause of the issue. The root cause is usually a missing dependency.